net/octeontx2: fix link information for loopback port
authorAshish Gupta <ashishg@marvell.com>
Thu, 6 Feb 2020 12:30:58 +0000 (18:00 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commit7b1b04079174e8a6843fcb53d1de792bf09fdf03
tree1e2c851aeb4d96f0020e87fcef763f7bee937bd4
parentc524527dbe1cad41a79bc8839fb744d7a3010f38
net/octeontx2: fix link information for loopback port

Loopback devices are exposed as ethdev device in octeontx2.
This patch fixes the link information for loopback ports.

Fixes: 38f566280abb ("net/octeontx2: add link stats operations")
Cc: stable@dpdk.org
Signed-off-by: Ashish Gupta <ashishg@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_link.c