net/octeontx2: fix loopback config return for VF
authorSunil Kumar Kori <skori@marvell.com>
Tue, 26 Nov 2019 07:03:58 +0000 (12:33 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commitc2c0aa75cd0170cc243baf267622f7c3c5309fd5
tree4e113053488d3d65e700db4e4e292e5a84560520
parenta407d7c2ddfe05d0f13ca6170b1b8849023347e9
net/octeontx2: fix loopback config return for VF

loopback mode is not supported for VFs so returning error if
VF is being configured with loopback mode.

Fixes: 920717e4d8ba ("net/octeontx2: add device start operation")
Cc: stable@dpdk.org
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c