[PATCH] intel ixp2000 network driver
authorLennert Buytenhek <buytenh@wantstofly.org>
Fri, 11 Nov 2005 17:23:13 +0000 (18:23 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 18 Nov 2005 18:32:22 +0000 (13:32 -0500)
commit15d014d13149aedd76cbff1b5c3bbfe839391457
tree748af38a44021cf286016b179e58190b685c1630
parent7f7f53168dbee6d6a462acea666fddd18aad4f08
[PATCH] intel ixp2000 network driver

The way the hardware and firmware work is that there is one shared RX
queue and IRQ for a number of different network interfaces.  Due to this,
we would like to process received packets for every interface in the same
NAPI poll handler, so we need a pseudo-device to schedule polling on.

What the driver currently does is that it always schedules polling for
the first network interface in the list, and processes packets for every
interface in the poll handler for that first interface -- however, this
scheme breaks down if the first network interface happens to not be up,
since netif_rx_schedule_prep() checks netif_running().

sky2 apparently has the same issue, and Stephen Hemminger suggested a
way to work around this: create a variant of netif_rx_schedule_prep()
that does not check netif_running().  I implemented this locally and
called it netif_rx_schedule_prep_notup(), and it seems to work well,
but it's something that probably not everyone would be happy with.

The ixp2000 is an ARM CPU with a high-speed network interface in the
CPU itself (full duplex 4Gb/s or 10Gb/s depending on the IXP model.)
The CPU package also contains 8 or 16 (again depending on the IXP
model) 'microengines', which are somewhat primitive but very fast
and efficient processor cores which can be used to offload various
things from the main CPU.

This driver makes the high-speed network interface in the CPU visible
and usable as a regular linux network device.  Currently, it only
supports the Radisys ENP2611 IXP board, but adding support for other
board types should be fairly easy.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
18 files changed:
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ixp2000/Kconfig [new file with mode: 0644]
drivers/net/ixp2000/Makefile [new file with mode: 0644]
drivers/net/ixp2000/caleb.c [new file with mode: 0644]
drivers/net/ixp2000/caleb.h [new file with mode: 0644]
drivers/net/ixp2000/enp2611.c [new file with mode: 0644]
drivers/net/ixp2000/ixp2400-msf.c [new file with mode: 0644]
drivers/net/ixp2000/ixp2400-msf.h [new file with mode: 0644]
drivers/net/ixp2000/ixp2400_rx.uc [new file with mode: 0644]
drivers/net/ixp2000/ixp2400_rx.ucode [new file with mode: 0644]
drivers/net/ixp2000/ixp2400_tx.uc [new file with mode: 0644]
drivers/net/ixp2000/ixp2400_tx.ucode [new file with mode: 0644]
drivers/net/ixp2000/ixpdev.c [new file with mode: 0644]
drivers/net/ixp2000/ixpdev.h [new file with mode: 0644]
drivers/net/ixp2000/ixpdev_priv.h [new file with mode: 0644]
drivers/net/ixp2000/pm3386.c [new file with mode: 0644]
drivers/net/ixp2000/pm3386.h [new file with mode: 0644]