summaryrefslogtreecommitdiff
path: root/Documentation/intro
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2020-01-23 09:03:11 -0800
committerWilliam Tu <u9012063@gmail.com>2020-01-29 10:54:45 -0800
commit20dac08fdcce4b7fda1d07add3b346aa9751cfbc (patch)
tree86666aba997969796636febbe48c099052aa0676 /Documentation/intro
parenta867c010ee9183885ee9d3eb76a0005c075c4d2e (diff)
downloadopenvswitch-20dac08fdcce4b7fda1d07add3b346aa9751cfbc.tar.gz
docs: Add header install command for afxdp.
The 'XDP_RING_NEED_WAKEUP' and related flags are defined if_xdp.h, so if users are building their own kernel, users have to update the kernel's header files, by doing: $ make headers_install INSTALL_HDR_PATH=/usr Otherwise the following error shows: /usr/local/include/bpf/xsk.h: In function 'xsk_ring_prod__needs_wakeup': /usr/local/include/bpf/xsk.h:82:21: error: 'XDP_RING_NEED_WAKEUP' undeclared \ (first use in this function) return *r->flags & XDP_RING_NEED_WAKEUP; Reported-by: Tomek Osinski <osinstom@gmail.com> Reported-at: https://osinstom.github.io/en/tutorial/ovs-afxdp-installation/ Signed-off-by: William Tu <u9012063@gmail.com> Acked-by: Ben Pfaff <blp@ovn.org> Signed-off-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'Documentation/intro')
-rw-r--r--Documentation/intro/install/afxdp.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/intro/install/afxdp.rst b/Documentation/intro/install/afxdp.rst
index c4685fa7e..99003e4db 100644
--- a/Documentation/intro/install/afxdp.rst
+++ b/Documentation/intro/install/afxdp.rst
@@ -108,6 +108,14 @@ vSwitch with AF_XDP will require the following:
* CONFIG_XDP_SOCKETS_DIAG=y (Debugging)
+- If you're building your own kernel, be sure that you're installing kernel
+ headers too. For example, with the following command::
+
+ make headers_install INSTALL_HDR_PATH=/usr
+
+- If you're using kernel from the distribution, be sure that corresponding
+ kernel headers package installed.
+
- Once your AF_XDP-enabled kernel is ready, if possible, run
**./xdpsock -r -N -z -i <your device>** under linux/samples/bpf.
This is an OVS independent benchmark tools for AF_XDP.