numam-dpdk/examples/l2fwd-event
Pavan Nikhilesh 092454d999 examples/l2fwd-event: add option to configure port pairs
Current l2fwd-event application statically configures adjacent ports as
destination ports for forwarding the traffic.

Add a config option to pass the forwarding port pair mapping which allows
the user to configure forwarding port mapping.

If no config argument is specified, destination port map is not
changed and traffic gets forwarded with existing mapping.

To align port/queue configuration of each lcore with destination port
map, port/queue configuration of each lcore gets modified when config
option is specified.

Ex: ./l2fwd-event -c 0xff -- -p 0x3f -q 2 --config="(0,3)(1,4)(2,5)"

With above config option, traffic received from portid = 0 gets forwarded
to port = 3 and vice versa, similarly traffic gets forwarded on other port
pairs (1,4) and (2,5).

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Andrzej Ostruszka <aostruszka@marvell.com>
2020-04-04 18:09:51 +02:00
..
l2fwd_common.c examples/l2fwd-event: fix ethdev RSS setup 2020-01-14 21:37:51 +01:00
l2fwd_common.h examples/l2fwd-event: add option to configure port pairs 2020-04-04 18:09:51 +02:00
l2fwd_event_generic.c examples/l2fwd-event: fix error checking 2020-02-15 08:04:46 +01:00
l2fwd_event_internal_port.c examples/l2fwd-event: fix error checking 2020-02-15 08:04:46 +01:00
l2fwd_event.c examples/l2fwd-event: fix event device config 2020-01-14 20:20:15 +01:00
l2fwd_event.h examples/l2fwd-event: add eventdev main loop 2019-11-04 18:09:30 +01:00
l2fwd_poll.c examples/l2fwd-event: fix core allocation in poll mode 2020-02-15 09:07:34 +01:00
l2fwd_poll.h examples/l2fwd-event: add default poll mode routines 2019-11-04 18:07:43 +01:00
main.c examples/l2fwd-event: add option to configure port pairs 2020-04-04 18:09:51 +02:00
Makefile examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
meson.build examples/l2fwd-event: add eventdev main loop 2019-11-04 18:09:30 +01:00