[PATCH v1 18/30] net/i40e/base: add named and raw structs to rx desc
Anatoly Burakov
anatoly.burakov at intel.com
Mon Sep 2 11:54:30 CEST 2024
From: Björn Töpel <bjorn.topel at intel.com>
Add i40e_16b_rx_wb_qw0 and raw structs to i40e_16byte_rx_desc, to allow
access both as 16-byte descriptor, and as raw data.
Signed-off-by: Björn Töpel <bjorn.topel at intel.com>
Signed-off-by: Michal Jaron <michalx.jaron at intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
drivers/net/i40e/base/i40e_type.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h
index fe47f00ec9..83cf701fb4 100644
--- a/drivers/net/i40e/base/i40e_type.h
+++ b/drivers/net/i40e/base/i40e_type.h
@@ -775,7 +775,7 @@ union i40e_16byte_rx_desc {
__le64 hdr_addr; /* Header buffer address */
} read;
struct {
- struct {
+ struct i40e_16b_rx_wb_qw0 {
struct {
union {
__le16 mirroring_status;
@@ -794,6 +794,9 @@ union i40e_16byte_rx_desc {
__le64 status_error_len;
} qword1;
} wb; /* writeback */
+ struct {
+ u64 qword[2];
+ } raw;
};
union i40e_32byte_rx_desc {
--
2.43.5
More information about the dev
mailing list