net, bonding: Refactor bond_xmit_hash for use with xdp_buff
authorJussi Maki <joamaki@gmail.com>
Sat, 31 Jul 2021 05:57:32 +0000 (05:57 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Aug 2021 21:15:21 +0000 (23:15 +0200)
commita815bde56b15ce626caaacc952ab12501671e45d
tree631f146774326100aed1d67ae6b565f6a340b98a
parentc83ae15dc9470da6ddfcb9485235cba1a3ed8740
net, bonding: Refactor bond_xmit_hash for use with xdp_buff

In preparation for adding XDP support to the bonding driver
refactor the packet hashing functions to be able to work with
any linear data buffer without an skb.

Signed-off-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Link: https://lore.kernel.org/bpf/20210731055738.16820-2-joamaki@gmail.com
drivers/net/bonding/bond_main.c