Commit 1a31f204 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

netsched: Allow meta match on vlan tag on receive

When vlan acceleration is used on receive, the vlan tag is maintained
outside of the skb data. The existing vlan tag match only works on TX
path because it uses vlan_get_tag which tests for VLAN_HW_TX_ACCEL.

Signed-off-by: default avatarStephen Hemminger <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1db9e29b
......@@ -176,8 +176,10 @@ META_COLLECTOR(var_dev)
unsigned short uninitialized_var(tag);
if (vlan_get_tag(skb, &tag) < 0)
unsigned short tag;
tag = vlan_tx_tag_get(skb);
if (!tag && __vlan_get_tag(skb, &tag))
*err = -1;
dst->value = tag;
Supports Markdown
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