Re: [dpdk-dev] [PATCH] net/i40e: solve vf rxq buf size alignment

2021-09-05 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Qiming Chen > Sent: Monday, August 23, 2021 12:11 PM > To: dev@dpdk.org > Cc: Xing, Beilei ; Qiming Chen > > Subject: [dpdk-dev] [PATCH] net/i40e: solve vf rxq buf size alignment > > The RTE_ALIGN macro is align

[dpdk-dev] [PATCH] net/i40e: solve vf rxq buf size alignment

2021-08-22 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