From: Jacob Keller <jacob.e.keller@intel.com>
To: <linux@treblig.org>, <sgoutham@marvell.com>,
<lcherian@marvell.com>, <gakula@marvell.com>,
<jerinj@marvell.com>, <hkelam@marvell.com>, <sbhatta@marvell.com>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next] octeontx2-af: Remove unused rvu_npc_enable_bcast_entry
Date: Tue, 22 Apr 2025 15:05:17 -0700 [thread overview]
Message-ID: <74650d5d-167c-4d04-8412-5ffb39d4fc6a@intel.com> (raw)
In-Reply-To: <20250420225810.171852-1-linux@treblig.org>
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)
> {
next prev parent reply other threads:[~2025-04-22 22:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-20 22:58 linux
2025-04-22 22:05 ` Jacob Keller [this message]
2025-04-23 0:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74650d5d-167c-4d04-8412-5ffb39d4fc6a@intel.com \
--to=jacob.e.keller@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=jerinj@marvell.com \
--cc=kuba@kernel.org \
--cc=lcherian@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®