]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: optimize tx handling
authordhananjay@netxen.com <dhananjay@netxen.com>
Wed, 26 Dec 2007 18:23:58 +0000 (10:23 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 12 Jan 2008 22:35:38 +0000 (17:35 -0500)
commitab0a54ee3bb967cc11bbf1d0280bc520165105f7
tree00e5edaaf2d51d406bea63afd26dc41748c193f2
parent26970164b0b9d185061f1d698fb4e2f82678fe13
netxen: optimize tx handling

netxen driver allows limited number of threads simultaneously posting
skb's in tx ring. If transmit slot is unavailable, driver calls
schedule() or loops in xmit_frame().

This patch returns TX_BUSY and lets the stack reschedule the packet if
transmit slot is unavailable. Also removes unnecessary check for tx
timeout in the driver itself, the network stack does that anyway.

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