]> git.droids-corp.org - dpdk.git/commit
app/flow-perf: add destination ports parameter
authorSean Zhang <xiazhang@nvidia.com>
Fri, 29 Oct 2021 05:52:51 +0000 (08:52 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Nov 2021 09:58:25 +0000 (10:58 +0100)
commit80a323319745c399d81b1e16cedb88503f6cd1d1
tree582bec5ee15fee44531ec5bcad450743db56eb17
parentf5fa0e110fa96f0dbb01e5a2ab5b864aa9436e28
app/flow-perf: add destination ports parameter

Add optional destination ports parameter for port-id action.
The parameter is not must, and the value is 1 by default as before
if the parameter not provided.

For example:

$ dpdk-test-flow-perf -w 08:00.0,representor=[0,1] -- --transfer \
  --ingress --transfer --ether --portmask=0x2 --vxlan-encap \
  --port-id=0

This command means the rule created on representor 0 with port 0
as destination, since the portmask is 0x2 and dst-ports is 0:

$ dpdk-test-flow-perf -w 08:00.0,representor=[0,1] \
  -w 08:00.1,representor=[0,1]-- --transfer --ingress --transfer \
  --ether --portmask=0x12 --vxlan-encap --port-id=0,3

This command means the rules created on both representor 0 of PF 0
and PF 1, the destination port for the first representor is PF 0,
and the destination port for the other one is PF 1.

Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
Reviewed-by: Wisam Jaddo <wisamm@nvidia.com>
app/test-flow-perf/actions_gen.c
app/test-flow-perf/actions_gen.h
app/test-flow-perf/flow_gen.c
app/test-flow-perf/flow_gen.h
app/test-flow-perf/main.c
doc/guides/tools/flow-perf.rst