Skip to content

Commit b573006

Browse files
RajuRangojudavem330
authored andcommitted
cxgb4: offload VLAN flows regardless of VLAN ethtype
VLAN flows never get offloaded unless ivlan_vld is set in filter spec. It's not compulsory for vlan_ethtype to be set. So, always enable ivlan_vld bit for offloading VLAN flows regardless of vlan_ethtype is set or not. Fixes: ad9af3e (cxgb4: add tc flower match support for vlan) Signed-off-by: Raju Rangoju <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d2daa12 commit b573006

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ static void cxgb4_process_flow_match(struct net_device *dev,
197197
fs->val.ivlan = vlan_tci;
198198
fs->mask.ivlan = vlan_tci_mask;
199199

200+
fs->val.ivlan_vld = 1;
201+
fs->mask.ivlan_vld = 1;
202+
200203
/* Chelsio adapters use ivlan_vld bit to match vlan packets
201204
* as 802.1Q. Also, when vlan tag is present in packets,
202205
* ethtype match is used then to match on ethtype of inner
@@ -207,8 +210,6 @@ static void cxgb4_process_flow_match(struct net_device *dev,
207210
* ethtype value with ethtype of inner header.
208211
*/
209212
if (fs->val.ethtype == ETH_P_8021Q) {
210-
fs->val.ivlan_vld = 1;
211-
fs->mask.ivlan_vld = 1;
212213
fs->val.ethtype = 0;
213214
fs->mask.ethtype = 0;
214215
}

0 commit comments

Comments
 (0)