]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Fix promisc mcam entry action
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 8 Dec 2023 06:56:09 +0000 (12:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:17:35 +0000 (15:17 +0100)
commite0676d37bb1a0eec7667a9d638c4bbd7734d58a2
treed4f48bead276d1675bf03a688e279b7dfb7e089c
parent86f50bb2a487a7def57e345d601ff46bbe0408db
octeontx2-pf: Fix promisc mcam entry action

[ Upstream commit dbda436824ded8ef6a05bb82cd9baa8d42377a49 ]

Current implementation is such that, promisc mcam entry action
is set as multicast even when there are no trusted VFs. multicast
action causes the hardware to copy packet data, which reduces
the performance.

This patch fixes this issue by setting the promisc mcam entry action to
unicast instead of multicast when there are no trusted VFs. The same
change is made for the 'allmulti' mcam entry action.

Fixes: ffd2f89ad05c ("octeontx2-pf: Enable promisc/allmulti match MCAM entries.")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c