octeontx2-pf: fix FLOW_DIS_IS_FRAGMENT implementation
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Fri, 12 Apr 2024 12:02:56 +0000 (12:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2024 09:45:03 +0000 (10:45 +0100)
commit75ce9506ee3dc66648a7d74ab3b0acfa364d6d43
treee7bd5e2b9781e02ce50194b5cbf6ba1a4ace1df1
parent460b0d33cf10eee33de651381d3170ef13241650
octeontx2-pf: fix FLOW_DIS_IS_FRAGMENT implementation

Upon reviewing the flower control flags handling in
this driver, I notice that the key wasn't being used,
only the mask.

Ie. `tc flower ... ip_flags nofrag` was hardware
offloaded as `... ip_flags frag`.

Only compile tested, no access to HW.

Fixes: c672e3727989 ("octeontx2-pf: Add support to filter packet based on IP fragment")
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c