Skip to content

Commit

Permalink
Improve XDP install docs for Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwaffles committed Jul 21, 2024
1 parent 30b8bcd commit f288401
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/std/xdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f288401

Please sign in to comment.