diff options
author | Harish Malik <hmalik@marvell.com> | 2024-06-07 17:04:46 +0530 |
---|---|---|
committer | Monendra Singh Kushwaha <kmonendra@marvell.com> | 2024-06-10 11:38:10 +0000 |
commit | 2f06443855a85caf2a187be5531a75ec3360c9ba (patch) | |
tree | 22a3d0ee4889b14213eb4b931de3dde3c14f54e4 /src/plugins | |
parent | 13780d438335599168db6bd0422253d725f24c84 (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>
(cherry picked from commit 38f59c315b0587d570fb85825c1129ec14c959bf)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/dev_octeon/port.c | 5 |
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) { |