> -----Original Message-----
> From: dev <dev-boun...@dpdk.org> On Behalf Of Qiming Chen
> Sent: Saturday, September 11, 2021 10:08 AM
> To: dev@dpdk.org
> Cc: Xing, Beilei <beilei.x...@intel.com>; Wu, Jingjing 
> <jingjing...@intel.com>;
> Qiming Chen <chenqiming_hua...@163.com>; sta...@dpdk.org
> Subject: [dpdk-dev] [PATCH] net/iavf: fix rxq buf size alignment
> 
> The RTE_ALIGN macro is aligned upwards. If the buf_size variable is not 
> aligned
> with 1 << I40E_RXQ_CTX_DBUFF_SHIFT, the rx_buf_len is larger than the
> actual mbuf memory after the operation. When receiving the packet, if the
> packet is larger than the configured buf_size, it will cause a memory stepping
> event.
> 
> The patch uses the RTE_ALIGN_FLOOR down alignment macro to correct the
> problem.
> 
> Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Qiming Chen <chenqiming_hua...@163.com>

Acked-by: Qi Zhang <qi.z.zh...@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi

Reply via email to