From: Sunil Kumar Kori <sk...@marvell.com>

If device is in reconfigure state then it throws error while
changing default MAC or adding new MAC in LMAC filter table
if there are active VFs on a PF.

Allowing MAC address set/add even active VFs are present on
PF.

Signed-off-by: Sunil Kumar Kori <sk...@marvell.com>
---
 drivers/common/cnxk/roc_nix_mac.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/common/cnxk/roc_nix_mac.c 
b/drivers/common/cnxk/roc_nix_mac.c
index 0ffd05e4d4..54db1adf17 100644
--- a/drivers/common/cnxk/roc_nix_mac.c
+++ b/drivers/common/cnxk/roc_nix_mac.c
@@ -91,11 +91,6 @@ roc_nix_mac_addr_set(struct roc_nix *roc_nix, const uint8_t 
addr[])
                goto exit;
        }
 
-       if (dev_active_vfs(&nix->dev)) {
-               rc = NIX_ERR_OP_NOTSUP;
-               goto exit;
-       }
-
        req = mbox_alloc_msg_cgx_mac_addr_set(mbox);
        if (req == NULL)
                goto exit;
@@ -152,11 +147,6 @@ roc_nix_mac_addr_add(struct roc_nix *roc_nix, uint8_t 
addr[])
                goto exit;
        }
 
-       if (dev_active_vfs(&nix->dev)) {
-               rc = NIX_ERR_OP_NOTSUP;
-               goto exit;
-       }
-
        req = mbox_alloc_msg_cgx_mac_addr_add(mbox);
        mbox_memcpy(req->mac_addr, addr, PLT_ETHER_ADDR_LEN);
 
-- 
2.34.1

Reply via email to