bonding: add xdp_features support
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 4 May 2023 09:52:49 +0000 (11:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 May 2023 08:34:23 +0000 (09:34 +0100)
commitcb9e6e584d58420df182102674e636fb841dae4c
treebc5e9eedb88b2cd0203b9e081c4baf3ce8ad1bdb
parentd7385ba137711ea71527a605cac162610a621de8
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>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_options.c
include/net/bonding.h