ftk-ntq / vpp

Apache License 2.0
4 stars 0 forks source link

netmap: Implement netmap device/plugin to receive packets into VPP #18

Open ftk-ntq opened 3 years ago

ftk-ntq commented 3 years ago

See e5b191a4816519fb73110fb1140dc132c78f124d. Moved the netmap interface code back from the deprecated folder.

ftk-ntq commented 3 years ago

Another issue identified is when creating the netmap interface the number of rings reported was not set up in the interface. With this the code ended up only processing the first netmap ring.

ftk-ntq commented 3 years ago

A netmap interface can now be created on ix0 by using the following example

create netmap name ix0
set interface state netmap-ix0 up
set interface ip address netmap-ix0 <ip-address>

Alternatively it is possible to connect to the physical interface via a vale switch. This is typically done with

create netmap name vale0:vpp0
set interface state netmap-vale0:vpp0 up
set interface ip address netmap-vale0:vpp0 <ip-address>

For the vale switch to work the following must be done on the host as well

ifconfig ix0 promisc
valectl -h vale0:ix0