diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-05-14 20:25:27 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-06-02 21:42:44 -0400 |
commit | fe62d001372388abb15a324148c913f9b43722a8 (patch) | |
tree | 28b1c01e537430432ee340ae8b6ad20c50429701 /net/core | |
parent | 33cb0fa7888510b5bd2096352b200cfe29db10fe (diff) |
ethtool: Replace ethtool_ops::{get,set}_rxfh_indir() with {get,set}_rxfh()
ETHTOOL_{G,S}RXFHINDIR and ETHTOOL_{G,S}RSSH should work for drivers
regardless of whether they expose the hash key, unless you try to
set a hash key for a driver that doesn't expose it.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/ethtool.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index b8857348bdf3..8ae452afb545 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -582,7 +582,7 @@ static noinline_for_stack int ethtool_get_rxfh_indir(struct net_device *dev, | |||
582 | int ret; | 582 | int ret; |
583 | 583 | ||
584 | if (!dev->ethtool_ops->get_rxfh_indir_size || | 584 | if (!dev->ethtool_ops->get_rxfh_indir_size || |
585 | !dev->ethtool_ops->get_rxfh_indir) | 585 | !dev->ethtool_ops->get_rxfh) |
586 | return -EOPNOTSUPP; | 586 | return -EOPNOTSUPP; |
587 | dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); | 587 | dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); |
588 | if (dev_size == 0) | 588 | if (dev_size == 0) |
@@ -608,7 +608,7 @@ static noinline_for_stack int ethtool_get_rxfh_indir(struct net_device *dev, | |||
608 | if (!indir) | 608 | if (!indir) |
609 | return -ENOMEM; | 609 | return -ENOMEM; |
610 | 610 | ||
611 | ret = dev->ethtool_ops->get_rxfh_indir(dev, indir); | 611 | ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL); |
612 | if (ret) | 612 | if (ret) |
613 | goto out; | 613 | goto out; |
614 | 614 | ||
@@ -632,7 +632,7 @@ static noinline_for_stack int ethtool_set_rxfh_indir(struct net_device *dev, | |||
632 | int ret; | 632 | int ret; |
633 | u32 ringidx_offset = offsetof(struct ethtool_rxfh_indir, ring_index[0]); | 633 | u32 ringidx_offset = offsetof(struct ethtool_rxfh_indir, ring_index[0]); |
634 | 634 | ||
635 | if (!ops->get_rxfh_indir_size || !ops->set_rxfh_indir || | 635 | if (!ops->get_rxfh_indir_size || !ops->set_rxfh || |
636 | !ops->get_rxnfc) | 636 | !ops->get_rxnfc) |
637 | return -EOPNOTSUPP; | 637 | return -EOPNOTSUPP; |
638 | 638 | ||
@@ -669,7 +669,7 @@ static noinline_for_stack int ethtool_set_rxfh_indir(struct net_device *dev, | |||
669 | goto out; | 669 | goto out; |
670 | } | 670 | } |
671 | 671 | ||
672 | ret = ops->set_rxfh_indir(dev, indir); | 672 | ret = ops->set_rxfh(dev, indir, NULL); |
673 | 673 | ||
674 | out: | 674 | out: |
675 | kfree(indir); | 675 | kfree(indir); |