diff options
author | Mithlesh Thukral <mithlesh@linsyssoft.com> | 2009-01-30 20:19:03 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:53:11 -0700 |
commit | b62a294f97be4072171189510f34bb545364395e (patch) | |
tree | 30ab6f5136c6f6f1de588775e922dfcde0f9a35b /drivers/staging/sxg/sxg.h | |
parent | b040b07bb0009dd036326f074cbb5501cf245460 (diff) |
Staging: sxg: Add NAPI feature to Sahara SXG Driver
* Add NAPI support for SXG driver for Alacritech's 10Gbe products.
The driver will now work in NAPI mode by default.
Signed-off-by: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/sxg/sxg.h')
-rw-r--r-- | drivers/staging/sxg/sxg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/sxg/sxg.h b/drivers/staging/sxg/sxg.h index 2d969736c8f5..ae77903c4aef 100644 --- a/drivers/staging/sxg/sxg.h +++ b/drivers/staging/sxg/sxg.h @@ -48,6 +48,9 @@ #define SXG_DRV_VERSION "1.0.1" extern char sxg_driver_name[]; + +#define SXG_NETDEV_WEIGHT 64 + /* * struct sxg_stats - Probably move these to someplace where * the slicstat (sxgstat?) program can get them. @@ -524,6 +527,7 @@ struct sxgbase_driver { struct adapter_t { void * ifp; unsigned int port; + struct napi_struct napi; struct physcard *physcard; unsigned int physport; unsigned int slotnumber; @@ -701,6 +705,8 @@ struct adapter_t { #if defined(CONFIG_X86) u32 AddrUpper; /* Upper 32 bits of 64-bit register */ #endif + unsigned short max_aggregation; + unsigned short min_aggregation; /*#if SXG_FAILURE_DUMP */ /* NDIS_EVENT DumpThreadEvent; */ /* syncronize dump thread */ /* BOOLEAN DumpThreadRunning; */ /* termination flag */ |