v2: rebase, add linux kernel module implementation, ovs-ofctl documentation.
The datapath implementation is pretty much RFC as regards the implementation strategy. I have added a netlink family for managing kernel meters. The actual code implementing the meter execution very small and, I believe, efficient. Jarno Rajahalme (11): ofproto: Actually return the error code from meter add. ofproto meters: Keep provider meter_id over mods. rule_ofpacts: keep datapath meter_id. ovs-ofctl: Add meter support. dpif: Meter framework. lib/odp, ofproto xlate: Meter execution support. dpif-netdev: Simple DROP meter implementation. include/linux/openvswitch.h: Netlink definitions for meters. dpif-linux: Look for kernel support for meters. dpif-linux: Meters support. datapath: Simple DROP meter implementation. datapath/actions.c | 4 + datapath/datapath.c | 563 ++++++++++++++++++++++++++++++++++++++++++ datapath/datapath.h | 32 +++ include/linux/openvswitch.h | 50 ++++ lib/dpif-linux.c | 294 ++++++++++++++++++++++ lib/dpif-netdev.c | 305 ++++++++++++++++++++++- lib/dpif-provider.h | 28 +++ lib/dpif.c | 87 +++++++ lib/dpif.h | 11 + lib/odp-execute.c | 20 +- lib/odp-execute.h | 5 +- lib/odp-util.c | 14 ++ ofproto/ofproto-dpif-xlate.c | 22 +- ofproto/ofproto-dpif.c | 60 ++++- ofproto/ofproto-provider.h | 14 +- ofproto/ofproto.c | 37 +-- ofproto/ofproto.h | 3 - utilities/ovs-ofctl.8.in | 93 +++++++ utilities/ovs-ofctl.c | 115 ++++++++- 19 files changed, 1716 insertions(+), 41 deletions(-) -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev