diff options
| author | Zvi Effron <[email protected]> | 2021-07-07 22:16:56 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-08 02:51:13 +0000 |
| commit | ec94670fcb3bdeaf3baaa8d86f54e90a5557f53b (patch) | |
| tree | 9ad4217c171c09e5b3b4a5d135b75a579ea53244 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | bpf: Support input xdp_md context in BPF_PROG_TEST_RUN (diff) | |
| download | kernel-ec94670fcb3bdeaf3baaa8d86f54e90a5557f53b.tar.gz kernel-ec94670fcb3bdeaf3baaa8d86f54e90a5557f53b.zip | |
bpf: Support specifying ingress via xdp_md context in BPF_PROG_TEST_RUN
Support specifying the ingress_ifindex and rx_queue_index of xdp_md
contexts for BPF_PROG_TEST_RUN.
The intended use case is to allow testing XDP programs that make decisions
based on the ingress interface or RX queue.
If ingress_ifindex is specified, look up the device by the provided index
in the current namespace and use its xdp_rxq for the xdp_buff. If the
rx_queue_index is out of range, or is non-zero when the ingress_ifindex is
0, return -EINVAL.
Co-developed-by: Cody Haas <[email protected]>
Co-developed-by: Lisa Watanabe <[email protected]>
Signed-off-by: Cody Haas <[email protected]>
Signed-off-by: Lisa Watanabe <[email protected]>
Signed-off-by: Zvi Effron <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
