From: Shai Brandes <shaibran@amazon.com>
To: <stephen@networkplumber.org>
Cc: <dev@dpdk.org>, Shai Brandes <shaibran@amazon.com>
Subject: [PATCH v3 2/7] net/ena/base: coding style changes
Date: Thu, 22 May 2025 16:26:09 +0300 [thread overview]
Message-ID: <20250522132614.3379-3-shaibran@amazon.com> (raw)
In-Reply-To: <20250522132614.3379-1-shaibran@amazon.com>
Reordered variable declarations to follow the
reverse Christmas tree style.
Signed-off-by: Shai Brandes <shaibran@amazon.com>
Reviewed-by: Amit Bernstein <amitbern@amazon.com>
Reviewed-by: Yosef Raisman <yraisman@amazon.com>
---
drivers/net/ena/base/ena_com.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c
index 238716de29..588dc61387 100644
--- a/drivers/net/ena/base/ena_com.c
+++ b/drivers/net/ena/base/ena_com.c
@@ -308,8 +308,8 @@ static struct ena_comp_ctx *ena_com_submit_admin_cmd(struct ena_com_admin_queue
struct ena_admin_acq_entry *comp,
size_t comp_size_in_bytes)
{
- unsigned long flags = 0;
struct ena_comp_ctx *comp_ctx;
+ unsigned long flags = 0;
ENA_SPINLOCK_LOCK(admin_queue->q_lock, flags);
if (unlikely(!admin_queue->running_state)) {
@@ -616,10 +616,10 @@ static int ena_com_wait_and_process_admin_cq_polling(struct ena_comp_ctx *comp_c
*/
static int ena_com_set_llq(struct ena_com_dev *ena_dev)
{
+ struct ena_com_llq_info *llq_info = &ena_dev->llq_info;
struct ena_com_admin_queue *admin_queue;
- struct ena_admin_set_feat_cmd cmd;
struct ena_admin_set_feat_resp resp;
- struct ena_com_llq_info *llq_info = &ena_dev->llq_info;
+ struct ena_admin_set_feat_cmd cmd;
int ret;
memset(&cmd, 0x0, sizeof(cmd));
--
2.17.1
next prev parent reply other threads:[~2025-05-22 13:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 13:26 [PATCH v3 0/7] net/ena: release 2.13.0 Shai Brandes
2025-05-22 13:26 ` [PATCH v3 1/7] net/ena/base: avoid recalculating desc per entry Shai Brandes
2025-05-22 13:26 ` Shai Brandes [this message]
2025-05-22 13:26 ` [PATCH v3 3/7] net/ena: separate doorbell logic for Rx and Tx Shai Brandes
2025-05-22 13:26 ` [PATCH v3 4/7] net/ena: support fragment bypass mode Shai Brandes
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=20250522132614.3379-3-shaibran@amazon.com \
--to=shaibran@amazon.com \
--cc=dev@dpdk.org \
--cc=stephen@networkplumber.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).