diff options
author | Tonghao Zhang <xiangxia.m.yue@gmail.com> | 2019-11-22 20:38:01 +0800 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-11-23 18:06:51 -0800 |
commit | fc5141cb6a60afd81cf53cf4f9bd986f1b846010 (patch) | |
tree | 44d794a9c345d3ff6fc99dcedc73896d5caef946 /net/core | |
parent | 9520aea75b88f4df4f9cae6b770626a143364ddc (diff) | |
download | linux-fc5141cb6a60afd81cf53cf4f9bd986f1b846010.tar.gz linux-fc5141cb6a60afd81cf53cf4f9bd986f1b846010.tar.bz2 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.c | 2 |
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) |