]> www.infradead.org Git - users/dwmw2/linux.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2023 10:06:04 +0000 (10:06 +0000)
commitdbda436824ded8ef6a05bb82cd9baa8d42377a49
treecc4955f7ac03a94cde380678eb82b282d0deee41
parent284f717622417cb267e344a9174f8e5698d1e3c1
octeontx2-pf: Fix promisc mcam entry action

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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c