misc: ipfix process node wait time adjustment 61/32161/4
authorMatthew Smith <mgsmith@netgate.com>
Wed, 28 Apr 2021 16:48:39 +0000 (11:48 -0500)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 5 May 2021 10:36:13 +0000 (10:36 +0000)
commitbaa18701b9d54d8924771c25b96bd5d99472b7ad
tree987533dfac0f5d54212d9ca578a32622e518e451
parentac0415fac89b186638fbcee1ab9f2cc5cb6d2824
misc: ipfix process node wait time adjustment

Type: fix

The ipfix process node has a hardcoded 5s sleep between sending packets.
The interval between template packets is configurable, but the timing
of packets being sent does not match configuration because of the time
being hardcoded. E.g. -

With template interval set to 3s, a packet will be sent every 5s.
With template interval set to 8s, a packet will be sent every 10s.

Honor the configuration by reducing the wait time to less than 5s if a
template will need to be sent less than 5s from the current time.

Change-Id: I8c11f7bc502ce5b20b6e82a7e7a135a8805a2bad
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ipfix-export/flow_report.c
src/vnet/ipfix-export/ipfix_export.api