Fix link speed when link is down at startup. 11/56111/1
authorXavier Simonart <xavier.simonart@intel.com>
Wed, 11 Apr 2018 14:15:55 +0000 (16:15 +0200)
committerDeepak S <deepak.s@linux.intel.com>
Fri, 20 Apr 2018 10:57:52 +0000 (16:27 +0530)
commit667d6706c5d9f870bc362b36b2c237bbf0979247
tree435910b261f29cf7bbc9742d56891968af1f9f5a
parentf581340fd0d9efa229cbba67ad0031ca14c6a9e2
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