[PATCH] S2io: Performance improvements
Hi, This patch relates to mostly performance related changes. 1. Fixed incorrect computation of PANIC level in rx_buffer_level(). 2. Removed unnecessary PIOs(read/write of tx_traffic_int and rx_traffic_int) from interrupt handler and removed read of general_int_status register from xmit routine. 3. Enable two-buffer mode(for Rx path) automatically for SGI systems. This improves Rx performance dramatically on SGI systems. Signed-off-by: Ravinandan Arakali <ravinandan.arakali@neterion.com> Signed-off-by: Raghavendra Koushik <raghavendra.koushik@neterion.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:

committed by
Jeff Garzik

parent
1ddc50d40a
commit
fe11363832
@@ -13,6 +13,11 @@
|
||||
#ifndef _S2IO_H
|
||||
#define _S2IO_H
|
||||
|
||||
/* Enable 2 buffer mode by default for SGI system */
|
||||
#ifdef CONFIG_IA64_SGI_SN2
|
||||
#define CONFIG_2BUFF_MODE
|
||||
#endif
|
||||
|
||||
#define TBD 0
|
||||
#define BIT(loc) (0x8000000000000000ULL >> (loc))
|
||||
#define vBIT(val, loc, sz) (((u64)val) << (64-loc-sz))
|
||||
|
Reference in New Issue
Block a user