[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180129.143156.655708172616800160.davem@davemloft.net>
Date: Mon, 29 Jan 2018 14:31:56 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: amonakov@...ras.ru
Cc: netdev@...r.kernel.org, rmk+kernel@....linux.org.uk,
sebastian.hesselbarth@...il.com, f.fainelli@...il.com
Subject: Re: [PATCH] net: pxa168_eth: add netconsole support
From: Alexander Monakov <amonakov@...ras.ru>
Date: Sat, 27 Jan 2018 23:29:07 +0300
> @@ -1362,6 +1362,14 @@ static int pxa168_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr,
> return -EOPNOTSUPP;
> }
>
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +static void pxa168_eth_netpoll(struct net_device *dev)
> +{
> + struct pxa168_eth_private *pep = netdev_priv(dev);
> + napi_schedule(&pep->napi);
> +}
> +#endif
This definitely is not sufficient.
Look at what other drivers do.
You have to invoke the interrupt handler with the device's interrupts disabled,
collect the events, and most importantly mask chip interrupts before scheduling
the NAPI instance.
Thank you.
Powered by blists - more mailing lists