Skip to content

guozijing/nff-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

nff-go

README of nff-go

nff-go README

git clone for nff-go

install deps of nff-go

  • apt install liblua5.3-dev libmnl-dev libelf-dev libnuma-dev build-essential libibverbs-dev libpcap-dev

  • pip3 install meson ninja

  • git clone https://github.com/libbpf/libbpf.git

  • cd libbpf/src

  • make

  • sudo make install

  • echo "/usr/lib64" >> /etc/ld.so.conf   (root)

  • ldconfig   (root)

  • cp -rf ./libbpf/include/uapi/linux PATH_NFFGO/nff-go/internal/low/

install Go1.14

Hugepages

  • PATH_NFFGO/nff-go/dpdk/dpdk/usertools
  • dpdk-setup.sh     input 47 and a number for hugepages, then input 60 for quit

compile DPDK

  • cd nff-go/dpdk/dpdk/
  • meson build
  • cd build
  • ninja
  • ninja install   (root)
  • ldconfig   (root)

compile nff-go

  • cd nff-go
  • go mod download
  • make -j8
run DPDK helloworld
  • cd ../examples/helloworld/
  • export RTE_SDK=PATH_NFFGO/nff-go/dpdk/dpdk/
  • export RTE_TARGET=x86_64-native-linuxapp-gcc
  • make
  • cd build
  • sudo ./helloworld

test nff-go

  • make testing   (root)

About

README of nff-go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published