This series adds support for netmap VALE and pipe ports, makes a few
changes to the tests to cope with the fact these ports don't have a MAC
address and adds a script to test them as part of "make check".
Apart from being an easy way to test the netmap code without needing
physical interfaces, the VALE/pipe ports make it easy to inject a lot
of traffic for local testing. The netmap docs say 100Mpps is possible
through a pipe, I haven't seen that but I do get >20Mpps. Also VALE
switches can be created dynamically so it's easy to create relatively
complex test networks.
VALE should obviously also provide decent VM-to-VM speeds, but I've
not tried that.
To open a VALE port use a pktio name with the name "valeXXX:YYY" where
XXX is an arbitrary name for the switch (which will be created if it
doesn't exist) and YYY is the port on that switch. For example names
"valea:0" and "valea:1" give you two ports on the same switch.
To open a pipe use names e.g. "valea:0{0" for master and "valea:0}0"
for slave.
Stuart Haslam (5):
validation: pktio: make MAC address and promiscuous mode optional
linux-generic: pktio: support using netmap: prefix
linux-generic: pktio: add support for netmap VALE and pipe virtual
ports
linux-generic: netmap: support segmented packets
linux-generic: validation: add netmap test
platform/linux-generic/include/odp_packet_netmap.h | 4 +
platform/linux-generic/pktio/netmap.c | 110 +++++++++++++++--
platform/linux-generic/test/Makefile.am | 5 +
platform/linux-generic/test/pktio/pktio_run_netmap | 133 +++++++++++++++++++++
test/validation/pktio/pktio.c | 80 +++++++++----
5 files changed, 297 insertions(+), 35 deletions(-)
create mode 100755 platform/linux-generic/test/pktio/pktio_run_netmap
--
2.1.1
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp