diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-07-03 09:41:29 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-04 11:48:14 -0700 |
commit | 39827be26b36ef9cdbc661c92a269e0484cd9ef5 (patch) | |
tree | 5550c007b82f91a6db47681dfcd08dc29b3ff13c /drivers/infiniband/hw/nes/nes_nic.c | |
parent | e5a0c1fd155ca0e98ff8995c2e79b654759cb544 (diff) | |
download | linux-39827be26b36ef9cdbc661c92a269e0484cd9ef5.tar.gz linux-39827be26b36ef9cdbc661c92a269e0484cd9ef5.tar.bz2 linux-39827be26b36ef9cdbc661c92a269e0484cd9ef5.zip |
IB/{nes, ipoib}: Pass supported flags to ethtool_op_set_flags()
Following commit 1437ce3983bcbc0447a0dedcd644c14fe833d266 "ethtool:
Change ethtool_op_set_flags to validate flags", ethtool_op_set_flags
takes a third parameter and cannot be used directly as an
implementation of ethtool_ops::set_flags.
Changes nes and ipoib driver to pass in the appropriate value.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_nic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 5cc0a9ae5bb1..42e7aad1ec23 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -1567,6 +1567,12 @@ static int nes_netdev_set_settings(struct net_device *netdev, struct ethtool_cmd } +static int nes_netdev_set_flags(struct net_device *netdev, u32 flags) +{ + return ethtool_op_set_flags(netdev, flags, ETH_FLAG_LRO); +} + + static const struct ethtool_ops nes_ethtool_ops = { .get_link = ethtool_op_get_link, .get_settings = nes_netdev_get_settings, @@ -1588,7 +1594,7 @@ static const struct ethtool_ops nes_ethtool_ops = { .get_tso = ethtool_op_get_tso, .set_tso = ethtool_op_set_tso, .get_flags = ethtool_op_get_flags, - .set_flags = ethtool_op_set_flags, + .set_flags = nes_netdev_set_flags, }; |