summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx.h
diff options
context:
space:
mode:
authorBert Kenward2015-12-11 10:39:32 +0100
committerDavid S. Miller2015-12-12 06:26:18 +0100
commitf1c2ef40c6436f8fa287ff1be2c75c4932180b1f (patch)
tree7c31c572c9b386d480f45e793abd9e550f553784 /drivers/net/ethernet/sfc/efx.h
parentuapi: export ila.h (diff)
downloadkernel-qcow2-linux-f1c2ef40c6436f8fa287ff1be2c75c4932180b1f.tar.gz
kernel-qcow2-linux-f1c2ef40c6436f8fa287ff1be2c75c4932180b1f.tar.xz
kernel-qcow2-linux-f1c2ef40c6436f8fa287ff1be2c75c4932180b1f.zip
sfc: only use RSS filters if we're using RSS
Without this, filter insertion on a VF would fail if only one channel was in use. This would include the unicast station filter and therefore no traffic would be received. Signed-off-by: Bert Kenward <bkenward@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.h')
-rw-r--r--drivers/net/ethernet/sfc/efx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h
index 1aaf76c1ace8..10827476bc0b 100644
--- a/drivers/net/ethernet/sfc/efx.h
+++ b/drivers/net/ethernet/sfc/efx.h
@@ -76,6 +76,11 @@ void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue);
#define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_35388(efx) ? \
EFX_MAX_DMAQ_SIZE / 2 : EFX_MAX_DMAQ_SIZE)
+static inline bool efx_rss_enabled(struct efx_nic *efx)
+{
+ return efx->rss_spread > 1;
+}
+
/* Filters */
void efx_mac_reconfigure(struct efx_nic *efx);