]> www.infradead.org Git - users/willy/pagecache.git/commit
net, team, bonding: Add netdev_base_features helper
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Dec 2024 14:12:41 +0000 (15:12 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 12 Dec 2024 10:59:18 +0000 (11:59 +0100)
commitd2516c3a53705f783bb6868df0f4a2b977898a71
tree4f73712a88b678ec5d2ed8a148257fe63451576a
parentf8d4bc455047cf3903cd6f85f49978987dbb3027
net, team, bonding: Add netdev_base_features helper

Both bonding and team driver have logic to derive the base feature
flags before iterating over their slave devices to refine the set
via netdev_increment_features().

Add a small helper netdev_base_features() so this can be reused
instead of having it open-coded multiple times.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
Cc: Ido Schimmel <idosch@idosch.org>
Cc: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241210141245.327886-1-daniel@iogearbox.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/bonding/bond_main.c
drivers/net/team/team_core.c
include/linux/netdev_features.h