diff options
author | Jesse Gross <jesse@nicira.com> | 2011-01-17 20:46:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-18 16:13:50 -0800 |
commit | 6ee400aafb60289b78fcde5ebccd8c4973fc53f4 (patch) | |
tree | d2cf34a95277a35836bbbb898a15d3dfa45e4368 /net | |
parent | f742aa8acb7e50a383f6d2b00b1c52e081970d38 (diff) | |
download | linux-3.10-6ee400aafb60289b78fcde5ebccd8c4973fc53f4.tar.gz linux-3.10-6ee400aafb60289b78fcde5ebccd8c4973fc53f4.tar.bz2 linux-3.10-6ee400aafb60289b78fcde5ebccd8c4973fc53f4.zip |
net offloading: Do not mask out NETIF_F_HW_VLAN_TX for vlan.
In netif_skb_features() we return only the features that are valid for vlans
if we have a vlan packet. However, we should not mask out NETIF_F_HW_VLAN_TX
since it enables transmission of vlan tags and is obviously valid.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 83507c265e4..4c58d11d3b6 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2023,13 +2023,13 @@ int netif_skb_features(struct sk_buff *skb) return harmonize_features(skb, protocol, features); } - features &= skb->dev->vlan_features; + features &= (skb->dev->vlan_features | NETIF_F_HW_VLAN_TX); if (protocol != htons(ETH_P_8021Q)) { return harmonize_features(skb, protocol, features); } else { features &= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_FRAGLIST | - NETIF_F_GEN_CSUM; + NETIF_F_GEN_CSUM | NETIF_F_HW_VLAN_TX; return harmonize_features(skb, protocol, features); } } |