From: Sudarsana Reddy Kalluru Date: Fri, 21 Oct 2016 08:43:40 +0000 (-0400) Subject: qede: Do not allow RSS config for 100G devices X-Git-Tag: MMI-PSA29.97-13-9~6848^2~48^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba300ce35123a9ba8ea55318b0f579cc1ab3f51a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git qede: Do not allow RSS config for 100G devices RSS configuration is not supported for 100G adapters. Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller --- 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;