Commit Graph

2 Commits

Author SHA1 Message Date
Chris Ward
54a31ceabc Take off the XDP_ZEROCOPY flag from port_params_default.xsk_cfg.bind_flags
Fix for issue 78; veth does not support zerocopy in bind flags
Take off the XDP_ZEROCOPY flag in the setting of
port_params_default.xsk_cfg.bind_flags in AF_XDP-forwarding/xsk_fwd.c

With this change, libxdp first tries to set up zerocopy, and when it finds
that this is not available it sets up an implementation which copies the
data. So performance will not be impactes for eths which support zerocopy.

Signed-off-by: Chris Ward <tjcw@uk.ibm.com>
2023-01-05 13:56:52 +01:00
Magnus Karlsson
dbf4feb043 AF_XDP-forwarding: move xsk_fwd to bpf-examples
Move the xsk_fwd example application from the Linux repo to
bpf-examples. This sample demonstrates the ability to share a umem
between multiple sockets by implementing a simple packet forwarding
application. It also has a buffer pool manager for allocating and
freeing packet buffers.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
2022-09-21 11:58:41 +00:00