> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Qiming Chen
> Sent: Saturday, September 11, 2021 10:08 AM
> To: [email protected]
> Cc: Xing, Beilei <[email protected]>; Wu, Jingjing
> <[email protected]>;
> Qiming Chen <[email protected]>; [email protected]
> 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: [email protected]
>
> Signed-off-by: Qiming Chen <[email protected]>
Acked-by: Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi