[PATCH] net/ice: fix sizing of filter hash table
David Marchand
david.marchand at redhat.com
Fri Jul 12 10:40:02 CEST 2024
On Thu, Jul 11, 2024 at 6:57 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> The hash table used for managing the filter rules in the ice driver was
> dimensioned to a hard-coded 16k, which is insufficient for holding all
> the filters supported by E830 HW.
>
> Rather than using a hard-coded value which may need updates for new
> hardware support, we can query the NIC max filter support from hardware
> and scale the hash table size based on that value.
>
> Fixes: 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director")
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
I did not test it, but on the principle this looks fine.
Acked-by: David Marchand <david.marchand at redhat.com>
>
> ---
>
> NOTE: Omission of "Cc: stable..." is deliberate. Although this
> is a fix for an issue originally introduced in an old commit, the issue
> only manifests with newly-supported HW, so the fix does not need
> backporting.
Makes sense.
--
David Marchand
More information about the dev
mailing list