> Subject: [PATCH v3] testpmd: add hairpin-map parameter > > Hairpin offloads packet forwarding between ports. > Packet is expected on Rx port <rp>, Rx queue <rq> and is delivered to Tx port > <tp> Tx queue <tq>. > > Testpmd implements a static hairpin configuration scheme. > The scheme implicitly matches next valid port for given <rp> or <tp>. > That approach can be used in a single or double port setups only. > > The new parameter allows explicit selection of Rx and Tx ports and queues in > hairpin configuration. > The new `hairpin-map` parameter is provided with 5 parameters, separated by > `:` > > `--hairpin-map=Rx port id:Rx queue:Tx port id:Tx queue:queues number` > > Testpmd operator can provide several `hairpin-map` parameters for different > hairpin maps. > Example: > > dpdk-testpmd <EAL params> -- \ > <testpmd params> \ > --rxq=2 --txq=2 --hairpinq=2 --hairpin-mode=0x12 \ > --hairpin-map=0:2:1:2:1 \ # [1] > --hairpin-map=0:3:2:2:3 # [2] > > Hairpin map [1] binds Rx port 0, queue 2 with Tx port 1, queue 2. > Hairpin map [2] binds > Rx port 0, queue 3 with Tx port 2, queue 2, > Rx port 0, queue 4 with Tx port 2, queue 3, > Rx port 0, queue 5 with Tx port 2, queue 4. > > The new `hairpin-map` parameter is optional. > If omitted, testpmd will create "default" hairpin maps. > > Signed-off-by: Gregory Etelson <getel...@nvidia.com> Acked-by: Dariusz Sosnowski <dsosnow...@nvidia.com>
Best regards, Dariusz Sosnowski