From: Hariprasad Kelam <hkelam@marvell.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<davem@davemloft.net>, <sgoutham@marvell.com>,
<gakula@marvell.com>, <jerinj@marvell.com>,
<lcherian@marvell.com>, <sbhatta@marvell.com>,
<naveenm@marvell.com>, <edumazet@google.com>, <pabeni@redhat.com>,
<andrew+netdev@lunn.ch>, <bbhushan2@marvell.com>
Subject: Re: [net-next PatchV4 2/2] Octeontx2-pf: Add support for DMAC_FILTER trap
Date: Tue, 27 Jan 2026 12:02:13 +0530 [thread overview]
Message-ID: <aXhb7fZHRh7kB1fd@test-OptiPlex-Tower-Plus-7010> (raw)
In-Reply-To: <20260125142412.20b37981@kernel.org>
On 2026-01-26 at 03:54:12, Jakub Kicinski (kuba@kernel.org) wrote:
> On Fri, 23 Jan 2026 16:17:31 +0530 Hariprasad Kelam wrote:
> > --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
> > +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
> > @@ -3282,6 +3282,10 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> > if (err)
> > goto err_mcam_flow_del;
> >
> > + err = otx2_devlink_traps_register(pf);
> > + if (err)
> > + goto err_unregister_dl;
> > +
> > /* Initialize SR-IOV resources */
> > err = otx2_sriov_vfcfg_init(pf);
> > if (err)
> > @@ -3314,6 +3318,8 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> > otx2_sriov_vfcfg_cleanup(pf);
> > err_pf_sriov_init:
> > otx2_shutdown_tc(pf);
> > +err_unregister_dl:
> > + otx2_unregister_dl(pf);
>
> Hm, you're still not calling otx2_devlink_traps_unregister()
> anywhere in this unwind ladder. If the missing otx2_unregister_dl()
> is a pre-existing bug please send a separate fix (to net?) to address
> that, and then this series on top.
>
ACK, will send "otx2_unregister_dl" as a separate patch.
> > err_mcam_flow_del:
> > otx2_mcam_flow_del(pf);
> > err_unreg_netdev:
> > @@ -3514,6 +3520,7 @@ static void otx2_remove(struct pci_dev *pdev)
> > /* Disable link notifications */
> > otx2_cgx_config_linkevents(pf, false);
> >
> > + otx2_devlink_traps_unregister(pf);
> > otx2_unregister_dl(pf);
> --
> pw-bot: cr
>
prev parent reply other threads:[~2026-01-27 6:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-23 10:47 [net-next PatchV4 0/2] Octeontx2-pf: Add support for DMAC_FILTER trap Hariprasad Kelam
2026-01-23 10:47 ` [net-next PatchV4 1/2] octeontx2-af: Mailbox handlers to fetch DMAC filter drop counter Hariprasad Kelam
2026-01-23 10:47 ` [net-next PatchV4 2/2] Octeontx2-pf: Add support for DMAC_FILTER trap Hariprasad Kelam
2026-01-25 22:24 ` Jakub Kicinski
2026-01-27 6:32 ` Hariprasad Kelam [this message]
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=aXhb7fZHRh7kB1fd@test-OptiPlex-Tower-Plus-7010 \
--to=hkelam@marvell.com \
--cc=andrew+netdev@lunn.ch \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=jerinj@marvell.com \
--cc=kuba@kernel.org \
--cc=lcherian@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=naveenm@marvell.com \
--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