Back by popular demand, here is the OpenFlow meter implementation for the userspace datapath. Meters are inherently shared datapath resources and this version uses a simple locking strategy which may not be optimal for DPDK. Nonetheless, this implementation should be a good starting point for further optimizations.
This version addresses all the feedback received for version 2. Jarno Rajahalme (4): dpif: Meter framework. odp-execute: Support dropping packets. ofproto: Meter translation. dpif-netdev: Simple DROP meter implementation. datapath/linux/compat/include/linux/openvswitch.h | 8 +- lib/dp-packet.h | 13 +- lib/dpif-netdev.c | 439 ++++++++++++++++++++-- lib/dpif-netlink.c | 44 +++ lib/dpif-provider.h | 29 ++ lib/dpif.c | 130 ++++++- lib/dpif.h | 11 + lib/netdev-bsd.c | 8 +- lib/netdev-dpdk.c | 55 +-- lib/netdev-dummy.c | 8 +- lib/netdev-linux.c | 9 +- lib/netdev-provider.h | 4 + lib/odp-execute.c | 73 ++-- lib/odp-execute.h | 12 +- lib/odp-util.c | 14 + lib/ofp-actions.c | 1 + lib/ofp-actions.h | 1 + lib/packets.c | 14 +- ofproto/ofproto-dpif-sflow.c | 1 + ofproto/ofproto-dpif-xlate.c | 11 +- ofproto/ofproto-dpif.c | 60 ++- ofproto/ofproto-provider.h | 16 +- ofproto/ofproto.c | 49 +-- tests/dpif-netdev.at | 108 +++++- 24 files changed, 930 insertions(+), 188 deletions(-) -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev