Benjamin Herrenschmidt
937f1ba56b
net: Add init_dummy_netdev() and fix EMAC driver using it
...
This adds an init_dummy_netdev() function that gets a network device
structure (allocation and lifetime entirely under caller's control) and
initialize the minimum amount of fields so it can be used to schedule
NAPI polls without registering a full blown interface. This is to be
used by drivers that need to tie several hardware interfaces to a single
NAPI poll scheduler due to HW limitations.
It also updates the ibm_newemac driver to use that, this fixing the
oops on 2.6.29 due to passing NULL as "dev" to netif_napi_add()
Symbol is exported GPL only a I don't think we want binary drivers doing
that sort of acrobatics (if we want them at all).
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Tested-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2009-01-14 21:05:05 -08:00
..
2009-01-06 18:10:26 -08:00
2009-01-06 11:07:54 -08:00
2009-01-06 17:14:01 -08:00
2009-01-11 01:34:25 +01:00
2009-01-09 12:37:15 -08:00
2009-01-12 21:18:37 -08:00
2009-01-07 17:38:32 -05:00
2009-01-09 08:31:11 +11:00
2009-01-08 20:10:38 +00:00
2009-01-08 20:11:07 +00:00
2009-01-07 10:00:06 -08:00
2009-01-07 10:00:22 -08:00
2009-01-09 03:41:08 -05:00
2009-01-07 08:45:46 -08:00
2009-01-09 11:52:14 -08:00
2009-01-06 15:59:23 -08:00
2009-01-06 15:59:23 -08:00
2009-01-08 08:31:12 -08:00
2009-01-08 15:37:43 +00:00
2009-01-06 15:59:29 -08:00
2009-01-09 16:54:42 -08:00
2009-01-07 09:38:48 +11:00
2009-01-08 08:31:10 -08:00
2009-01-09 16:54:41 -08:00
2009-01-08 08:31:11 -08:00
2009-01-07 10:00:16 -08:00
2009-01-09 15:06:12 -08:00
2009-01-12 20:56:41 +01:00
2009-01-11 00:20:39 -08:00
2009-01-08 08:31:00 -08:00
2009-01-08 08:31:00 -08:00
2009-01-08 17:14:59 -08:00
2009-01-08 17:14:59 -08:00
2009-01-09 16:54:42 -08:00
2009-01-06 15:59:01 -08:00
2009-01-06 15:58:58 -08:00
2009-01-07 14:29:17 +01:00
2009-01-06 10:50:09 -08:00
2009-01-06 17:10:53 -08:00
2009-01-07 11:12:32 -08:00
2009-01-08 17:14:59 -08:00
2009-01-08 08:31:00 -08:00
2009-01-07 10:00:22 -08:00
2009-01-08 08:31:15 -08:00
2009-01-06 10:44:30 -08:00
2009-01-06 15:59:21 -08:00
2009-01-08 12:38:58 +00:00
2009-01-08 17:55:03 +00:00
2009-01-10 15:06:52 -08:00
2009-01-08 08:30:59 -08:00
2009-01-08 08:31:10 -08:00
2009-01-06 15:59:00 -08:00
2009-01-06 15:59:00 -08:00
2009-01-09 16:54:41 -08:00
2009-01-06 15:59:00 -08:00
2009-01-09 22:44:25 +01:00
2009-01-11 17:55:16 +01:00
2009-01-08 08:31:07 -08:00
2009-01-08 12:04:47 +00:00
2009-01-08 12:04:47 +00:00
2009-01-08 08:31:07 -08:00
2009-01-06 15:59:20 -08:00
2009-01-14 21:05:05 -08:00
2009-01-07 17:38:31 -05:00
2009-01-06 15:59:00 -08:00
2009-01-08 16:25:18 +11:00
2009-01-07 22:48:15 +01:00
2009-01-07 09:59:50 -08:00
2009-01-08 08:31:05 -08:00
2009-01-06 15:59:07 -08:00
2009-01-06 15:59:00 -08:00
2009-01-09 03:39:43 -05:00
2009-01-07 11:13:22 -08:00
2009-01-07 11:13:11 -08:00
2009-01-07 11:13:25 -08:00
2009-01-06 17:10:04 -08:00
2009-01-08 08:31:12 -08:00
2009-01-08 08:31:12 -08:00
2009-01-06 10:44:29 -08:00
2009-01-06 10:44:30 -08:00
2009-01-06 15:59:12 -08:00
2009-01-07 21:44:20 +01:00
2009-01-07 21:44:20 +01:00
2009-01-10 06:04:33 -08:00
2009-01-08 08:31:05 -08:00
2009-01-06 15:59:28 -08:00
2009-01-06 15:59:07 -08:00
2009-01-06 17:10:33 -08:00
2009-01-07 09:58:22 +11:00
2009-01-08 16:25:18 +11:00
2009-01-11 03:41:58 +01:00
2009-01-06 21:17:57 -08:00
2009-01-08 08:31:10 -08:00
2009-01-07 11:27:12 -08:00
2009-01-06 10:44:44 -08:00
2009-01-07 10:00:11 -08:00
2009-01-07 10:00:14 -08:00
2009-01-06 15:59:05 -08:00
2009-01-07 10:00:16 -08:00
2009-01-06 15:59:09 -08:00