[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <55abfcf00da1494fbc98fc0389ab7c3a@realtek.com>
Date: Fri, 12 Jul 2024 08:31:41 +0000
From: Justin Lai <justinlai0215@...ltek.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com"
<edumazet@...gle.com>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"andrew@...n.ch"
<andrew@...n.ch>,
"jiri@...nulli.us" <jiri@...nulli.us>,
"horms@...nel.org"
<horms@...nel.org>,
"rkannoth@...vell.com" <rkannoth@...vell.com>,
"jdamato@...tly.com" <jdamato@...tly.com>,
Ping-Ke Shih <pkshih@...ltek.com>, Larry Chiu <larry.chiu@...ltek.com>
Subject: RE: [PATCH net-next v23 04/13] rtase: Implement the interrupt routine and rtase_poll
> On Wed, 10 Jul 2024 11:32:25 +0800 Justin Lai wrote:
> > +#ifdef CONFIG_NET_POLL_CONTROLLER
> > +/* Polling 'interrupt' - used by things like netconsole to send skbs
> > + * without having to re-enable interrupts. It's not called while
> > + * the interrupt routine is executing.
> > + */
> > +static void rtase_netpoll(struct net_device *dev) {
> > + const struct rtase_private *tp = netdev_priv(dev);
> > + const struct pci_dev *pdev = tp->pdev;
> > +
> > + disable_irq(pdev->irq);
> > + rtase_interrupt(pdev->irq, dev);
>
> Why do you need to implement a separate netpoll handler?
> netpoll is optional, if driver doesn't implement it core will just core your NAPI
> handlers with a budget of 0 (to only clean up Tx, see NAPI documentation).
>
> disable_irq() sleeps, you most definitely can't call it here.
> --
> pw-bot: cr
Hi Jakub,
After confirming, I think there is no need to implement the netpoll handler,
so I will remove it.
Powered by blists - more mailing lists