git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f26e60
)
net/octeontx2: fix VF configuration
author
Harman Kalra
<hkalra@marvell.com>
Mon, 2 Dec 2019 14:41:15 +0000
(14:41 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000
(19:46 +0100)
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>
drivers/net/octeontx2/otx2_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/octeontx2/otx2_ethdev.c
b/drivers/net/octeontx2/otx2_ethdev.c
index
ed32927
..
43c6107
100644
(file)
--- a/
drivers/net/octeontx2/otx2_ethdev.c
+++ b/
drivers/net/octeontx2/otx2_ethdev.c
@@
-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)