patch 'net/nfp: standardize NFDk Tx descriptor endianness' has been queued to stable release 23.11.5
Xueming Li
xuemingl at nvidia.com
Thu Jun 26 14:01:02 CEST 2025
Hi,
FYI, your patch has been queued to stable release 23.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/28/25. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=8e944939140f16e08550dd1e846536fc607dd936
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 8e944939140f16e08550dd1e846536fc607dd936 Mon Sep 17 00:00:00 2001
From: Chaoyong He <chaoyong.he at corigine.com>
Date: Tue, 15 Apr 2025 10:54:53 +0800
Subject: [PATCH] net/nfp: standardize NFDk Tx descriptor endianness
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit ae1baeca61cf11beea62364bcc0a80ff261abe7c ]
The data endian of NFDk Tx descriptor should be little, and the related
logic also should modify.
Fixes: d7f6d9b21ffa ("net/nfp: adjust coding style for NFDk")
Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Long Wu <long.wu at corigine.com>
Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
---
drivers/net/nfp/nfdk/nfp_nfdk.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/nfp/nfdk/nfp_nfdk.h b/drivers/net/nfp/nfdk/nfp_nfdk.h
index 2767fd51cd..a5e52824e8 100644
--- a/drivers/net/nfp/nfdk/nfp_nfdk.h
+++ b/drivers/net/nfp/nfdk/nfp_nfdk.h
@@ -106,19 +106,19 @@ struct nfp_net_nfdk_tx_desc {
union {
/** Address descriptor */
struct {
- uint16_t dma_addr_hi; /**< High bits of host buf address */
- uint16_t dma_len_type; /**< Length to DMA for this desc */
- uint32_t dma_addr_lo; /**< Low 32bit of host buf addr */
+ rte_le16_t dma_addr_hi; /**< High bits of host buf address */
+ rte_le16_t dma_len_type; /**< Length to DMA for this desc */
+ rte_le32_t dma_addr_lo; /**< Low 32bit of host buf addr */
};
/** TSO descriptor */
struct {
- uint16_t mss; /**< MSS to be used for LSO */
+ rte_le16_t mss; /**< MSS to be used for LSO */
uint8_t lso_hdrlen; /**< LSO, TCP payload offset */
uint8_t lso_totsegs; /**< LSO, total segments */
uint8_t l3_offset; /**< L3 header offset */
uint8_t l4_offset; /**< L4 header offset */
- uint16_t lso_meta_res; /**< Rsvd bits in TSO metadata */
+ rte_le16_t lso_meta_res; /**< Rsvd bits in TSO metadata */
};
/** Metadata descriptor */
@@ -127,8 +127,8 @@ struct nfp_net_nfdk_tx_desc {
uint8_t reserved[7]; /**< Meta byte place holder */
};
- uint32_t vals[2];
- uint64_t raw;
+ rte_le32_t vals[2];
+ rte_le64_t raw;
};
};
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-06-26 19:59:19.509678555 +0800
+++ 0042-net-nfp-standardize-NFDk-Tx-descriptor-endianness.patch 2025-06-26 19:59:17.378418044 +0800
@@ -1 +1 @@
-From ae1baeca61cf11beea62364bcc0a80ff261abe7c Mon Sep 17 00:00:00 2001
+From 8e944939140f16e08550dd1e846536fc607dd936 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit ae1baeca61cf11beea62364bcc0a80ff261abe7c ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +22 @@
-index 29d862f6f0..64c2b31308 100644
+index 2767fd51cd..a5e52824e8 100644
@@ -23 +25 @@
-@@ -109,19 +109,19 @@ struct nfp_net_nfdk_tx_desc {
+@@ -106,19 +106,19 @@ struct nfp_net_nfdk_tx_desc {
@@ -48 +50 @@
-@@ -130,8 +130,8 @@ struct nfp_net_nfdk_tx_desc {
+@@ -127,8 +127,8 @@ struct nfp_net_nfdk_tx_desc {
More information about the stable
mailing list