From: Stephen Hemminger <stephen@networkplumber.org>
To: Shai Brandes <shaibran@amazon.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH v2 13/20] net/ena/base: remove redundant zeroing of Tx desc
Date: Thu, 16 Oct 2025 09:08:46 -0700 [thread overview]
Message-ID: <20251016090846.1ad2be40@hermes.local> (raw)
In-Reply-To: <20251015121042.2828-1-shaibran@amazon.com>
On Wed, 15 Oct 2025 15:10:42 +0300
Shai Brandes <shaibran@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?
prev parent reply other threads:[~2025-10-16 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 12:10 [PATCH v2 13/20] net/ena/base: remove redundant zeroing of Tx desc Shai Brandes
2025-10-16 16:08 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251016090846.1ad2be40@hermes.local \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=shaibran@amazon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.