Skip to content

Commit

Permalink
Feature #822 - add --xdp option, cleanup, document
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Sep 4, 2023
1 parent dccbbc2 commit 6bcac91
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 328 deletions.
303 changes: 0 additions & 303 deletions INSTALL

This file was deleted.

28 changes: 28 additions & 0 deletions docs/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,34 @@ directory, for example:
make
sudo make install

2) AF_XDF
------

This feature will detect AF_XDP capable network drivers on Linux. If detected,
the `--xdp` option becomes available, allowing eBPF enabled adapters to be
written to directly.

This feature requires `libxdp-dev` and `libbpf-dev` packages to be installed.
For example:

$ ./configure | tail
Linux/BSD netmap: no
Tuntap device support: yes
LIBXDP for AF_XDP socket: yes
$ make
$ sudo make install
$ tcpreplay -i eth0 --xdp test/test.pcap

If you want to compile a version that only uses AF_XDP, use the `--enable-force-libxdp`
configure option, e.g.

$ ./configure --enable-force-libxdp | tail
Linux/BSD netmap: no
Tuntap device support: yes
LIBXDP for AF_XDP socket: yes
$ make
$ sudo make install
$ tcpreplay -i eth0 test/test.pcap

Compilers and Options
=====================
Expand Down
Loading

0 comments on commit 6bcac91

Please sign in to comment.