From: Sokolov Evgeny <[email protected]>
---
drivers/net/bnxt/bnxt_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 920b298486..6da4247a7a 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -1408,7 +1408,7 @@ void bnxt_print_link_info(struct rte_eth_dev *eth_dev)
(uint32_t)link->link_speed,
(link->link_duplex == RTE_ETH_LINK_FULL_DUPLEX) ?
("full-duplex") : ("half-duplex"),
- (uint16_t)bp->link_info->active_lanes);
+
(bp->link_info)?(uint16_t)bp->link_info->active_lanes:-1);
else
PMD_DRV_LOG_LINE(INFO, "Port %d Link Down",
eth_dev->data->port_id);
}
--
2.39.5