[ovs-dev] [PATCH] docs: Add note for AF_XDP installation

Yi-Hung Wei yihung.wei at gmail.com
Tue Jun 9 17:42:12 UTC 2020


Add notes about some configuration issues when enabling AF_XDP
support.

Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
---
 Documentation/intro/install/afxdp.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/intro/install/afxdp.rst b/Documentation/intro/install/afxdp.rst
index 99003e4dbdb2..3c8f78825b41 100644
--- a/Documentation/intro/install/afxdp.rst
+++ b/Documentation/intro/install/afxdp.rst
@@ -146,11 +146,20 @@ Make sure the libbpf.so is installed correctly::
   ldconfig
   ldconfig -p | grep libbpf
 
+.. note::
+   Check /etc/ld.so.conf if libbpf is installed but can not be found by
+   ldconfig.
+
 Third, ensure the standard OVS requirements are installed and
 bootstrap/configure the package::
 
   ./boot.sh && ./configure --enable-afxdp
 
+.. note::
+   If you encounter "WARNING: bpf/libbpf.h: present but cannot be compiled",
+   check the Linux headers are in line with libbpf. For example, in Ubuntu,
+   check the installed linux-headers* and linux-libc-dev* dpkg.
+
 Finally, build and install OVS::
 
   make && make install
-- 
2.7.4



More information about the dev mailing list