[ovs-dev] [PATCH v11] Extend OVS IPFIX exporter to export tunnel headers

Pravin Shelar pshelar at nicira.com
Mon Aug 18 08:04:01 UTC 2014

On Sun, Aug 17, 2014 at 8:19 PM, Wenyu Zhang <wenyuz at vmware.com> wrote:
> Extend IPFIX exporter to export tunnel headers when both input and output
> of the port.
> Add three other_config options in IPFIX table: enable-input-sampling,
> enable-output-sampling and enable-tunnel-sampling, to control whether
> sampling tunnel info, on which direction (input or output).
> Insert sampling action before output action and the output tunnel port
> is sent to datapath in the sampling action.
> Make datapath collect output tunnel info and send it back to userpace
> in upcall message with a new additional optional attribute.
> Add a tunnel ports map to make the tunnel port lookup faster in sampling
> upcalls in IPFIX exporter. Make the IPFIX exporter generate IPFIX template
> sets with enterprise elements for the tunnel info, save the tunnel info
> in IPFIX cache entries, and send IPFIX DATA with tunnel info.
> Add flowDirection element in IPFIX templates.
> Signed-off-by: Wenyu Zhang <wenyuz at vmware.com>
> Acked-by: Romain Lenglet <rlenglet at vmware.com>
> ---
> v2: Address Romain's comments
> v3: Address Pravin's comments, make datapath sent all tunnel info,
>     not only tunnel key to userspace.
> v4: Address Pravin's comments, introduce a common function to get output
>     tunnel info for all vports, remove duplicated codes.
>     Rebase.
> v5: Address Pravin's comments on v4, correct sparse errors, make a common
>     function to setup tunnel info data for both input and output case.
> v6: Address Pravin's comments on v5, correct coding style issues in kernel.
>     Rebase.
> v7: Address Pravin's minor comments on v6.
>     Rebase.
> v8: Address Ben's comments, apply the patch, clear duplicated codes, and
>     document the VMware enterprise entities in vswitch.xml.
>     Convert out_tun_* and out_tunnel_* to egress_tun_* in datapath to keep
>     consistent with Pravin's patch in kernel.
>     Rebase.
> v9: Address Ben's comments on v8, clear type mismatch warnings, and keep the
>     existent kernel interface enums unchanged.
>     Rebase.
> v10:Rebase.
> v11:Address Pravin's changes, fix a clang warning.
>     Rebase.

Thanks. I pushed patch to master.

More information about the dev mailing list