RE: [PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Michael Baum
Hi Ivan, On Tue, 22 Aug 2023, Ivan Malov wrote: > > Hi Michael, > > Very interesting proposal. However, could you please provide a use case > example for this feature I can think about 2 different use cases: 1. Sampling - when application wants to sample certain percentage of the flow, it c

Re: [PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Ivan Malov
Hi Michael, Very interesting proposal. However, could you please provide a use case example for this feature and also provide an example of where such value could come from, theoretically. Thank you. On Tue, 22 Aug 2023, Michael Baum wrote: Add support for matching random value using new "rte

[PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Michael Baum
Add support for matching random value using new "rte_flow_item_random" structure. This random value is not based on the packet data/headers. Application shouldn't assume that this value is kept during the life time of the packet. Michael Baum (2): ethdev: add random item support app/testpmd: a