[dpdk-dev] [PATCH] net/bnxt: fix cp ring size calculation

Lance Richardson lance.richardson at broadcom.com
Fri Jan 29 19:02:07 CET 2021


On Fri, Jan 29, 2021 at 12:57 PM Lance Richardson
<lance.richardson at broadcom.com> wrote:
>
> The size of the receive completion ring should be recalculated
> when MTU is increased to a size that requires scattered receive
> or when LRO is enabled. Move logic for this calculation from
> the ring configuration path to the device start path.
>    - Made size calculation dependent only on scattered_rx
>      status.
>    - Moved calculation of scattered_rx up in the initialization
>      sequence.
>    - Made LRO offload status part of scattered_rx calculation.
>
> When the completion ring size is too small, completion overflows
> can occur causing the ring to be disabled in hardware.
>
> Fixes: 04067844a3e9 ("net/bnxt: reduce CQ queue size without aggregation ring")
> Cc: stable at dpdk.org
> Signed-off-by: Lance Richardson <lance.richardson at broadcom.com>
> Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde at broadcom.com>
> ---
Please disregard, v2 coming.


More information about the dev mailing list