net/octeontx2: handle link status when device stopped
authorSatha Rao <skoteshwar@marvell.com>
Wed, 7 Jul 2021 16:49:15 +0000 (12:49 -0400)
committerJerin Jacob <jerinj@marvell.com>
Tue, 13 Jul 2021 09:29:10 +0000 (11:29 +0200)
commit12e491a6b615d70fd057d54aab5cf17c11e846be
tree1771eb5aeec6de7d7f4205e821ca3dab0f5a0cb4
parentd81cea5280112f5f6c8796c2fb0bad72bf29d41e
net/octeontx2: handle 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/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_link.c