octeontx2-pf: Allow both ntuple and TC features on the interface
authorHariprasad Kelam <hkelam@marvell.com>
Thu, 10 Aug 2023 17:11:19 +0000 (22:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2023 10:54:41 +0000 (11:54 +0100)
commit61f98da4698407d042128396297d7f724cfa1424
treeae5f6ba582669d4113f03057e9eac8993190c031
parent4b006b43b84ffa5df86fbd278b8a5b0c9a9b7714
octeontx2-pf: Allow both ntuple and TC features on the interface

The current implementation does not allow the user to enable both
hw-tc-offload and ntuple features on the interface. These checks
are added as TC flower offload and ntuple features internally configures
the same hardware resource MCAM. But TC HTB offload configures the
transmit scheduler which can be safely enabled on the interface with
ntuple feature.

This patch adds the same and ensures only TC flower offload and ntuple
features are mutually exclusive.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h