[PATCH] net/ice: fix RSS rule overwriting an existing one

Bruce Richardson bruce.richardson at intel.com
Thu Nov 5 11:59:31 CET 2026


On Tue, Nov 03, 2026 at 06:44:38AM +0000, Anurag Mandal wrote:
> An RSS flow rule only selects the hash input set of a packet type,
> & the hardware keeps a single RSS profile per packet type for a
> port or the PF VSI.
> When a second rule is created for a packet type already used by
> another rule, the existing profile is silently replaced, while both
> flow handles remain valid.
> For example:
>   flow create 0 ingress pattern eth / vlan vid is 1500 / ipv6 / end
>     actions rss types ipv6 l3-dst-only end queues end / end
>   flow create 0 ingress pattern eth / vlan vid is 2640 / ipv6 / end
>     actions rss types ipv6 l3-src-only end queues end / end
> 
> Only the second rule is applied, whatever the VLAN ID of the packet,
> and destroying it, leaves the first rule without any hardware
> configuration.
> 
> Reject the creation of an RSS rule when another RSS rule of the port
> already uses the same protocol header stack.
> An outer VLAN header is ignored in the comparison, as it does not
> change the packet type.
> The existing rule has to be destroyed first to change the hash input
> set of that packet type.
> 
> Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
>  drivers/net/intel/ice/ice_hash.c | 43 ++++++++++++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied to dpdk-next-net-intel.
Thanks,
/Bruce


More information about the stable mailing list