git: 3a01651c1b13 - stable/15 - ena: Minor changes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Apr 2026 22:20:29 UTC
The branch stable/15 has been updated by akiyano:
URL: https://cgit.FreeBSD.org/src/commit/?id=3a01651c1b13df5ee3f6d083892c3a8dd48e35bd
commit 3a01651c1b13df5ee3f6d083892c3a8dd48e35bd
Author: Arthur Kiyanovski <akiyano@amazon.com>
AuthorDate: 2026-02-14 01:12:41 +0000
Commit: Arthur Kiyanovski <akiyano@FreeBSD.org>
CommitDate: 2026-04-02 22:17:36 +0000
ena: Minor changes
1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.
Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.
(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
---
sys/dev/ena/ena.c | 5 ++---
sys/dev/ena/ena_rss.h | 3 +--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c
index af158b5aea1d..eddb7dbd42e8 100644
--- a/sys/dev/ena/ena.c
+++ b/sys/dev/ena/ena.c
@@ -1861,7 +1861,7 @@ ena_setup_io_intr(struct ena_adapter *adapter)
adapter->que[i].domain = idx;
#else
adapter->que[i].domain = -1;
-#endif
+#endif /* RSS */
}
return (0);
@@ -2766,8 +2766,7 @@ ena_set_llq_configurations(struct ena_llq_configurations *llq_config,
llq_config->llq_num_decs_before_header =
ENA_ADMIN_LLQ_NUM_DESCS_BEFORE_HEADER_2;
- switch (ena_force_large_llq_header)
- {
+ switch (ena_force_large_llq_header) {
case ENA_LLQ_HEADER_SIZE_POLICY_REGULAR:
use_large_llq = false;
break;
diff --git a/sys/dev/ena/ena_rss.h b/sys/dev/ena/ena_rss.h
index 64dd41851fec..d2706deef8ca 100644
--- a/sys/dev/ena/ena_rss.h
+++ b/sys/dev/ena/ena_rss.h
@@ -35,13 +35,12 @@
#include "opt_rss.h"
#include <sys/types.h>
+#include "ena.h"
#ifdef RSS
#include <net/rss_config.h>
#endif
-#include "ena.h"
-
#define ENA_RX_RSS_MSG_RECORD_SZ 8
struct ena_indir {