The main change in this series is to the way odp_pktio_open() works, it
now ensures a one-to-one relationship between a pktio device and a
pktio handle.

All of the (in-repo) examples have been updated and I've tested that
they all still work. Note that no changes were required in the
odp_ipsec example as this already opens each interface only once.

Changes in v2 - just a rebase.

(This code contribution is provided under the terms of agreement LES-LTM-21309)

Stuart Haslam (8):
  api: odp_packet_io.h: make pktio handles single instance per device
  validation: pktio: add tests for odp_pktio_loopback()
  example: packet: single instance per interface
  example: generator: single pktio per interface
  example: l2fwd: fix checkpatch warnings
  example: l2fwd: updates for single pktio per interface
  linux-generic: pktio: replace perror() with ODP_ERR()
  linux-generic: pktio: remove stale raw sockfd code

 example/generator/odp_generator.c                  |  79 ++++--
 example/l2fwd/odp_l2fwd.c                          | 311 +++++++++------------
 example/packet/odp_pktio.c                         | 129 ++++-----
 platform/linux-generic/include/api/odp_packet_io.h |  18 +-
 .../linux-generic/include/odp_packet_io_internal.h |   1 +
 platform/linux-generic/odp_packet_io.c             | 122 +++++---
 platform/linux-generic/odp_packet_socket.c         | 137 ++-------
 test/validation/odp_pktio.c                        |  21 ++
 8 files changed, 373 insertions(+), 445 deletions(-)

-- 
2.1.1



_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to