Fix link speed when link is down at startup. 21/55421/4
authorXavier Simonart <xavier.simonart@intel.com>
Wed, 11 Apr 2018 14:15:55 +0000 (16:15 +0200)
committerPatrice Buriez <patrice.buriez@intel.com>
Tue, 17 Apr 2018 16:28:09 +0000 (16:28 +0000)
commit4a65cd849c252ac401e22debe2012d3cf48701fc
treef0bbc50f533aba6c6afe23684e07fd8516c7d86e
parent3981ce6fed44db09af235100526ab8bc1666e38e
Fix link speed when link is down at startup.

When link is down at startup, the link_speed returned by DPDK
is 0. This results in un-optimized latency estimates in gen and lat.
With this fix, lat and gen do nothing until link_speed is
properly initialized, and use the right link speed in the fast path.

Change-Id: Id2d14b6966ccfac7cc78db3c5a74e704b42edae7
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
VNFs/DPPD-PROX/handle_gen.c
VNFs/DPPD-PROX/handle_lat.c