From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D7AA830BF62; Wed, 28 Jan 2026 15:42:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614965; cv=none; b=SZh6s4IsZTxY4doE11JW0E3PUZmTUZaa3R8E9HwcC4CcinftYKet6IiFJoemgSDIHj7kRWFQ1m8vEdBNYOu/+6S6IKVge3rUV6uH3hsL5RkW16rfSY3NCjPWAz6bywSY5d7VfzBSPuOh5AJbBVs5iWpf+g35iFYxyeKEI/dMsAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614965; c=relaxed/simple; bh=dAi5j5OTFDou/6ej4B2w6n3UuDbA93WcoKkaz/eab9E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rTQgYd2SFUzBmfLGH5gr5KmjCsYs7v+DRVufRPKrA1tpXwZOfz5n5LPtWrHYSuJezsB8TcFp8Is+YQ68ss647kUyYW7IEXh4jZ8QhdbeoncL5qHcuMbthRWx3j1EhF+BaTGJru4O525vPLkMOjy5ouS8An6SCvvXbUWKYzZiWoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XNtYnuRJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XNtYnuRJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AF94C4CEF7; Wed, 28 Jan 2026 15:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769614964; bh=dAi5j5OTFDou/6ej4B2w6n3UuDbA93WcoKkaz/eab9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNtYnuRJa71ohHNYPq2WDJ0ZgN0+LKdF/TZb/rz3wRU1X9aqIoCgI+aWkXbaqJoyv +mjaC/4MhEYP6fego4T61PIRgVX6NPVf1WWUFYOHb1z54Plp2DqaooiydS46Yqzk2o axYbGjLGe9Q6vJp8tRfCGfbFGqLXCt1f5W53sE2Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alok Tiwari , Subbaraya Sundeep , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 038/169] octeontx2: cn10k: fix RX flowid TCAM mask handling Date: Wed, 28 Jan 2026 16:22:01 +0100 Message-ID: <20260128145335.393427085@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260128145334.006287341@linuxfoundation.org> References: <20260128145334.006287341@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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: Alok Tiwari [ Upstream commit ab9b218a1521133a4410722907fa7189566be9bc ] The RX flowid programming initializes the TCAM mask to all ones, but then overwrites it when clearing the MAC DA mask bits. This results in losing the intended initialization and may affect other match fields. Update the code to clear the MAC DA bits using an AND operation, making the handling of mask[0] consistent with mask[1], where the field-specific bits are cleared after initializing the mask to ~0ULL. Fixes: 57d00d4364f3 ("octeontx2-pf: mcs: Match macsec ethertype along with DMAC") Signed-off-by: Alok Tiwari Reviewed-by: Subbaraya Sundeep Link: https://patch.msgid.link/20260116164724.2733511-1-alok.a.tiwari@oracle.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c index 74953f67a2bf9..3af58bc9f533c 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c @@ -330,7 +330,7 @@ static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, req->data[0] = FIELD_PREP(MCS_TCAM0_MAC_DA_MASK, mac_da); req->mask[0] = ~0ULL; - req->mask[0] = ~MCS_TCAM0_MAC_DA_MASK; + req->mask[0] &= ~MCS_TCAM0_MAC_DA_MASK; req->data[1] = FIELD_PREP(MCS_TCAM1_ETYPE_MASK, ETH_P_MACSEC); req->mask[1] = ~0ULL; -- 2.51.0