Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6258716 authored by Sathya Perla's avatar Sathya Perla Committed by Greg Kroah-Hartman
Browse files

Staging: benet: fix build errors when CONFIG_NETPOLL is off

parent 7f425231
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
config BENET
	tristate "ServerEngines 10Gb NIC - BladeEngine"
	depends on PCI && INET && NETPOLL
	depends on PCI && INET
	select INET_LRO
	help
	  This driver implements the NIC functionality for ServerEngines
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ TODO:
	- fix minor checkpatch.pl issues
	- remove wrappers around common iowrite functions
	- full netdev audit of common problems/issues
	- fix build errors when CONFIG_NETPOLL is not enabled

Please send all patches and questions to Subbu Seetharaman
<subbus@serverengines.com> and Greg Kroah-Hartman <greg@kroah.com>
+2 −4
Original line number Diff line number Diff line
@@ -717,12 +717,10 @@ irqreturn_t be_int(int irq, void *dev)
 */
int be_poll(struct napi_struct *napi, int budget)
{
	struct net_device *netdev = napi->dev;
	struct be_net_object *pnob = netdev_priv(netdev);
	struct be_adapter *adapter = pnob->adapter;
	struct be_net_object *pnob = container_of(napi, struct be_net_object, napi);
	u32 work_done;

	adapter->be_stat.bes_polls++;
	pnob->adapter->be_stat.bes_polls++;
	work_done = process_rx_completions(pnob, budget);
	BUG_ON(work_done > budget);