[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170126102802.4f920418@xeon-e3>
Date: Thu, 26 Jan 2017 10:28:02 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Thomas Falcon <tlfalcon@...ux.vnet.ibm.com>
Cc: netdev@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
wvoigt@...ibm.com, nfont@...ux.vnet.ibm.com,
jallen@...ux.vnet.ibm.com
Subject: Re: [PATCH net 1/5] ibmvnic: harden interrupt handler
On Wed, 25 Jan 2017 15:02:19 -0600
Thomas Falcon <tlfalcon@...ux.vnet.ibm.com> wrote:
> static irqreturn_t ibmvnic_interrupt(int irq, void *instance)
> {
> struct ibmvnic_adapter *adapter = instance;
> + unsigned long flags;
> +
> + spin_lock_irqsave(&adapter->crq.lock, flags);
> + vio_disable_interrupts(adapter->vdev);
> + tasklet_schedule(&adapter->tasklet);
> + spin_unlock_irqrestore(&adapter->crq.lock, flags);
> + return IRQ_HANDLED;
> +}
> +
Why not use NAPI? rather than a tasklet
Powered by blists - more mailing lists