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-08 10:50:20 -08:00
2008-12-08 01:14:16 -08:00
2009-01-07 17:23:17 -08:00
2009-01-06 11:07:54 -08:00
2009-01-04 17:29:21 -08:00
2009-01-11 00:17:22 -08:00
2008-12-10 15:18:31 -08:00
2009-01-06 16:45:26 -08:00
2008-11-03 18:21:05 -08:00
2009-01-06 10:44:34 -08:00
2008-11-25 17:59:00 -08:00
2009-01-07 17:24:34 -08:00
2009-01-08 08:31:15 -08:00
2009-01-11 00:06:33 -08:00
2008-11-03 18:21:05 -08:00
2008-11-19 18:49:57 -08:00
2009-01-04 15:14:41 -05:00