[dpdk-dev] [PATCH v3 1/7] ethdev: introduce sample action for rte flow
Andrew Rybchenko
arybchenko at solarflare.com
Tue Jul 7 12:26:48 CEST 2020
On 7/6/20 8:51 PM, Jiawei Wang wrote:
> When using full offload, all traffic will be handled by the HW, and
> directed to the requested VF or wire, the control application loses
> visibility on the traffic.
> So there's a need for an action that will enable the control application
> some visibility.
>
> The solution is introduced a new action that will sample the incoming
> traffic and send a duplicated traffic with the specified ratio to the
> application, while the original packet will continue to the target
> destination.
>
> The packets sampled equals is '1/ratio', if the ratio value be set to 1,
> means that the packets would be completely mirrored. The sample packet
> can be assigned with different set of actions from the original packet.
>
> In order to support the sample packet in rte_flow, new rte_flow action
> definition RTE_FLOW_ACTION_TYPE_SAMPLE and structure rte_flow_action_sample
> will be introduced.
>
> Signed-off-by: Jiawei Wang <jiaweiw at mellanox.com>
> Acked-by: Ori Kam <orika at mellanox.com>
> Acked-by: Jerin Jacob <jerinj at marvell.com>
Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>
More information about the dev
mailing list