net, bonding: Refactor bond_xmit_hash for use with xdp_buff
mainline inclusion from mainline-v5.15-rc1 commit a815bde5 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I7NDRB CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a815bde56b15ce626caaacc952ab12501671e45d ---------------------------------------- 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: NJussi Maki <joamaki@gmail.com> Signed-off-by: NDaniel 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 Conflicts: drivers/net/bonding/bond_main.c Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com>
Showing
想要评论请 注册 或 登录