Skip to content

Support for simplified netmap interface

Martin Stiemerling requested to merge beachhead into main

This is the first version of a go wrapper for the C-based netmap API.

At this point, only the simplified interface with these functions is supported (see gonetmap_simplified.go):

  • nm___open() is accessible in go via NmOpen()
  • nm___close() is accessible in go via NmClose()
  • nm___inject() is accessible in go via NmInject() or NmInject2()
  • nm___nextpkt() is accessible in go via NmNextPacket()

The only not yet wrapped C function is nm___dispatch() as this still needs some thoughts and works with respect to the callback function (nm___cb___t cb) in the function all

Some "unit" tests are given, but they are just simple tests.

A more advanced functional test, i.e., including testing the real forwarding behaviour, tests are needed.

Merge request reports