[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140710.165342.434372844542249917.davem@davemloft.net>
Date: Thu, 10 Jul 2014 16:53:42 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sonic.adi@...il.com
Cc: netdev@...r.kernel.org, adi-buildroot-devel@...ts.sourceforge.net,
sonic.zhang@...log.com
Subject: Re: [PATCH] bfin_mac: convert bfin Ethernet driver to NAPI
framework
From: Sonic Zhang <sonic.adi@...il.com>
Date: Thu, 10 Jul 2014 17:52:24 +0800
> + if (i < budget && !test_bit(NAPI_STATE_NPSVC, &napi->state)) {
> + napi_complete(napi);
> + enable_irq(IRQ_MAC_RX);
> + }
Drivers are not supposed to test this bit directly.
If you have not exhausted the budget, and the chip has no more work to
do, you should unconditionally exit the NAPI poll.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists