From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 378E647012C; Tue, 21 Jul 2026 19:49:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784663386; cv=none; b=cIA3fuXwbzrSZmiKZrBuNuQS6Gs57vY5UhrLHPxcCW/n+uakXv/HUlfekzZ2Ad7eSidoybusdg2NvwdQSUktV2V9HBqaWSavQHWGAfzn47KWfJveGEWyfFZSG3YBA6AElYV5RXTp9BXrJBomTmKw9nl2Y6r55fUtFrv15n/SR8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784663386; c=relaxed/simple; bh=yyQSu9I517so1F8q0Xf7zTBQJm8QFmC1ff4GSdQ2DQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ou7trpFrTzufT0qG3bRwcUonPZpxehLovqBUoTQrhc9u2iHvTtrPvpMn9xPxthR0uppNDtQv2SeP1SBqtQ/gzZLhjp9Vum4J6FZKsuQtyuByo+tIP4MpMZ586eNaiBewFXOFShDenn+/hbe3U2vzVHS6Hgn1M2FSIGGMlmiteLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T/7MaQ7Z; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="T/7MaQ7Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E2871F000E9; Tue, 21 Jul 2026 19:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784663385; bh=FXrjkfYjvm/gkHmKsv3d+3P0sI8eWIeftGB3tnr7HfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=T/7MaQ7Z+nbUylPuQj4zihaSZ6PqAePk/x4UMIbwobedJvNTiqoU5HpkOnXvkTOXd S+s23/U30QMgZ3Sna9ipma8/6jJTooVOLt4vqfL3JTVJeTKhfu7HyYWjN70Q0f+982 PnDEsCrS3uFMA0aQU5XQfoR9p8s3CCaZe6XAp/OI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Harman Kalra , Nitin Shetty J , Paolo Abeni , Sasha Levin Subject: [PATCH 6.12 0803/1276] octeontx2-af: fix VF bringup affecting PF promiscuous state Date: Tue, 21 Jul 2026 17:20:46 +0200 Message-ID: <20260721152504.042222200@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Harman Kalra [ Upstream commit fabb881df322da25442f98d23f5fa371e3c78ec4 ] 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. Fixes: 967db3529eca ("octeontx2-af: add support for multicast/promisc packet replication feature") Signed-off-by: Harman Kalra Signed-off-by: Nitin Shetty J Link: https://patch.msgid.link/20260702045616.3002773-2-nshettyj@marvell.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c index 0a23e0a9182809..e9ded7bed553d5 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c @@ -4473,7 +4473,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); } @@ -4483,7 +4483,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; -- 2.53.0