diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-05-04 12:52:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-05 11:34:23 +0300 |
commit | cb9e6e584d58420df182102674e636fb841dae4c (patch) | |
tree | bc5e9eedb88b2cd0203b9e081c4baf3ce8ad1bdb /drivers/net/bonding/bond_options.c | |
parent | d7385ba137711ea71527a605cac162610a621de8 (diff) | |
download | linux-cb9e6e584d58420df182102674e636fb841dae4c.tar.xz |
bonding: add xdp_features support
Introduce xdp_features support for bonding driver according to the slave
devices attached to the master one. xdp_features is required whenever we
want to xdp_redirect traffic into a bond device and then into selected
slaves attached to it.
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Fixes: 66c0e13ad236 ("drivers: net: turn on XDP features")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Jussi Maki <joamaki@gmail.com>
Tested-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_options.c')
-rw-r--r-- | drivers/net/bonding/bond_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index f71d5517f829..0498fc6731f8 100644 --- a/drivers/net/bonding/bond_options.c +++ b/drivers/net/bonding/bond_options.c @@ -877,6 +877,8 @@ static int bond_option_mode_set(struct bonding *bond, netdev_update_features(bond->dev); } + bond_xdp_set_features(bond->dev); + return 0; } |