diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-11-25 17:10:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-26 18:51:10 -0500 |
commit | 6dfc4b95b29d89dbdb45de04b1b1ff493ec8016d (patch) | |
tree | 3dd3b5bf678d066db0fd28368dc38d423d44f483 /drivers/net/via-velocity.h | |
parent | da95b2d422b6eb2b76789bbdbfafb7e07c493e7a (diff) |
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 'drivers/net/via-velocity.h')
-rw-r--r-- | drivers/net/via-velocity.h | 7 |
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 { | |||
1005 | 1005 | ||
1006 | volatile __le32 RDBaseLo; /* 0x38 */ | 1006 | volatile __le32 RDBaseLo; /* 0x38 */ |
1007 | volatile __le16 RDIdx; /* 0x3C */ | 1007 | volatile __le16 RDIdx; /* 0x3C */ |
1008 | volatile __le16 reserved_3E; | 1008 | volatile u8 TQETMR; /* 0x3E, VT3216 and above only */ |
1009 | volatile u8 RQETMR; /* 0x3F, VT3216 and above only */ | ||
1009 | 1010 | ||
1010 | volatile __le32 TDBaseLo[4]; /* 0x40 */ | 1011 | volatile __le32 TDBaseLo[4]; /* 0x40 */ |
1011 | 1012 | ||
@@ -1491,6 +1492,10 @@ struct velocity_opt { | |||
1491 | int rx_bandwidth_hi; | 1492 | int rx_bandwidth_hi; |
1492 | int rx_bandwidth_lo; | 1493 | int rx_bandwidth_lo; |
1493 | int rx_bandwidth_en; | 1494 | int rx_bandwidth_en; |
1495 | int rxqueue_timer; | ||
1496 | int txqueue_timer; | ||
1497 | int tx_intsup; | ||
1498 | int rx_intsup; | ||
1494 | u32 flags; | 1499 | u32 flags; |
1495 | }; | 1500 | }; |
1496 | 1501 | ||