Skip to contentSkip to conversation

net: macb: enable IPv6 support for TSO

RFC In review zuoqian 2 participants 3 messages Oct 20, 2025 – Oct 21, 2025

Subsystems (3)
lore
Share & tools
lore

zuoqian

author
#0 lore raw

RFC 1/1 net: macb: enable IPv6 support for TSO

New Cadence GEM hardware support TSO for both ipv4 and IPv6 protocols, but the driver currently lacks the NETIF_F_TSO6 feature flag for IPv6 TSO.

---
 drivers/net/ethernet/cadence/macb_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +1 -1
index 214f543af3b8..a154c9f3c325 100644
@@ -78,7 +78,7 @@ struct sifive_fu540_macb_mgmt {
 #define GEM_MAX_TX_LEN		(unsigned int)(0x3FC0)
 
 #define GEM_MTU_MIN_SIZE	ETH_MIN_MTU
-#define MACB_NETIF_LSO		NETIF_F_TSO
+#define MACB_NETIF_LSO		(NETIF_F_TSO | NETIF_F_TSO6)
 
 #define MACB_WOL_ENABLED		BIT(0)
 
Signature · 1 line
2.49.0
#1 lore raw
Quoted 1 line · zuoqian

New Cadence GEM hardware support TSO for both ipv4 and IPv6 protocols,

What about the 'Old' Cadence GEM hardware? I'm assuming you mean something by New here. So it would be good to make a comment something like that IPv4 and IPv6 TSO was added at the same time. So if IPv4 TSO is supported, IPv6 TSO should also be supported, so there is no danger of regressions with older GEM hardware.

Quoted 1 line

This means you are agreeing to:

https://docs.kernel.org/process/submitting-patches.html#developer-s-certificate-of-origin-1-1

However, we say "using a known identity", since this is a legal statement. I don't think zuoqian qualifies. Please you a full name here.

Andrew

---
pw-bot: cr

author
#2 lore raw
Quoted 9 lines · Andrew Lunn
Quoted 1 line · zuoqian

New Cadence GEM hardware support TSO for both ipv4 and IPv6 protocols,

What about the 'Old' Cadence GEM hardware? I'm assuming you mean something by New here. So it would be good to make a comment something like that IPv4 and IPv6 TSO was added at the same time. So if IPv4 TSO is supported, IPv6 TSO should also be supported, so there is no danger of regressions with older GEM hardware.

Thank you for your suggestion.
The Cadence GEM hardware I'm using supports both IPv4 and IPv6 TSO. However, I'm uncertain whether the driver's initial support only for IPv4 TSO implies that older hardware versions exist which solely support IPv4 TSO.

Quoted 6 lines
Quoted 1 line

This means you are agreeing to:

https://docs.kernel.org/process/submitting-patches.html#developer-s-certificate-of-origin-1-1

Quoted 8 lines

However, we say "using a known identity", since this is a legal statement. I don't think zuoqian qualifies. Please you a full name here.

Andrew

---
pw-bot: cr

Regarding the identity verification, "zuoqian" is indeed my legal full name.

Regards,
Zuoqian