diff options
author | David S. Miller <davem@davemloft.net> | 2014-03-29 01:17:16 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-29 01:17:16 +0400 |
commit | 5f2feca20e0f4878fa16787bd50fcd82fb365be7 (patch) | |
tree | 1761471976beb97edab677ab211326b62a2809ad /drivers/net/ifb.c | |
parent | fc92f745f8d0d3736ce5afb00a905d7cc61f9c46 (diff) | |
parent | 2adb956b084d6d49f519541a4b5f9947e96f8ef7 (diff) | |
download | linux-5f2feca20e0f4878fa16787bd50fcd82fb365be7.tar.xz |
Merge branch 'vlan_offloads'
Vlad Yasevich says:
====================
Audit all drivers for correct vlan_features.
Some drivers set vlan acceleration features in vlan_features. This causes
issues with Q-in-Q/802.1ad configurations.
Audit all the drivers for correct vlan_features. Fix broken ones.
Add a warning to vlan code to help catch future offenders.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r-- | drivers/net/ifb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index c14d39bf32d0..d7b2e947184b 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -180,7 +180,8 @@ static void ifb_setup(struct net_device *dev) dev->tx_queue_len = TX_Q_LIMIT; dev->features |= IFB_FEATURES; - dev->vlan_features |= IFB_FEATURES; + dev->vlan_features |= IFB_FEATURES & ~(NETIF_F_HW_VLAN_CTAG_TX | + NETIF_F_HW_VLAN_STAG_TX); dev->flags |= IFF_NOARP; dev->flags &= ~IFF_MULTICAST; |