Skip to content

timfehr/xdp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AF_XDP Server

Folder structure:

  • lib: Library
  • example: XDP server example

Prerequisites

Install modified kernel

#Download Kernel
    wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.3.7.tar.xz
    tar xf linux-5.3.7.tar.xz
    cd linux-5.3.7
#Build kernel
    make localmodconfig #Just hit enter for every question
    make -j $(nproc) #build on all cpu cores
    sudo make modules_install headers_install install
#Boot into new kernel
    sudo grub-set-default 0
    sudo reboot

Build and link BPF libs

    make -C /lib/modules/$(uname -r)/build/tools/lib/bpf/

About

AF_XDP lib and example servre

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published