net/octeontx2: fix VF configuration
Returning -ENOTSUP only in case loopback mode is enabled and device is VF or SDP. Fixes: c2c0aa75cd01 ("net/octeontx2: fix loopback config return for VF") Cc: stable@dpdk.org Signed-off-by: Harman Kalra <hkalra@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
6f26e604a9
commit
d059dba51d
@ -204,7 +204,7 @@ cgx_intlbk_enable(struct otx2_eth_dev *dev, bool en)
|
||||
{
|
||||
struct otx2_mbox *mbox = dev->mbox;
|
||||
|
||||
if (otx2_dev_is_vf_or_sdp(dev))
|
||||
if (en && otx2_dev_is_vf_or_sdp(dev))
|
||||
return -ENOTSUP;
|
||||
|
||||
if (en)
|
||||
|
Loading…
x
Reference in New Issue
Block a user