summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi/bfin_mac.h
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2014-07-24 17:52:59 +0800
committerDavid S. Miller <davem@davemloft.net>2014-07-24 23:35:42 -0700
commit159945af1e40db5c15766d9fe6d465d7213cc860 (patch)
tree9399c244aade0702915d2c6956d893a6ab043725 /drivers/net/ethernet/adi/bfin_mac.h
parent6b53dafe23fd1f1228c7dd9b8a1323e757966160 (diff)
downloadtalos-op-linux-159945af1e40db5c15766d9fe6d465d7213cc860.tar.gz
talos-op-linux-159945af1e40db5c15766d9fe6d465d7213cc860.zip
bfin_mac: convert bfin Ethernet driver to NAPI framework
Ethernet RX DMA buffers are polled in NAPI work queue other than received directly in DMA RX interrupt handler. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adi/bfin_mac.h')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h
index 6dec86ac97cd..d1217db70db4 100644
--- a/drivers/net/ethernet/adi/bfin_mac.h
+++ b/drivers/net/ethernet/adi/bfin_mac.h
@@ -26,6 +26,7 @@
#endif
#define TX_RECLAIM_JIFFIES (HZ / 5)
+#define BFIN_MAC_RX_IRQ_DISABLED 1
struct dma_descriptor {
struct dma_descriptor *next_dma_desc;
@@ -80,6 +81,8 @@ struct bfin_mac_local {
int irq_wake_requested;
struct timer_list tx_reclaim_timer;
struct net_device *ndev;
+ struct napi_struct napi;
+ unsigned long flags;
/* Data for EMAC_VLAN1 regs */
u16 vlan1_mask, vlan2_mask;
OpenPOWER on IntegriCloud