]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
netxen: fix byte-swapping in tx and rx
authorDhananjay Phadke <dhananjay@netxen.com>
Mon, 31 Dec 2007 18:08:57 +0000 (10:08 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 12 Jan 2008 22:35:38 +0000 (17:35 -0500)
commit5dc162682d4901025a02b7045f3112d569b4bab9
tree410daa76d45f3f7aee13eb0750b890a9ba8ad49f
parent53a01e00f8c78bc5875e09aca7749ea54bb09798
netxen: fix byte-swapping in tx and rx

Here's the reworked patch.

This cleans up some unnecessary byte-swapping while setting up tx and
interpreting rx desc. The 64 bit rx status data should be converted
to host endian format only once and the macros just need to extract
bitfields.

This saves a spate of interrupts on pseries blades caused by buggy
(non) processing rx status ring.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/netxen/netxen_nic.h
drivers/net/netxen/netxen_nic_init.c
drivers/net/netxen/netxen_nic_main.c