diff options
| author | 2020-07-02 16:12:43 +0200 | |
|---|---|---|
| committer | 2020-07-03 14:46:24 -0700 | |
| commit | c2d6fe6163de80d7f7cf400ee351f56d6cdb7a5a (patch) | |
| tree | ffce82631cf0501efe24dabe7462bf4f52509a5b /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | mvpp2: add basic XDP support (diff) | |
| download | wireguard-linux-c2d6fe6163de80d7f7cf400ee351f56d6cdb7a5a.tar.xz wireguard-linux-c2d6fe6163de80d7f7cf400ee351f56d6cdb7a5a.zip | |
mvpp2: XDP TX support
Add the transmit part of XDP support, which includes:
- support for XDP_TX in mvpp2_xdp()
- .ndo_xdp_xmit hook for AF_XDP and XDP_REDIRECT with mvpp2 as destination
mvpp2_xdp_submit_frame() is a generic function which is called by
mvpp2_xdp_xmit_back() when doing XDP_TX, and by mvpp2_xdp_xmit when
doing AF_XDP or XDP_REDIRECT target.
The buffer allocation has been reworked to be able to map the buffers
as DMA_FROM_DEVICE or DMA_BIDIRECTIONAL depending if native XDP is
in use or not.
Co-developed-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
