[PATCH v2] net/gve: fix RX buffer size alignment
Ferruh Yigit
ferruh.yigit at amd.com
Tue Nov 14 13:56:50 CET 2023
On 11/14/2023 2:41 AM, Guo, Junfeng wrote:
>
>
>> -----Original Message-----
>> From: Joshua Washington <joshwash at google.com>
>> Sent: Tuesday, November 14, 2023 07:12
>> To: Guo, Junfeng <junfeng.guo at intel.com>; Jeroen de Borst
>> <jeroendb at google.com>; Rushil Gupta <rushilg at google.com>; Joshua
>> Washington <joshwash at google.com>; Li, Xiaoyun <xiaoyun.li at intel.com>
>> Cc: dev at dpdk.org; stable at dpdk.org; Ferruh Yigit <ferruh.yigit at amd.com>
>> Subject: [PATCH v2] net/gve: fix RX buffer size alignment
>>
>> In GVE, both queue formats have RX buffer size alignment requirements
>> which will not always be respected when a user specifies an mbuf size.
>> Assuming that an mbuf size is greater than the DPDK recommended default
>> (2048 + 128), if the buffer size is not properly aligned with what the
>> device expects, the device will silently fail to create any transmit or
>> receive queues.
>>
>> Because no queues are created, there is no network traffic for the DPDK
>> program, and errors like the following are returned when attempting to
>> destroy queues:
>>
>> gve_adminq_parse_err(): AQ command failed with status -11
>> gve_stop_tx_queues(): failed to destroy txqs
>> gve_adminq_parse_err(): AQ command failed with status -11
>> gve_stop_rx_queues(): failed to destroy rxqs
>>
>> This change aims to remedy this by restricting the RX receive buffer
>> sizes to valid sizes for their respective queue formats, including both
>> alignment and minimum and maximum supported buffer sizes.
>>
>> Fixes: 4bec2d0b5572 ("net/gve: support queue operations")
>> Fixes: 1dc00f4fc74b ("net/gve: add Rx queue setup for DQO")
>> Cc: junfeng.guo at intel.com
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Joshua Washington <joshwash at google.com>
>> Reviewed-by: Rushil Gupta <rushilg at google.com>
>
> Acked-by: Junfeng Guo <junfeng.guo at intel.com>
>
Applied to dpdk-next-net/main, thanks.
More information about the stable
mailing list