[PATCH v2] net/nfp: ensure the MTU can work
    Ferruh Yigit 
    ferruh.yigit at amd.com
       
    Fri Oct 21 11:59:48 CEST 2022
    
    
  
On 10/21/2022 7:27 AM, Chaoyong He wrote:
> From: Peng Zhang <peng.zhang at corigine.com>
> 
> When MTU is bigger than hw->flbufsz, it can't work. hw->flbufsz is set in
> the nfp_net_rx_queue_setup().
> 
> At first, in the nfp_net_configure(), the hw->flbufsz isn't set the value,
> it just judge the initialized value and MTU, it is unreasonable.
> 
> Now, it just check the MTU can't be more than the NFP_FRAME_SIZE_MAX in
> the nfp_net_configure(), when hw->flbufsz is set the value, in the
> nfp_net_start(), judge the hw->flbufsz and MTU.
> 
> Fixes: 5c305e218f15 ("net/nfp: fix initialization")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Peng Zhang <peng.zhang at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
> 
Applied to dpdk-next-net/main, thanks.
    
    
More information about the stable
mailing list