diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-11-25 17:10:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-26 18:51:15 -0500 |
commit | dfff7144b14bab3d8baaeba8926fab371fa4a01e (patch) | |
tree | d876204977e50bd7091f334614bdf0b2c2f7982b /drivers/net/via-velocity.h | |
parent | 6dfc4b95b29d89dbdb45de04b1b1ff493ec8016d (diff) |
via-velocity: Implement NAPI support
This patch adds NAPI support for VIA velocity. The new velocity_poll
function also pairs tx/rx handling twice which improves perforamance on
some workloads (e.g., netperf UDP_STREAM) significantly (that part is
from the VIA driver).
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index 499da64773ee..d37a30329312 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #define VELOCITY_VERSION "1.14" | 32 | #define VELOCITY_VERSION "1.14" |
33 | 33 | ||
34 | #define VELOCITY_IO_SIZE 256 | 34 | #define VELOCITY_IO_SIZE 256 |
35 | #define VELOCITY_NAPI_WEIGHT 64 | ||
35 | 36 | ||
36 | #define PKT_BUF_SZ 1540 | 37 | #define PKT_BUF_SZ 1540 |
37 | 38 | ||
@@ -1562,6 +1563,8 @@ struct velocity_info { | |||
1562 | u32 ticks; | 1563 | u32 ticks; |
1563 | 1564 | ||
1564 | u8 rev_id; | 1565 | u8 rev_id; |
1566 | |||
1567 | struct napi_struct napi; | ||
1565 | }; | 1568 | }; |
1566 | 1569 | ||
1567 | /** | 1570 | /** |