]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: bridge: use common function to compute the features
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 17 Oct 2025 03:41:55 +0000 (03:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Oct 2025 01:08:23 +0000 (18:08 -0700)
commit0152747a528a185182bdb2cab973848a52d715ac
tree300c9c0df6fb54d7404e5689d8c00ceb38c6f73e
parent745cd46c2a47144dd656185b9be0a1e5e9b02d2d
net: bridge: use common function to compute the features

Previously, bridge ignored all features propagation and DST retention,
only handling explicitly the GSO limits.

By switching to the new helper netdev_compute_master_upper_features(), the bridge
now expose additional features, depending on the lowers capabilities.

Since br_set_gso_limits() is already covered by the helper, it can be
removed safely.

Bridge has it's own way to update needed_headroom. So we don't need to
update it in the helper.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20251017034155.61990-5-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_if.c