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>
This commit is contained in:
Simon Kagstrom
2009-11-25 22:10:26 +00:00
committed by David S. Miller
parent 6dfc4b95b2
commit dfff7144b1
2 changed files with 49 additions and 35 deletions

View File

@@ -32,6 +32,7 @@
#define VELOCITY_VERSION "1.14"
#define VELOCITY_IO_SIZE 256
#define VELOCITY_NAPI_WEIGHT 64
#define PKT_BUF_SZ 1540
@@ -1562,6 +1563,8 @@ struct velocity_info {
u32 ticks;
u8 rev_id;
struct napi_struct napi;
};
/**