]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add a common function to compute features for upper devices
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 17 Oct 2025 03:41:52 +0000 (03:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Oct 2025 01:08:23 +0000 (18:08 -0700)
commit28098defc79fe7d29e6bfe4eb6312991f6bdc3d3
tree207dea703e7d310efcb6b08e4553f8622e5ab93d
parent0364ca33097da247ef6539c765405657324f243e
net: add a common function to compute features for upper devices

Some high level software drivers need to compute features from lower
devices. But each has their own implementations and may lost some
feature compute. Let's use one common function to compute features
for kinds of these devices.

The new helper uses the current bond implementation as the reference
one, as the latter already handles all the relevant aspects: netdev
features, TSO limits and dst retention.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
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-2-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdev_features.h
include/linux/netdevice.h
net/core/dev.c