diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2006-08-16 16:47:25 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-08-16 16:47:25 -0400 |
commit | 3ae84d9269592a1284892c93597a604a894f1102 (patch) | |
tree | e6bb8f5adf7b944ff21b25b0a4586529efceeefb /drivers/net/ixgb/ixgb_main.c | |
parent | 0fe198a5e10229b269624a18bbd390001a8d3476 (diff) |
ixgb: fix cache miss due to miscalculation
Reduce writeback threshold by 1. We were instructing the hardware to
wait until the 17th descriptor which went over the cache line limit.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke.jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/ixgb/ixgb_main.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index 7bbd447289b5..770eef28e735 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -140,12 +140,12 @@ module_param(debug, int, 0); | |||
140 | MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); | 140 | MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); |
141 | 141 | ||
142 | /* some defines for controlling descriptor fetches in h/w */ | 142 | /* some defines for controlling descriptor fetches in h/w */ |
143 | #define RXDCTL_WTHRESH_DEFAULT 16 /* chip writes back at this many or RXT0 */ | 143 | #define RXDCTL_WTHRESH_DEFAULT 15 /* chip writes back at this many or RXT0 */ |
144 | #define RXDCTL_PTHRESH_DEFAULT 0 /* chip considers prefech below | 144 | #define RXDCTL_PTHRESH_DEFAULT 0 /* chip considers prefech below |
145 | * this */ | 145 | * this */ |
146 | #define RXDCTL_HTHRESH_DEFAULT 0 /* chip will only prefetch if tail | 146 | #define RXDCTL_HTHRESH_DEFAULT 0 /* chip will only prefetch if tail |
147 | * is pushed this many descriptors | 147 | * is pushed this many descriptors |
148 | * from head */ | 148 | * from head */ |
149 | 149 | ||
150 | /** | 150 | /** |
151 | * ixgb_init_module - Driver Registration Routine | 151 | * ixgb_init_module - Driver Registration Routine |