]> git.proxmox.com Git - ovs.git/commit
ofproto-dpif-ipfix: add support for per-flow drop counters
authorPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
Fri, 28 Jul 2017 06:17:44 +0000 (07:17 +0100)
committerBen Pfaff <blp@ovn.org>
Wed, 2 Aug 2017 23:00:20 +0000 (16:00 -0700)
commit564230b6c982fc5b6df06b139a938edce874a5f7
treef56e6371c5c01e790c37ac5a56c94f5d46512394
parent5071802a6c9090dcd13d39e4e06b550d478ef6fc
ofproto-dpif-ipfix: add support for per-flow drop counters

Patch based on RFC 5102, section 5.10. It implements per-flow drop counters:
- droppedPacketDeltaCount
- droppedPacketTotalCount
- droppedOctetDeltaCount
- droppedOctetTotalCount

In order to determine if packet is going to be dropped, flow actions associated
with packet are read. If at least one of the following conditions is met,
packet is not marked as dropped.

 Packet has at least one:
 - OVS_ACTION_ATTR_OUTPUT action
 - OVS_ACTION_ATTR_CLONE action with nested OVS_ACTION_ATTR_OUTPUT action
 - OVS_ACTION_ATTR_SAMPLE action with nested OVS_ACTION_ATTR_OUTPUT action and
   sampling probability is set to 100%

Signed-off-by: Przemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-ipfix.c
ofproto/ofproto-dpif-ipfix.h
ofproto/ofproto-dpif-upcall.c