Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203215
b: refs/heads/master
c: ef2519b
h: refs/heads/master
i:
  203213: c1ae4bb
  203211: 59bcf59
  203207: f2bd8fe
  203199: b69169f
v: v3
  • Loading branch information
Stanislaw Gruszka authored and David S. Miller committed Jun 29, 2010
1 parent 2f45b6e commit 6b09d3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0d904ffd052930504913fb105dd25764f5f0bd8
refs/heads/master: ef2519b1dd3994074e3e438d67f2d91d07c3a5a8
13 changes: 10 additions & 3 deletions trunk/drivers/net/netxen/netxen_nic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,19 @@ static int netxen_nic_set_flags(struct net_device *netdev, u32 data)
struct netxen_adapter *adapter = netdev_priv(netdev);
int hw_lro;

if (data & ~ETH_FLAG_LRO)
return -EOPNOTSUPP;

if (!(adapter->capabilities & NX_FW_CAPABILITY_HW_LRO))
return -EINVAL;

ethtool_op_set_flags(netdev, data);

hw_lro = (data & ETH_FLAG_LRO) ? NETXEN_NIC_LRO_ENABLED : 0;
if (data & ETH_FLAG_LRO) {
hw_lro = NETXEN_NIC_LRO_ENABLED;
netdev->features |= NETIF_F_LRO;
} else {
hw_lro = 0;
netdev->features &= ~NETIF_F_LRO;
}

if (netxen_config_hw_lro(adapter, hw_lro))
return -EIO;
Expand Down

0 comments on commit 6b09d3c

Please sign in to comment.