diff options
author | Sudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com> | 2016-10-21 04:43:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-22 17:08:06 -0400 |
commit | ba300ce35123a9ba8ea55318b0f579cc1ab3f51a (patch) | |
tree | b4582eb3ed2b1f90e5e4ff624987ec39fe6b35b3 /drivers/net/ethernet | |
parent | bdc8cbd34d5d9d82c3db4df6a182b0530040062d (diff) | |
download | blackbird-op-linux-ba300ce35123a9ba8ea55318b0f579cc1ab3f51a.tar.gz blackbird-op-linux-ba300ce35123a9ba8ea55318b0f579cc1ab3f51a.zip |
qede: Do not allow RSS config for 100G devices
RSS configuration is not supported for 100G adapters.
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c index 16a1a478a2bd..bf04fb9e1ae6 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c +++ b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c @@ -1055,6 +1055,12 @@ static int qede_set_rxfh(struct net_device *dev, const u32 *indir, struct qede_dev *edev = netdev_priv(dev); int i; + if (edev->dev_info.common.num_hwfns > 1) { + DP_INFO(edev, + "RSS configuration is not supported for 100G devices\n"); + return -EOPNOTSUPP; + } + if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) return -EOPNOTSUPP; |