[dpdk-stable] [PATCH 1/2] net/qede: fix MTU set and max Rx pkt len usage

Luca Boccassi bluca at debian.org
Mon Feb 26 12:00:01 CET 2018


On Sun, 2018-02-25 at 21:16 -0800, Rasesh Mody wrote:
> [ backported from upstream commit
> 9e334305178fd3715c17088632544bf58e5836a9 ]
> [ backported from upstream commit
> 1ef4c3a5c1f76b810620b76d82a31ce33a83d3fe ]
> [ backported from upstream commit
> f6033f2497e7d01d8c6f0d691e2f86937597aa35 ]
> 
> This patch fixes issues related to MTU set and max_rx_pkt_len usage.
>  - Adjust MTU during device configuration when jumbo is enabled
> 
>  - In qede_set_mtu():
>    Return not supported for VF as currently we do not support it.
> 
>    Add check for RXQ allocation before calculating RX buffer size
>    if not allocated defer RX buffer size calculation till RXQ setup.
> 
>    Add check for before performing device start/stop.
> 
>  - Use max_rx_pkt_len appropriately
> 
>  - Change QEDE_ETH_OVERHEAD macro to adjust driver specifics
> 
>  -  The driver can handle dynamic MTU change without needing the port
> to be
>     stopped explicitly by the application. However, there is
> currently no
>     check to prevent I/Os from happening on a different thread while
> the
>     port is going thru' reset internally. This patch fixes this issue
> by
>     assigning RX/TX burst functions to a dummy function and also
> reconfigure
>     RX bufsize for each rx queue based on the new MTU value.
> 
>  - Fix minimum RX buffer size to 1024B
> 
>  - Force enable scatter/gather mode if given RX buf size is lesser
> than MTU
> 
>  - Adjust RX buffer size to cache-line size with overhead included
> 
> Fixes: bec0228816c0 ("net/qede: support scatter gather")
> Fixes: 2ea6f76aff40 ("qede: add core driver")
> 
> Signed-off-by: Harish Patil <harish.patil at cavium.com>
> Signed-off-by: Rasesh Mody <rasesh.mody at cavium.com>
> ---

Thanks, series applied and pushed to dpdk-stable/16.11.

-- 
Kind regards,
Luca Boccassi


More information about the stable mailing list