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 <[email protected]> > Acked-by: Ori Kam <[email protected]> > Acked-by: Jerin Jacob <[email protected]>
Acked-by: Andrew Rybchenko <[email protected]>

