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 AD28843B3DA; Tue, 21 Jul 2026 21:37:34 +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=1784669856; cv=none; b=cHX6/PFKh/SjsL21YmIMHwnPq3xfiQiusPGN2O+7ColjVrBsmioUKEUxxkij0jKfERawp7HQ6uM2D7KV4M7GTxk3hGXHhsJSRI5iZcUa685kHayAhBKe2QBN81jvAfxW4rq2np7j6B8VMI6sduricTevUS9qaumVVKFDcWJNzYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784669856; c=relaxed/simple; bh=bRXFEBdwYE8aLd4ydEuEN11NVgQbcyPrCH3eoZGj/lo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lZhmuX0l6dzSYPaBsRlCvU+YI/shPKHGdzCx5ZUlGhbN52tkDVpolWf4PRdtXcDrmtPYzxtf6Rh70RUlnQyytN9QRKV6xj2VpLyowp8hrEn1rMHVuU/zB30j7cahjd9hlnN4BQd4anehI5+eBTj9d/Y3uyiEBbrCYrRpzrufp3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wSpY5f/M; 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="wSpY5f/M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 171BC1F00A3A; Tue, 21 Jul 2026 21:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784669854; bh=WDIbEKmvSiqqivjNlwj3dQlqjr8gvATvSXbldepNVwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=wSpY5f/MXh5tsKjKC4Z9Vn5CZsytZhFSTQpmE1OhOtd4ZcrX0jCkTJP7d3ddSl2Wh iHx+dO79IiiKo03SWuC6mnT9X88CayDTfpWtM+OGMC5lXAolctP70epdZVa5ERHgnv iUgWwGW4QGUJA/2pXfB4G1KgtTHTAnwNpZnyMYNQ= 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.1 0713/1067] octeontx2-af: fix VF bringup affecting PF promiscuous state Date: Tue, 21 Jul 2026 17:21:54 +0200 Message-ID: <20260721152440.540822780@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152424.521567757@linuxfoundation.org> References: <20260721152424.521567757@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.1-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 f56ffb587fc53c..07e534f70b31b0 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c @@ -4084,7 +4084,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); } @@ -4094,7 +4094,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