Skip to content

Commit ab44035

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-pf: Allow VLAN priority also in ntuple filters
VLAN TCI is a 16 bit field which includes Priority(3 bits), CFI(1 bit) and VID(12 bits). Currently ntuple filters support installing rules to steer packets based on VID only. This patch extends that support such that filters can be installed for entire VLAN TCI. Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d3cec5c commit ab44035

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,6 @@ int otx2_prepare_flow_request(struct ethtool_rx_flow_spec *fsp,
821821
if (fsp->m_ext.vlan_etype)
822822
return -EINVAL;
823823
if (fsp->m_ext.vlan_tci) {
824-
if (fsp->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK))
825-
return -EINVAL;
826-
if (be16_to_cpu(fsp->h_ext.vlan_tci) >= VLAN_N_VID)
827-
return -EINVAL;
828-
829824
memcpy(&pkt->vlan_tci, &fsp->h_ext.vlan_tci,
830825
sizeof(pkt->vlan_tci));
831826
memcpy(&pmask->vlan_tci, &fsp->m_ext.vlan_tci,

0 commit comments

Comments
 (0)