summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorTonghao Zhang <xiangxia.m.yue@gmail.com>2019-11-22 13:38:01 +0100
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-11-24 03:06:51 +0100
commitfc5141cb6a60afd81cf53cf4f9bd986f1b846010 (patch)
tree44d794a9c345d3ff6fc99dcedc73896d5caef946 /net/core
parentMerge tag 'mlx5-updates-2019-11-22' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-fc5141cb6a60afd81cf53cf4f9bd986f1b846010.tar.xz
linux-fc5141cb6a60afd81cf53cf4f9bd986f1b846010.zip
net: gro: use vlan API instead of accessing directly
Use vlan common api to access the vlan_tag info. Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index da78a433c10c..c7fc902ccbdc 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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 |= skb_vlan_tag_present(p) ^ skb_vlan_tag_present(skb);
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_differs(p, skb);
if (maclen == ETH_HLEN)