]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 20 Apr 2025 22:58:10 +0000 (23:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Apr 2025 00:20:23 +0000 (17:20 -0700)
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>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c

index 60f085b00a8cc0e03a611790fea6dbb7e336a77b..147d7f5c1fcc0c91a0faad9fd4e905640a0f17d1 100644 (file)
@@ -969,8 +969,6 @@ void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
                                  bool enable);
 void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc,
                                       int nixlf, u64 chan);
-void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
-                               bool enable);
 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
                                    u64 chan);
 void rvu_npc_enable_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
index 821fe242f821f1c1183c9e2a3344b92367fd831c..6296a3cdabbb1f13b05ac42e7941caed462b91b3 100644 (file)
@@ -820,24 +820,6 @@ void rvu_npc_install_bcast_match_entry(struct rvu *rvu, u16 pcifunc,
        rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp);
 }
 
-void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
-                               bool enable)
-{
-       struct npc_mcam *mcam = &rvu->hw->mcam;
-       int blkaddr, index;
-
-       blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0);
-       if (blkaddr < 0)
-               return;
-
-       /* Get 'pcifunc' of PF device */
-       pcifunc = pcifunc & ~RVU_PFVF_FUNC_MASK;
-
-       index = npc_get_nixlf_mcam_index(mcam, pcifunc, nixlf,
-                                        NIXLF_BCAST_ENTRY);
-       npc_enable_mcam_entry(rvu, mcam, blkaddr, index, enable);
-}
-
 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf,
                                    u64 chan)
 {