summaryrefslogtreecommitdiffstats
path: root/drivers/net/via-velocity.h
diff options
context:
space:
mode:
authorSimon Kagstrom <simon.kagstrom@netinsight.net>2009-11-25 23:10:12 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-27 00:51:10 +0100
commit6dfc4b95b29d89dbdb45de04b1b1ff493ec8016d (patch)
tree3dd3b5bf678d066db0fd28368dc38d423d44f483 /drivers/net/via-velocity.h
parentvia-velocity: Correct 64-byte alignment for rx buffers (diff)
downloadlinux-6dfc4b95b29d89dbdb45de04b1b1ff493ec8016d.tar.xz
linux-6dfc4b95b29d89dbdb45de04b1b1ff493ec8016d.zip
via-velocity: Add ethtool interrupt coalescing support
(Partially from the upstream VIA driver). Tweaking the number of frames-per-interrupt and timer-until-interrupt can reduce the amount of CPU work quite a lot. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/via-velocity.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h
index ce894ffa7c91..499da64773ee 100644
--- a/drivers/net/via-velocity.h
+++ b/drivers/net/via-velocity.h
@@ -1005,7 +1005,8 @@ struct mac_regs {
volatile __le32 RDBaseLo; /* 0x38 */
volatile __le16 RDIdx; /* 0x3C */
- volatile __le16 reserved_3E;
+ volatile u8 TQETMR; /* 0x3E, VT3216 and above only */
+ volatile u8 RQETMR; /* 0x3F, VT3216 and above only */
volatile __le32 TDBaseLo[4]; /* 0x40 */
@@ -1491,6 +1492,10 @@ struct velocity_opt {
int rx_bandwidth_hi;
int rx_bandwidth_lo;
int rx_bandwidth_en;
+ int rxqueue_timer;
+ int txqueue_timer;
+ int tx_intsup;
+ int rx_intsup;
u32 flags;
};