Skip to contentSkip to conversation

net/xsc: add ethdev Tx burst

PATCH Superseded WanRenyong 1 participant 1 message Sep 6, 2024 Network drivers

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

WanRenyong

author
#0 lore raw

PATCH 15/19 net/xsc: add ethdev Tx burst

Implement xsc PMD transmit function.

---
 doc/guides/nics/features/xsc.ini |   4 +
 drivers/net/xsc/xsc_rxtx.c       | 231 ++++++++++++++++++++++++++++++-
 drivers/net/xsc/xsc_rxtx.h       |   9 ++
 3 files changed, 242 insertions(+), 2 deletions(-)
doc/guides/nics/features/xsc.ini +4 -0
index bdeb7a984b..772c6418c4 100644
@@ -7,6 +7,10 @@
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
+L3 checksum offload  = Y
+L4 checksum offload  = Y
+Inner L3 checksum    = Y
+Inner L4 checksum    = Y
 Linux                = Y
 ARMv8                = Y
 x86-64               = Y
drivers/net/xsc/xsc_rxtx.c +229 -2

244 lines not on this page · raw message

drivers/net/xsc/xsc_rxtx.h +9 -0
index 454d5c0378..ce6e47ad4c 100644
@@ -166,6 +166,15 @@ struct __rte_cache_aligned xsc_rxq_data {
 	uint32_t rss_hash:1; /* RSS hash enabled */
 };
 
+union xsc_cq_doorbell {
+	struct {
+		uint32_t next_cid : 16;
+		uint32_t cq_num : 15;
+		uint32_t cq_sta : 1;
+	};
+	uint32_t cq_data;
+};
+
 union xsc_recv_doorbell {
 	struct {
 		uint32_t next_pid : 13;
Signature · 1 line
2.25.1