]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:12:10 +0000 (13:12 +0100)
commit3c9811dd5d021354597a6423014fc2a1ecf503e2
treeb9cf0e2d5452105156b5b68009629f662b963434
parent88dd6be7ebb3153b662c2cebcb06e032a92857f5
netdev: preserve NETIF_F_ALL_FOR_ALL across TSO updates

[ Upstream commit 02d1e1a3f9239cdb3ecf2c6d365fb959d1bf39df ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/netdevice.h