Thread (39 messages) 39 messages, 8 authors, 2021-09-29

Re: [dpdk-dev] [PATCH] ethdev: add RSS offload type for L3 checksum

From: Zhang, AlvinX <hidden>
Date: 2021-06-03 07:29:06

Hi Rybchenko,

Thanks for your review.
We will add more descriptions and update testpmd app in V2.
-----Original Message-----
From: Andrew Rybchenko <redacted>
Sent: Thursday, June 3, 2021 3:15 PM
To: Zhang, AlvinX <redacted>; Yigit, Ferruh
[off-list ref]; Zhang, Qi Z [off-list ref]
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] ethdev: add RSS offload type for L3 checksum

On 6/3/21 6:12 AM, Alvin Zhang wrote:
quoted
Add ETH_RSS_L3_CHKSUM macro.
Sorry, too short description. I could be an existing practice to add more RSS
offload types, but I want to break it.
Please, add motivation in the description why it is useful etc.
quoted
Signed-off-by: Alvin Zhang <redacted>
---
 lib/ethdev/rte_ethdev.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index
faf3bd9..4220ec5 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -537,6 +537,7 @@ struct rte_eth_rss_conf {
 #define ETH_RSS_PPPOE		   (1ULL << 31)
 #define ETH_RSS_ECPRI		   (1ULL << 32)
 #define ETH_RSS_MPLS		   (1ULL << 33)
Please, add a comment what does it mean in various cases covering various L3
protocols. IMHO, we must be explicit here since addition of a new L3 protocol
will make it ambiguous if some drivers/HW use its checksum, but some do not.
quoted
+#define ETH_RSS_L3_CHKSUM	   (1ULL << 34)

 /*
  * We use the following macros to combine with above ETH_RSS_* for
BRs,
Alvin Zhang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help