From 4c7f9729dd90d84ee85d6230ee86ddb86464a02d Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Tue, 18 Apr 2017 14:03:08 +0100 Subject: [PATCH] net/sfc: correct RSS hash availability condition RSS hash is computed by hardware if corresponding Rx filter (for example, default Rx filters) has RSS flag set which is set if the number of RSS channels is greater than zero. Fixes: 4ec1fc3ba881 ("net/sfc: add basic stubs for RSS support on driver attach") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index 664b38d2c9..2ecd6f26eb 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -930,7 +930,7 @@ sfc_rx_qinit(struct sfc_adapter *sa, unsigned int sw_index, info.prefix_size = encp->enc_rx_prefix_size; #if EFSYS_OPT_RX_SCALE - if (sa->hash_support == EFX_RX_HASH_AVAILABLE) + if (sa->hash_support == EFX_RX_HASH_AVAILABLE && sa->rss_channels > 0) info.flags |= SFC_RXQ_FLAG_RSS_HASH; #endif -- 2.20.1