• Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    Go
  • License
    BSD 3-Clause "New...
  • Created over 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go bindings for DPDK library.

Go bindings for DPDK framework.

Documentation Build Status codecov

Building apps

Starting from DPDK 21.05, pkg-config becomes the only official way to build DPDK apps. Because of it go-dpdk uses #cgo pkg-config directive to link against your DPDK distribution.

Go compiler may fail to accept some C compiler flags. You can fix it by submitting those flags to environment:

export CGO_CFLAGS_ALLOW="-mrtm"
export CGO_LDFLAGS_ALLOW="-Wl,--(?:no-)?whole-archive"

Caveats

  • Only dynamic linking is viable at this point.
  • If you isolate CPU cores with isolcpus kernel parameter then GOMAXPROCS should be manually specified to reflect the actual number of logical cores in CPU mask. E.g. if isolcpus=12-95 on a 96-core machine then default value for GOMAXPROCS would be 12 but it should be at least 84.