On Thu, May 4, 2023 at 12:52 PM Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote: > > 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@xxxxxxxxxxxx> > Acked-by: Jay Vosburgh <jay.vosburgh@xxxxxxxxxxxxx> > Fixes: 66c0e13ad236 ("drivers: net: turn on XDP features") > Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> Reviewed-by: Jussi Maki <joamaki@xxxxxxxxx> Tested-by: Jussi Maki <joamaki@xxxxxxxxx> > +void bond_xdp_set_features(struct net_device *bond_dev) > +{ > + struct bonding *bond = netdev_priv(bond_dev); Minor nit: could we instead take "struct bonding *" as an argument here?