net/qede: fix incorrect link status update
authorShahed Shaikh <shahed.shaikh@cavium.com>
Thu, 7 Jun 2018 16:30:51 +0000 (09:30 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commitc6034a20d9e221dc6125db57e4378520af3a515d
tree372ab4c67f594dccbd1726d3aa5960515086b7ab
parent7105b24f4bb89b23b8efeb516d5b69d85e18568f
net/qede: fix incorrect link status update

qede_link_update() always returns -1 i.e. link not changed,
because it compares the variables which always hold same value.

Fix this function by using rte_eth_linkstatus_set().

Fixes: 2ea6f76aff40 ("qede: add core driver")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
drivers/net/qede/qede_ethdev.c