netpoll support for lasi_82596
Hi,
i'm working on kgdb for linux-2.6, and added netpoll support to the lasi_82596 driver. Maybe we can add this patch?
---------------------------------------------------------------
Index: lasi_82596.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/net/lasi_82596.c,v retrieving revision 1.15
lasi_82596.c +14 -1
@@ -415,6 +415,9 @@static int ticks_limit =100 ;static int max_cmd_backlog =TX_RING_SIZE -1 ; +#if CONFIG_NET_POLL_CONTROLLER +static void i596_poll_controller (struct net_device *dev); +#endif static inline void CA (struct net_device *dev) {
@@ -1209,7 +1212,9 @@ dev->set_multicast_list = set_multicast_list; dev->tx_timeout = i596_tx_timeout; dev->watchdog_timeo =TX_TIMEOUT ; - +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = i596_poll_controller; +#endif dev->priv = (void *)(dev->mem_start); lp = dev->priv;
@@ -1242,6 +1247,14 @@return 0 ; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void i596_poll_controller (struct net_device *dev) +{ +disable_irq (dev->irq); +i596_interrupt (dev->irq, dev,NULL ); +enable_irq (dev->irq); +} +#endif static irqreturn_t i596_interrupt (int irq,void *dev_id,struct pt_regs *regs) {
--------------------------------------------------------------------------------
Thanks,
Sven.
Signature · 2 lines
We've seen the restless children at the head of the columns Come to purify the future with the arrogance of youth
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Thanks Sven,
I've applied your patch (with small modifications).
Helge
Quoted 51 lines · Sven Schnelle
Hi,
i'm working on kgdb for linux-2.6, and added netpoll support to the
lasi_82596driver. Maybe we can add this patch?---------------------------------------------------------------
Index:lasi_82596.c
===================================================================
RCS file:/var/cvs/linux-2.6/drivers/net/lasi_82596.c,vretrieving revision 1.15
diff -u -r1.15lasi_82596.clasi_82596.c +14
-2@@ -415,6 +415,9 @@static int ticks_limit =100 ;static int max_cmd_backlog =TX_RING_SIZE -1 ; +#if CONFIG_NET_POLL_CONTROLLER +static void i596_poll_controller (struct net_device *dev); +#endif static inline void CA (struct net_device *dev) {@@ -1209,7 +1212,9 @@ dev->set_multicast_list = set_multicast_list; dev->tx_timeout = i596_tx_timeout; dev->watchdog_timeo =TX_TIMEOUT ; - +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = i596_poll_controller; +#endif dev->priv = (void *)(dev->mem_start); lp = dev->priv;@@ -1242,6 +1247,14 @@return 0 ; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void i596_poll_controller (struct net_device *dev) +{ +disable_irq (dev->irq); +i596_interrupt (dev->irq, dev,NULL ); +enable_irq (dev->irq); +} +#endif static irqreturn_t i596_interrupt (int irq,void *dev_id,struct pt_regs *regs) { --------------------------------------------------------------------------------
Quoted 7 lines
Thanks,
Sven.
Signature · 2 lines
We've seen the restless children at the head of the columns Come to purify the future with the arrogance of youth
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
kgdb (was: Re: [parisc-linux] netpoll support for lasi_82596)
Hi Helge,
Quoted 1 line · Helge Deller
I've applied your patch (with small modifications).
Thanks, maybe one day this will be useful for kgdb debugging over ethernet - but this needs some work, at the Moment there are no breakpoints and no singlestepping in my kgdb port for linux-2.6.
Bye,
Sven
Signature · 1 line
Disc space - the final frontier...