octeontx2-pf: Add additional check for MCAM rules
authorSuman Ghosh <sumang@marvell.com>
Mon, 10 Jul 2023 10:30:27 +0000 (16:00 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Jul 2023 10:56:57 +0000 (12:56 +0200)
commit8278ee2a2646b9acf747317895e47a640ba933c9
tree84e0b5ea5391dc93fcba239c8533f574968a2750
parent04499f28b40bfc24f20b0e2331008bb90a54a6cf
octeontx2-pf: Add additional check for MCAM rules

Due to hardware limitation, MCAM drop rule with
ether_type == 802.1Q and vlan_id == 0 is not supported. Hence rejecting
such rules.

Fixes: dce677da57c0 ("octeontx2-pf: Add vlan-etype to ntuple filters")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Link: https://lore.kernel.org/r/20230710103027.2244139-1-sumang@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c