Re: [dpdk-dev] [PATCH] net/iavf: fix rxq buf size alignment

2021-09-14 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Qiming Chen > Sent: Saturday, September 11, 2021 10:08 AM > To: dev@dpdk.org > Cc: Xing, Beilei ; Wu, Jingjing > ; > Qiming Chen ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/iavf: fix rxq buf size alignment

[dpdk-dev] [PATCH] net/iavf: fix rxq buf size alignment

2021-09-10 Thread Qiming Chen
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 stepp