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.

The series is based on top of this series:

  http://patches.opendataplane.org/patch/3440/

Stuart Haslam (9):
  validation: pktio: make MAC address and promiscuous mode optional
  linux-generic: validation: pktio: disable netmap
  linux-generic: pktio: support using netmap: prefix
  linux-generic: pktio: add support for netmap VALE and pipe virtual
    ports
  validation: pktio: export pktio_test_start_stop()
  validation: pktio: initialise packet headers in
    pktio_test_start_stop()
  linux-generic: netmap: support segmented packets
  linux-generic: validation: add netmap test
  linux-generic: include netmap headers with -isystem

 platform/linux-generic/include/odp_packet_netmap.h |   4 +
 platform/linux-generic/m4/odp_netmap.m4            |  10 +-
 platform/linux-generic/pktio/netmap.c              | 112 +++++++++++++++--
 platform/linux-generic/test/Makefile.am            |   4 +
 platform/linux-generic/test/pktio/pktio_run        |   3 +
 platform/linux-generic/test/pktio/pktio_run_netmap | 133 ++++++++++++++++++++
 test/validation/pktio/pktio.c                      | 139 ++++++++++++++-------
 test/validation/pktio/pktio.h                      |   1 +
 8 files changed, 343 insertions(+), 63 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

Reply via email to