aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2018-11-07 18:07:03 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-07 22:41:19 -0800
commit9b319148cb34ecccacff09eca87765c87d5e19ff (patch)
tree2ea7608581e9122fc8c7088636dec4bc520322c9 /net/core
parentnet/vlan: introduce __vlan_hwaccel_copy_tag() helper (diff)
downloadlinux-dev-9b319148cb34ecccacff09eca87765c87d5e19ff.tar.xz
linux-dev-9b319148cb34ecccacff09eca87765c87d5e19ff.zip
net/vlan: include the shift in skb_vlan_tag_get_prio()
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/flow_dissector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
index 676f3ad629f9..56d1e9b73142 100644
--- a/net/core/flow_dissector.c
+++ b/net/core/flow_dissector.c
@@ -952,8 +952,7 @@ proto_again:
if (!vlan) {
key_vlan->vlan_id = skb_vlan_tag_get_id(skb);
- key_vlan->vlan_priority =
- (skb_vlan_tag_get_prio(skb) >> VLAN_PRIO_SHIFT);
+ key_vlan->vlan_priority = skb_vlan_tag_get_prio(skb);
} else {
key_vlan->vlan_id = ntohs(vlan->h_vlan_TCI) &
VLAN_VID_MASK;