diff options
author | Edward Cree <ecree@solarflare.com> | 2017-01-04 15:10:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-04 14:18:19 -0500 |
commit | 4fdda95893de776a8efdf661bbf0e338f2f13dcb (patch) | |
tree | 401489055ed33d8fb743ab345e147a57729b9e59 /drivers/net/ethernet/sfc/siena.c | |
parent | aa9773be2ad5afe7acc186aedbf3b4857611d4ed (diff) | |
download | linux-4fdda95893de776a8efdf661bbf0e338f2f13dcb.tar.gz linux-4fdda95893de776a8efdf661bbf0e338f2f13dcb.tar.bz2 linux-4fdda95893de776a8efdf661bbf0e338f2f13dcb.zip |
sfc: don't report RX hash keys to ethtool when RSS wasn't enabled
If we failed to set up RSS on EF10 (e.g. because firmware declared
RX_RSS_LIMITED), ethtool --show-nfc $dev rx-flow-hash ... should report
no fields, rather than confusingly reporting what fields we _would_ be
hashing on if RSS was working.
Fixes: dcb4123cbec0 ("sfc: disable RSS when unsupported")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena.c')
-rw-r--r-- | drivers/net/ethernet/sfc/siena.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/siena.c b/drivers/net/ethernet/sfc/siena.c index a3901bc96586..4e54e5dc9fcb 100644 --- a/drivers/net/ethernet/sfc/siena.c +++ b/drivers/net/ethernet/sfc/siena.c @@ -403,6 +403,7 @@ static int siena_init_nic(struct efx_nic *efx) efx_writeo(efx, &temp, FR_AZ_RX_CFG); siena_rx_push_rss_config(efx, false, efx->rx_indir_table); + efx->rss_active = true; /* Enable event logging */ rc = efx_mcdi_log_ctrl(efx, true, false, 0); |