Commit fc5141cb authored by Tonghao Zhang's avatar Tonghao Zhang Committed by Jakub Kicinski

net: gro: use vlan API instead of accessing directly

Use vlan common api to access the vlan_tag info.
Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
parent 9520aea7
...@@ -5586,7 +5586,7 @@ static struct list_head *gro_list_prepare(struct napi_struct *napi, ...@@ -5586,7 +5586,7 @@ static struct list_head *gro_list_prepare(struct napi_struct *napi,
diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev; diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev;
diffs |= skb_vlan_tag_present(p) ^ skb_vlan_tag_present(skb); diffs |= skb_vlan_tag_present(p) ^ skb_vlan_tag_present(skb);
if (skb_vlan_tag_present(p)) if (skb_vlan_tag_present(p))
diffs |= p->vlan_tci ^ skb->vlan_tci; diffs |= skb_vlan_tag_get(p) ^ skb_vlan_tag_get(skb);
diffs |= skb_metadata_dst_cmp(p, skb); diffs |= skb_metadata_dst_cmp(p, skb);
diffs |= skb_metadata_differs(p, skb); diffs |= skb_metadata_differs(p, skb);
if (maclen == ETH_HLEN) if (maclen == ETH_HLEN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment