diff options
author | Bert Kenward <bkenward@solarflare.com> | 2015-12-11 12:39:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-12 08:26:18 +0300 |
commit | f1c2ef40c6436f8fa287ff1be2c75c4932180b1f (patch) | |
tree | 7c31c572c9b386d480f45e793abd9e550f553784 /drivers/net/ethernet/sfc/efx.h | |
parent | f7fc6bc414121954c45c5f18b70e2a8717d0d5b4 (diff) | |
download | linux-f1c2ef40c6436f8fa287ff1be2c75c4932180b1f.tar.xz |
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.h | 5 |
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); |