[PATCH] net/sfc: support packet replay in transfer flows

Ivan Malov ivan.malov at arknetworks.am
Sat Sep 30 08:37:25 CEST 2023


On Sat, 30 Sep 2023, Andrew Rybchenko wrote:

> On 9/27/23 13:36, Ivan Malov wrote:
>> Packet replay enables users to leverage multiple counters in
>> one flow and allows to request delivery to multiple ports.
>> 
>> A given flow rule may use either one inline count action
>> and multiple indirect counters or just multiple indirect
>> counters. The inline count action (if any) must come
>> before the first delivery action or before the first
>> indirect count action, whichever comes earlier.
>> 
>> These are some testpmd examples of supported
>> multi-count and mirroring use cases:
>> 
>> flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \
>>   actions port_representor port_id 0 / port_representor port_id 1 / end
>> 
>> or
>> 
>> flow indirect_action 0 create action_id 239 transfer action count / end
>> 
>> flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \
>>   actions count / port_representor port_id 0 / indirect 239 / \
>>   port_representor port_id 1 / end
>> 
>> or
>> 
>> flow indirect_action 0 create action_id 239 transfer action count / end
>> 
>> flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \
>>   actions indirect 239 / port_representor port_id 0 / indirect 239 / \
>>   port_representor port_id 1 / end
>> 
>> and the likes.
>> 
>> Signed-off-by: Ivan Malov <ivan.malov at arknetworks.am>
>> Reviewed-by: Andy Moreton <andy.moreton at amd.com>
>
> Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
>
Thank you.


More information about the dev mailing list