examples/performance-thread: fix destination port
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Fri, 29 Apr 2016 16:30:56 +0000 (18:30 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Jun 2016 20:38:52 +0000 (22:38 +0200)
commit6b90b6798e02596c0ca5cc49443df391ecc28b8a
tree13ba033daaea280b510d4e1ebbf0eb2c2eba7d0a
parentf8ed6a2dc224de455b5712619e3fbb8a32eda6e0
examples/performance-thread: fix destination port

This fixes wrong logic in get_dst_port() on lpm path causing unpredictable
return value when ipv4/ipv6 lookup success (return with no value).

Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field")

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
examples/performance-thread/l3fwd-thread/main.c