net/avf: fix link autoneg value
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Mar 2018 17:56:31 +0000 (17:56 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commitc3482deb7c5d5867fa8c631607421d78ae2829ed
tree4318d58d36899a66b81f9a5f7912c5f2f46802aa
parente46a1e0bebe217f81e4c2425dd843f9d2fb31930
net/avf: fix link autoneg value

Intention of the logic is:
If ETH_LINK_SPEED_FIXED is set in dev_conf, set link_autoneg to
ETH_LINK_FIXED, else set it to ETH_LINK_AUTONEG

ETH_LINK_SPEED_FIXED value is 1, and ETH_LINK_FIXED is 0;

Current logic is broken, fix it according above values.

Fixes: 48de41ca11f0 ("net/avf: enable link status update")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/avf/avf_ethdev.c