From f288401548a138267464e7f0c5da5d2d0a45a29f Mon Sep 17 00:00:00 2001 From: James Waples Date: Sun, 21 Jul 2024 16:11:00 +0100 Subject: [PATCH] Improve XDP install docs for Ubuntu 22.04 --- src/std/xdp.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/std/xdp.rs b/src/std/xdp.rs index dc5f5bdd..e9667082 100644 --- a/src/std/xdp.rs +++ b/src/std/xdp.rs @@ -50,13 +50,18 @@ impl Wake for ParkSignal { /// Use [`core_affinity`] or other means to move the thread that executes this function to a /// different core. /// -/// Using XDP requires some build-time dependencies. These can be installed on `deb`-based distros as follows: +/// Using XDP requires some build-time dependencies. These can be installed on `deb`-based distros +/// as follows: /// /// ```bash /// sudo apt install build-essential m4 clang bpftool libelf-dev libpcap-dev /// ``` /// -/// It may also be necessary to symlink some folders to mitigate an error around `asm/types.h` not being found: +/// Ubuntu 22.04 does not provide a `bpftool` package. Instead, install `linux-tools-common +/// linux-tools-$(uname -r)`. +/// +/// It may also be necessary to symlink some folders to mitigate an error around `asm/types.h` not +/// being found: /// /// ```bash /// sudo ln -s /usr/include/asm-generic/ /usr/include/asm