On 10/31/2024 3:51 PM, Stephen Hemminger wrote:
> On Thu, 31 Oct 2024 06:58:17 +0200
> Gregory Etelson <getel...@nvidia.com> wrote:
> 
>> Hairpin offloads packet forwarding between ports.
>> Packet is expected on Rx port <rp>, Rx queue <rq> and is forwarded
>> to Tx port <tp> Tx queue <tq>.
>>
>> Testpmd implements a static hairpin configuration scheme.
>>
>> 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>
> 
> Acked-by: Stephen Hemminger <step...@networkplumber.org>
>

Applied to dpdk-next-net/main, thanks.

Reply via email to