Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5/hws: enable multiple integrity items
[ upstream commit 8c178ac8ce81ab0cbd9e90fd7eb4a2b47fca7c2b ] The integrity item uses the DW "oks1" in header layout. It includes the all supported bits for both inner and outer. When item is integrity type, the relevant bits are turned on and all DW is submitted. When user provides more then single integrity item in same pattern, the last one overrides the values were submitted before. This is problematic when user wants to match integrity bits for both inner and outer in same pattern, he cannot merge them into single item since rte_flow API provides encapsulation level field to match either inner or outer. This patch avoids the overriding values, when "oks1" is submitted, operator "or" is used instead of regular set. Fixes: c55c2bf ("net/mlx5/hws: add definer layer") Signed-off-by: Michael Baum <michaelba@nvidia.com> Reviewed-by: Erez Shitrit <erezsh@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
- Loading branch information