Messages in this thread Patch in this message | | | Date | Fri, 26 Dec 2003 22:23:35 +0100 | From | Pavel Machek <> | Subject | Re: [FYI] 2.6.x exp net drivers changelog |
| |
Hi!
> <prasanna:in.ibm.com>: > o [netdrvr tlan] netpoll support > o [netdrvr smc-ultra] netpoll support
And here's netpoll for via-rhine... I hope it is allright? [I tested it briefly, kgdb-over-this seemed to work.]
Pavel
--- tmp/linux/drivers/net/via-rhine.c 2003-09-09 12:45:27.000000000 +0200 +++ linux/drivers/net/via-rhine.c 2003-12-25 22:34:37.000000000 +0100 @@ -615,6 +615,15 @@ break; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void via_rhine_poll(struct net_device *dev) +{ + disable_irq(dev->irq); + via_rhine_interrupt(dev->irq, (void *)dev, NULL); + enable_irq(dev->irq); +} +#endif + static int __devinit via_rhine_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) { @@ -784,6 +793,9 @@ dev->ethtool_ops = &netdev_ethtool_ops; dev->tx_timeout = via_rhine_tx_timeout; dev->watchdog_timeo = TX_TIMEOUT; +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = via_rhine_poll; +#endif if (np->drv_flags & ReqTxAlign) dev->features |= NETIF_F_SG|NETIF_F_HW_CSUM; -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |