Skip to content

Commit fc5141c

Browse files
hao022Jakub Kicinski
authored andcommitted
net: gro: use vlan API instead of accessing directly
Use vlan common api to access the vlan_tag info. Signed-off-by: Tonghao Zhang <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9520aea commit fc5141c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5586,7 +5586,7 @@ static struct list_head *gro_list_prepare(struct napi_struct *napi,
55865586
diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev;
55875587
diffs |= skb_vlan_tag_present(p) ^ skb_vlan_tag_present(skb);
55885588
if (skb_vlan_tag_present(p))
5589-
diffs |= p->vlan_tci ^ skb->vlan_tci;
5589+
diffs |= skb_vlan_tag_get(p) ^ skb_vlan_tag_get(skb);
55905590
diffs |= skb_metadata_dst_cmp(p, skb);
55915591
diffs |= skb_metadata_differs(p, skb);
55925592
if (maclen == ETH_HLEN)

0 commit comments

Comments
 (0)