Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223758
b: refs/heads/master
c: c471178
h: refs/heads/master
v: v3
  • Loading branch information
Breno Leitao authored and David S. Miller committed Dec 28, 2010
1 parent d652e95 commit 4ec9489
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 12f188f2e59394ec1f1c8c0a4439f48ec16bc336
refs/heads/master: c4711786986af0cce654f493426ee0a1055e4b17
7 changes: 7 additions & 0 deletions trunk/drivers/net/ehea/ehea_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ static void ehea_get_ethtool_stats(struct net_device *dev,

static int ehea_set_flags(struct net_device *dev, u32 data)
{
/* Avoid changing the VLAN flags */
if ((data & (ETH_FLAG_RXVLAN | ETH_FLAG_TXVLAN)) !=
(ethtool_op_get_flags(dev) & (ETH_FLAG_RXVLAN |
ETH_FLAG_TXVLAN))){
return -EINVAL;
}

return ethtool_op_set_flags(dev, data, ETH_FLAG_LRO
| ETH_FLAG_TXVLAN
| ETH_FLAG_RXVLAN);
Expand Down

0 comments on commit 4ec9489

Please sign in to comment.