net: gro: use vlan API instead of accessing directly
Subsystems (2)
PATCH 1/1 net: gro: use vlan API instead of accessing directly
From: Tonghao Zhang <[email protected]>
Use vlan common api to access the vlan_tag info.
Signed-off-by Tonghao Zhang <[email protected]>
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -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 )
Signature · 1 line
2.23.0
Jakub Kicinski
AppliedQuoted 5 lines · On Fri, 22 Nov 2019 20:38:01 +0800, [email protected] wrote:
From: Tonghao Zhang <[email protected]>
Use vlan common api to access the
vlan_taginfo.Signed-off-by Tonghao Zhang <[email protected]>
Applied, thanks!