]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netdev: preserve NETIF_F_ALL_FOR_ALL across TSO updates
authorDi Zhu <zhud@hygon.cn>
Wed, 24 Dec 2025 01:22:24 +0000 (09:22 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 4 Jan 2026 18:26:11 +0000 (10:26 -0800)
commit02d1e1a3f9239cdb3ecf2c6d365fb959d1bf39df
treee1be29fd9b29d7065abe44414e6c5406470a2aa7
parent2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20
netdev: preserve NETIF_F_ALL_FOR_ALL across TSO updates

Directly increment the TSO features incurs a side effect: it will also
directly clear the flags in NETIF_F_ALL_FOR_ALL on the master device,
which can cause issues such as the inability to enable the nocache copy
feature on the bonding driver.

The fix is to include NETIF_F_ALL_FOR_ALL in the update mask, thereby
preventing it from being cleared.

Fixes: b0ce3508b25e ("bonding: allow TSO being set on bonding master")
Signed-off-by: Di Zhu <zhud@hygon.cn>
Link: https://patch.msgid.link/20251224012224.56185-1-zhud@hygon.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h