aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.h
diff options
context:
space:
mode:
authorraghavendra.koushik@neterion.com <raghavendra.koushik@neterion.com>2005-08-03 15:29:20 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-11 00:10:44 -0400
commit7ba013ac029513eb4b70cfcd4b86e37c5f16c483 (patch)
tree67eb8b6d9e313f957aa228dab8cd62c1d1cea0cf /drivers/net/s2io.h
parent5e25b9ddb6683fe225a2266b53d73c57381a0c18 (diff)
[PATCH] S2io: Software fixes
Hi, Below patch includes fixes for few purely software bugs identified since last release. 1. Keep track and display(as part of ethtool command output) the no. of single-bit and double-bit ECC errors. 2. Handle race condition between intr handler and "interface down" routine. 3. Initial link state setting modified so that the link state displayed after "interface Up" is correct. 4. Fix for "Incorrect Tx packet count when TSO is enabled". 5. Disable periodic DMA of statistics and schedule one-shot DMA only when required. 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 92db59a0fb11..69dd0e51dda0 100644
--- a/drivers/net/s2io.h
+++ b/drivers/net/s2io.h
@@ -195,6 +195,9 @@ typedef struct stat_block {
195 u32 rxd_rd_cnt; 195 u32 rxd_rd_cnt;
196 u32 rxf_wr_cnt; 196 u32 rxf_wr_cnt;
197 u32 txf_rd_cnt; 197 u32 txf_rd_cnt;
198
199/* Software statistics maintained by driver */
200 swStat_t sw_stat;
198} StatInfo_t; 201} StatInfo_t;
199 202
200/* 203/*
@@ -678,6 +681,8 @@ struct s2io_nic {
678#define CARD_UP 2 681#define CARD_UP 2
679 atomic_t card_state; 682 atomic_t card_state;
680 volatile unsigned long link_state; 683 volatile unsigned long link_state;
684 spinlock_t rx_lock;
685 atomic_t isr_cnt;
681}; 686};
682 687
683#define RESET_ERROR 1; 688#define RESET_ERROR 1;