Thread (12 messages) 12 messages, 3 authors, 2026-01-20

Re: [PATCH v4 net-next 01/10] net: introduce mangleid_features

From: Paolo Abeni <pabeni@redhat.com>
Date: 2026-01-20 09:54:17

On 1/20/26 9:58 AM, Eric Dumazet wrote:
On Mon, Jan 19, 2026 at 4:10 PM Paolo Abeni [off-list ref] wrote:
quoted
@@ -11385,6 +11385,12 @@ int register_netdevice(struct net_device *dev)
        if (dev->hw_enc_features & NETIF_F_TSO)
                dev->hw_enc_features |= NETIF_F_TSO_MANGLEID;

+       /* Any mangleid feature disables TSO_MANGLEID; including the latter
+        * in mangleid_features allows for better code in the fastpath.
+        */
+       if (dev->mangleid_features)
+               dev->mangleid_features |= NETIF_F_TSO_MANGLEID;
+
It is a bit unclear why you test for anything being set in mangleid_features

I would force here the bit, without any condition ?

      dev->mangleid_features |= NETIF_F_TSO_MANGLEID;
Indeed the check it's not needed. I'll drop it in the next revision, thanks!

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help