Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254685
b: refs/heads/master
c: 712ae51
h: refs/heads/master
i:
  254683: fd71b6c
v: v3
  • Loading branch information
Shan Wei authored and David S. Miller committed Jul 6, 2011
1 parent 7b902b1 commit 03c750c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5318d809d7b4975ce5e5303e8508f89a5458c2b6
refs/heads/master: 712ae51afd55b20c04c5383d02ba5d10233313b1
5 changes: 5 additions & 0 deletions trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,14 @@ static void vlan_dev_uninit(struct net_device *dev)
static u32 vlan_dev_fix_features(struct net_device *dev, u32 features)
{
struct net_device *real_dev = vlan_dev_info(dev)->real_dev;
u32 old_features = features;

features &= real_dev->features;
features &= real_dev->vlan_features;

if (old_features & NETIF_F_SOFT_FEATURES)
features |= old_features & NETIF_F_SOFT_FEATURES;

if (dev_ethtool_get_rx_csum(real_dev))
features |= NETIF_F_RXCSUM;
features |= NETIF_F_LLTX;
Expand Down

0 comments on commit 03c750c

Please sign in to comment.