aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.h
diff options
context:
space:
mode:
authorraghavendra.koushik@neterion.com <raghavendra.koushik@neterion.com>2005-08-03 12:32:00 -0700
committerJeff Garzik <jgarzik@pobox.com>2005-08-11 00:10:44 -0400
commitfe113638328995b69d8797e6466b29661b1602d1 (patch)
treee9ebbbcd7ac3fce17c9f39e2cf1eca1ae209bae7 /drivers/net/s2io.h
parent1ddc50d40a19b3524d302d1d6bfd52ac7bc6b6f7 (diff)
downloadkernel_samsung_smdk4412-fe113638328995b69d8797e6466b29661b1602d1.zip
kernel_samsung_smdk4412-fe113638328995b69d8797e6466b29661b1602d1.tar.gz
kernel_samsung_smdk4412-fe113638328995b69d8797e6466b29661b1602d1.tar.bz2
[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>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r--drivers/net/s2io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h
index 69dd0e5..ce9bf6d 100644
--- a/drivers/net/s2io.h
+++ b/drivers/net/s2io.h
@@ -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))