Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

octeontx2-af: Remove unused rvu_npc_enable_bcast_entry

The last use of rvu_npc_enable_bcast_entry() was removed in 2021 by
commit 967db3529eca ("octeontx2-af: add support for multicast/promisc
packet replication feature")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250420225810.171852-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
67b083f1 45bd443b

-20
-2
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
··· 969 969 bool enable); 970 970 void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc, 971 971 int nixlf, u64 chan); 972 - void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 973 - bool enable); 974 972 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 975 973 u64 chan); 976 974 void rvu_npc_enable_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
-18
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
··· 820 820 rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp); 821 821 } 822 822 823 - void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 824 - bool enable) 825 - { 826 - struct npc_mcam *mcam = &rvu->hw->mcam; 827 - int blkaddr, index; 828 - 829 - blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); 830 - if (blkaddr < 0) 831 - return; 832 - 833 - /* Get 'pcifunc' of PF device */ 834 - pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK; 835 - 836 - index = npc_get_nixlf_mcam_index(mcam, pcifunc, nixlf, 837 - NIXLF_BCAST_ENTRY); 838 - npc_enable_mcam_entry(rvu, mcam, blkaddr, index, enable); 839 - } 840 - 841 823 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 842 824 u64 chan) 843 825 {