net/cnxk: update link status when device stopped
authorSatha Rao <skoteshwar@marvell.com>
Wed, 7 Jul 2021 16:49:17 +0000 (12:49 -0400)
committerJerin Jacob <jerinj@marvell.com>
Tue, 13 Jul 2021 09:29:49 +0000 (11:29 +0200)
commite7bbbcb26f825aa233bdc2707a94c537cc45d6e6
tree560cd7fc616316836f71595ff817f4cd5ef97e5f
parentd9dda782ac08a47ca092a0c499b21635b23e6644
net/cnxk: update link status when device stopped

Set link status to down and don't fetch link status from kernel
when device in stopped state.

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/cnxk/cnxk_ethdev.c
drivers/net/cnxk/cnxk_link.c