From: Mark Spender Date: Wed, 30 Aug 2017 18:17:33 +0000 (+0100) Subject: net/sfc/base: fix default RSS context check on Siena X-Git-Tag: spdx-start~2066 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5c3818eedcb319d099fcf645150268ce84d01bc4;p=dpdk.git net/sfc/base: fix default RSS context check on Siena Default RSS context check is carried out during filter insertion on Siena and it needs to be fixed Fixes: f7dc06bf35f21 ("net/sfc/base: import 5xxx/6xxx family support") Cc: stable@dpdk.org Signed-off-by: Mark Spender Signed-off-by: Andrew Rybchenko Reviewed-by: Andrew Lee Reviewed-by: Andy Moreton --- diff --git a/drivers/net/sfc/base/efx_filter.c b/drivers/net/sfc/base/efx_filter.c index 9804468294..34df111f30 100644 --- a/drivers/net/sfc/base/efx_filter.c +++ b/drivers/net/sfc/base/efx_filter.c @@ -522,9 +522,9 @@ siena_filter_spec_from_gen_spec( else EFSYS_ASSERT3U(gen_spec->efs_flags, &, EFX_FILTER_FLAG_RX); - /* Falconsiena only has one RSS context */ + /* Siena only has one RSS context */ if ((gen_spec->efs_flags & EFX_FILTER_FLAG_RX_RSS) && - gen_spec->efs_rss_context != 0) { + gen_spec->efs_rss_context != EFX_RSS_CONTEXT_DEFAULT) { rc = EINVAL; goto fail1; }