From: Andrew Rybchenko Date: Tue, 18 Apr 2017 13:03:08 +0000 (+0100) Subject: net/sfc: correct RSS hash availability condition X-Git-Tag: spdx-start~3512 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=4c7f9729dd90d84ee85d6230ee86ddb86464a02d 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 --- 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