On Fri, Aug 15, 2014 at 12:53 AM, Wenyu Zhang <[email protected]> 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 <[email protected]>
> Acked-by: Romain Lenglet <[email protected]>
> Acked-by: Ben Pfaff <[email protected]>
> ---
> 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.
> ---
I was going to push this patch, but I saw warning with clang.
ofproto_la-bundles.lo -MD -MP -MF
ofproto/.deps/ofproto_libofproto_la-bundles.Tpo -c ofproto/bundles.c
-o ofproto/ofproto_libofproto_la-bundles.o
ofproto/ofproto-dpif-upcall.c:1015:61: warning: incompatible pointer
types passing 'const struct flow **' to parameter of type 'const
struct flow *'; remove & [-Wincompatible-pointer-types]
dpif_ipfix_bridge_sample(upcall->ipfix, packet, &flow,
^~~~~
ofproto/ofproto-dpif-ipfix.h:50:50: note: passing argument to parameter here
const struct flow *,
^
So can you fold attached changes that I did change along with fix for
warning and send patch.
Thanks.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev