* [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
@ 2025-04-20 22:58 linux
2025-04-22 22:05 ` Jacob Keller
2025-04-23 0:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: linux @ 2025-04-20 22:58 UTC (permalink / raw)
To: sgoutham, lcherian, gakula, jerinj, hkelam, sbhatta,
andrew+netdev, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
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>
---
.../net/ethernet/marvell/octeontx2/af/rvu.h | 2 --
.../ethernet/marvell/octeontx2/af/rvu_npc.c | 18 ------------------
2 files changed, 20 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
index 60f085b00a8c..147d7f5c1fcc 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
@@ -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,
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
index 821fe242f821..6296a3cdabbb 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
@@ -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)
{
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
2025-04-20 22:58 [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry linux
@ 2025-04-22 22:05 ` Jacob Keller
2025-04-23 0:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Jacob Keller @ 2025-04-22 22:05 UTC (permalink / raw)
To: linux, sgoutham, lcherian, gakula, jerinj, hkelam, sbhatta,
andrew+netdev, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel
On 4/20/2025 3:58 PM, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 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>
> .../net/ethernet/marvell/octeontx2/af/rvu.h | 2 --
> .../ethernet/marvell/octeontx2/af/rvu_npc.c | 18 ------------------
> 2 files changed, 20 deletions(-)
>
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
> index 60f085b00a8c..147d7f5c1fcc 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
> @@ -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,
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> index 821fe242f821..6296a3cdabbb 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> @@ -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)
> -{
Its a bit odd since that commit also updated the signature of this
function adding the nixlf parameter, but indeed it didn't add any
callers to the function.
> - 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)
> {
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
2025-04-20 22:58 [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry linux
2025-04-22 22:05 ` Jacob Keller
@ 2025-04-23 0:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-04-23 0:50 UTC (permalink / raw)
To: Dr. David Alan Gilbert
Cc: sgoutham, lcherian, gakula, jerinj, hkelam, sbhatta,
andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 20 Apr 2025 23:58:10 +0100 you wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 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.
>
> [...]
Here is the summary with links:
- [net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
https://git.kernel.org/netdev/net-next/c/67b083f14fb7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-23 0:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 22:58 [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry linux
2025-04-22 22:05 ` Jacob Keller
2025-04-23 0:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).