summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarish Malik <hmalik@marvell.com>2024-06-07 17:04:46 +0530
committerMonendra Singh Kushwaha <kmonendra@marvell.com>2024-06-10 14:17:16 +0530
commit38f59c315b0587d570fb85825c1129ec14c959bf (patch)
tree7cbfdcca1653ca0ccfdcf6537260f0a67ac44c88 /src
parent81f0f16b0929cabe32c4046be2ebcc2fff783949 (diff)
octeon: enable vf device promiscuous mode feature
This patch enables promiscuous mode on vf devices except SDP vf and LBK devices Type: feature Change-Id: I2e18c63590f22f99c69500f10b42b64d899249ce Signed-off-by: Kommula Shiva Shankar <kshankar@marvell.com> Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dev_octeon/port.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/port.c b/src/plugins/dev_octeon/port.c
index 2ed278d8841..0bbada8ecc1 100644
--- a/src/plugins/dev_octeon/port.c
+++ b/src/plugins/dev_octeon/port.c
@@ -386,7 +386,7 @@ oct_validate_config_promisc_mode (vnet_dev_port_t *port, int enable)
oct_device_t *cd = vnet_dev_get_data (dev);
struct roc_nix *nix = cd->nix;
- if (roc_nix_is_vf_or_sdp (nix))
+ if (roc_nix_is_sdp (nix) || roc_nix_is_lbk (nix))
return VNET_DEV_ERR_UNSUPPORTED_DEVICE;
return VNET_DEV_OK;
@@ -406,6 +406,9 @@ oct_op_config_promisc_mode (vlib_main_t *vm, vnet_dev_port_t *port, int enable)
return oct_roc_err (dev, rv, "roc_nix_npc_promisc_ena_dis failed");
}
+ if (!roc_nix_is_pf (nix))
+ return VNET_DEV_OK;
+
rv = roc_nix_mac_promisc_mode_enable (nix, enable);
if (rv)
{