diff options
author | Amerigo Wang <amwang@redhat.com> | 2010-08-17 17:51:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-23 00:43:58 -0400 |
commit | f3c58aceaa3f237ba43735805f4677950327b8ee (patch) | |
tree | d847af6efead20dc3eeea2c6cb73be097d507a7a /drivers/net/mlx4/en_ethtool.c | |
parent | f502bf2bc0de4795e8dd081a2095006021c00a0f (diff) |
mlx4: remove num_lro parameter
As suggested by David, this parameter can die, we can use ethtool
to turn LRO on/off. Compile tests only.
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/en_ethtool.c')
-rw-r--r-- | drivers/net/mlx4/en_ethtool.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_ethtool.c b/drivers/net/mlx4/en_ethtool.c index b275238fe70d..398d54136967 100644 --- a/drivers/net/mlx4/en_ethtool.c +++ b/drivers/net/mlx4/en_ethtool.c | |||
@@ -398,8 +398,6 @@ static int mlx4_ethtool_op_set_flags(struct net_device *dev, u32 data) | |||
398 | return -EOPNOTSUPP; | 398 | return -EOPNOTSUPP; |
399 | 399 | ||
400 | if (data & ETH_FLAG_LRO) { | 400 | if (data & ETH_FLAG_LRO) { |
401 | if (mdev->profile.num_lro == 0) | ||
402 | return -EOPNOTSUPP; | ||
403 | if (!(dev->features & NETIF_F_LRO)) | 401 | if (!(dev->features & NETIF_F_LRO)) |
404 | changed = 1; | 402 | changed = 1; |
405 | } else if (dev->features & NETIF_F_LRO) { | 403 | } else if (dev->features & NETIF_F_LRO) { |