octeontx2-af: Bug fixes for VF RX mode
v3 cover octeontx2-af: Bug fixes for VF RX mode
From: Kiran Kumar K <[email protected]>
Hello,
The patch resolves an issue where a VF changing its interface state could inadvertently delete the RX promiscuous and all-multicast MCAM rules belonging to the host PF.
Changes in v3:
- Drop patch "octeontx2-af: suppress kpu profile loading warning".
- Drop the change based on the Sashiko review comment that both APIs already use FW_OPT_NO_WARN, making the switch from request_firmware_direct() to firmware_request_nowarn() unnecessary.
Changes in v2:
- Rebased patch 2/2 to resolve a merge conflict on the net branch.
- Patch 1/2 remains unchanged.
Harman Kalra (1):
octeontx2-af: fix VF bringup affecting PF promiscuous state
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.48.1
PATCH v3 1/1 octeontx2-af: fix VF bringup affecting PF promiscuous state
From: Harman Kalra <[email protected]>
Mbox handling of nix_set_rx_mode for a VF with promiscuous and all_multi flags set to false causes deletion of the PF's promiscuous and allmulti MCAM rules. This occurs because the APIs that enable/disable these rules operate only on the PF, even when the mbox request is made via a VF interface.
Guard both rvu_npc_enable_allmulti_entry() and rvu_npc_enable_promisc_entry() disable paths with an is_vf() check so that a VF bringing up or tearing down its interface cannot inadvertently clear the PF's MCAM rules.
--- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +2 -2
@@ -4575,7 +4575,7 @@ int rvu_mbox_handler_nix_set_rx_mode(struct rvu *rvu, struct nix_rx_mode *req,rvu_npc_install_allmulti_entry (rvu, pcifunc, nixlf, pfvf->rx_chan_base); }else { -if (!nix_rx_multicast) +if (!nix_rx_multicast && !is_vf (pcifunc))rvu_npc_enable_allmulti_entry (rvu, pcifunc, nixlf, false); }
@@ -4585,7 +4585,7 @@ int rvu_mbox_handler_nix_set_rx_mode(struct rvu *rvu, struct nix_rx_mode *req, pfvf->rx_chan_base, pfvf->rx_chan_cnt); else - if (!nix_rx_multicast) + if (!nix_rx_multicast && !is_vf(pcifunc))rvu_npc_enable_promisc_entry (rvu, pcifunc, nixlf, false);return 0 ;
Signature · 1 line
2.48.1
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 9 lines · On Thu, 2 Jul 2026 10:26:15 +0530 you wrote:
From: Kiran Kumar K <[email protected]>
Hello,
The patch resolves an issue where a VF changing its interface state could inadvertently delete the RX promiscuous and all-multicast MCAM rules belonging to the host PF.
[...]
Here is the summary with links:
- [net,v3,1/1] octeontx2-af: fix VF bringup affecting PF promiscuous state
https://git.kernel.org/netdev/net/c/fabb881df322
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html