net/i40e: fix uninitialized variable
In func i40evf_dev_link_update(), "new_link.link_autoneg" is used in
func call i40evf_dev_atomic_write_link_status(), but is uninitialized.
Fixes: 2a73125b70
("i40evf: fix link info update")
Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
This commit is contained in:
parent
61789822ac
commit
47cf8373a1
@ -2100,6 +2100,8 @@ i40evf_dev_link_update(struct rte_eth_dev *dev,
|
||||
new_link.link_duplex = ETH_LINK_FULL_DUPLEX;
|
||||
new_link.link_status = vf->link_up ? ETH_LINK_UP :
|
||||
ETH_LINK_DOWN;
|
||||
new_link.link_autoneg =
|
||||
dev->data->dev_conf.link_speeds & ETH_LINK_SPEED_FIXED;
|
||||
|
||||
i40evf_dev_atomic_write_link_status(dev, &new_link);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user