Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103531
b: refs/heads/master
c: 19b9a4e
h: refs/heads/master
i:
  103529: ced32b7
  103527: b1b6ff5
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 15, 2008
1 parent 0a725d9 commit 8341587
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 393e52e33c6c26ec7db290dab803bac1bed962d4
refs/heads/master: 19b9a4e256758a0c032c915eebe0a39b370ea133
13 changes: 13 additions & 0 deletions trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,22 @@ static u32 vlan_ethtool_get_rx_csum(struct net_device *dev)
return real_dev->ethtool_ops->get_rx_csum(real_dev);
}

static u32 vlan_ethtool_get_flags(struct net_device *dev)
{
const struct vlan_dev_info *vlan = vlan_dev_info(dev);
struct net_device *real_dev = vlan->real_dev;

if (!(real_dev->features & NETIF_F_HW_VLAN_RX) ||
real_dev->ethtool_ops == NULL ||
real_dev->ethtool_ops->get_flags == NULL)
return 0;
return real_dev->ethtool_ops->get_flags(real_dev);
}

static const struct ethtool_ops vlan_ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_rx_csum = vlan_ethtool_get_rx_csum,
.get_flags = vlan_ethtool_get_flags,
};

void vlan_setup(struct net_device *dev)
Expand Down

0 comments on commit 8341587

Please sign in to comment.