]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2: cn10k: fix RX flowid TCAM mask handling
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 16 Jan 2026 16:47:12 +0000 (08:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:33 +0000 (10:27 +0100)
commitfcf8cd4654790ac053a04286667d89efe830d198
tree24e3df563cba7aa578ff99246623ab7254d79a1f
parent04ba6de6eff61238e5397c14ac26a6578c7735a5
octeontx2: cn10k: fix RX flowid TCAM mask handling

[ 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 <alok.a.tiwari@oracle.com>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/20260116164724.2733511-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c