diff options
author | Jussi Maki <joamaki@gmail.com> | 2021-07-31 07:57:33 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-08-09 23:15:35 +0200 |
commit | 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 (patch) | |
tree | 85a0f38f47d91d2f4a8232e58ed384c6f7634a59 /include/net/bonding.h | |
parent | net, bonding: Refactor bond_xmit_hash for use with xdp_buff (diff) | |
download | linux-879af96ffd72706c6e3278ea6b45b0b0e37ec5d7.tar.xz linux-879af96ffd72706c6e3278ea6b45b0b0e37ec5d7.zip |
net, core: Add support for XDP redirection to slave device
This adds the ndo_xdp_get_xmit_slave hook for transforming XDP_TX
into XDP_REDIRECT after BPF program run when the ingress device
is a bond slave.
The dev_xdp_prog_count is exposed so that slave devices can be checked
for loaded XDP programs in order to avoid the situation where both
bond master and slave have programs loaded according to xdp_state.
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-3-joamaki@gmail.com
Diffstat (limited to 'include/net/bonding.h')
0 files changed, 0 insertions, 0 deletions