[ovs-dev] Sampling in datapath

Jesse Gross jesse at kernel.org
Wed Jun 29 15:09:24 UTC 2016


On Wed, Jun 29, 2016 at 7:45 AM, Marcelo Caggiani Luizelli
<mcluizelli at gmail.com> wrote:
> Hi,
>
> I've seen that there is an implementation of sampling function in the ovs
> linux datapath (in file datapath/actions.c). The issue is that this
> functions is sending the packet to userspace (usually used by ipix/sflow
> sampling). Is there a way to send a traffic sampling straight to a virtual
> port? It seems that the functions is generic enough to support other
> actions, but I couldn't make it work properly.

The kernel implementation should be flexible enough but you'll need to
extend userspace to actually emit actions to do this since there's no
way to configure it currently. It's also possible that there are bugs
since it has only ever been used for sending packets to userspace.



More information about the dev mailing list