]> git.proxmox.com Git - ovs.git/commit
ofproto-dpif-ipfix: add interface Information Elements to flow key
authorMichal Weglicki <michalx.weglicki@intel.com>
Wed, 10 Jan 2018 13:06:03 +0000 (13:06 +0000)
committerBen Pfaff <blp@ovn.org>
Wed, 10 Jan 2018 23:09:43 +0000 (15:09 -0800)
commitcd32509e4af4f9f7a002a6a5c137718f2173c538
tree741d3b167895ee5f639871f7751c5a7c35f9b36b
parent19be6c52d502fbabf888b1f503ed19b320235611
ofproto-dpif-ipfix: add interface Information Elements to flow key

Extend flow key part of data record to include following Information Elements:
- ingressInterface
- ingressInterfaceType
- egressInterface
- egressInterfaceType
- interfaceName
- interfaceDescription

In case of input sampling we don't have information about egress port.
Define templates depending not only on protocol types, but also on flow
direction. Only egress flow will include egress information elements.

With this change, dpif_ipfix_exporter stores every port in hmap rather
than only tunnel ports. It allows to easily retrieve required
information about interfaces during sampling upcalls.

Co-authored-by: Michal Weglicki <michalx.weglicki@intel.com>
Signed-off-by: Michal Weglicki <michalx.weglicki@intel.com>
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-xlate.c
ofproto/ofproto-dpif.c