[PATCH v2 13/20] net/ena/base: remove redundant zeroing of Tx desc

Stephen Hemminger stephen at networkplumber.org
Thu Oct 16 18:08:46 CEST 2025


On Wed, 15 Oct 2025 15:10:42 +0300
Shai Brandes <shaibran at amazon.com> wrote:

> +/* There is an assumption in function get_tx_sq_desc() that both descriptors have the same size */
> +_Static_assert(sizeof(struct ena_eth_io_tx_meta_desc) == (sizeof(struct ena_eth_io_tx_desc)),
> +	       "ena_eth_io_tx_meta_desc should be the same size as ena_eth_io_tx_desc");
> +static void *get_tx_sq_desc(struct ena_com_io_sq *io_sq)

In general DPDK code is using static_assert instead _Static_assert
could this be used here?


More information about the dev mailing list