aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-07-21 15:36:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-23 21:00:59 -0400
commit5be93b9a865344cf69958777c8d7c6f758cba416 (patch)
tree77c85b7b47d5c9e136666927cef2f6d21280ae60 /drivers/net/benet/be.h
parent2eee40c7f7c3734b28456169b2945e07d5ac0e2d (diff)
be2net: Add GRO support to the be2net driver. LRO is not supported anymore.
This patch removes support for INET_LRO and switches over to GRO. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r--drivers/net/benet/be.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index 5b4bf3d2cdc2..41cddbedbf2b 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -28,11 +28,10 @@
28#include <linux/if_vlan.h> 28#include <linux/if_vlan.h>
29#include <linux/workqueue.h> 29#include <linux/workqueue.h>
30#include <linux/interrupt.h> 30#include <linux/interrupt.h>
31#include <linux/inet_lro.h>
32 31
33#include "be_hw.h" 32#include "be_hw.h"
34 33
35#define DRV_VER "2.0.348" 34#define DRV_VER "2.0.400"
36#define DRV_NAME "be2net" 35#define DRV_NAME "be2net"
37#define BE_NAME "ServerEngines BladeEngine2 10Gbps NIC" 36#define BE_NAME "ServerEngines BladeEngine2 10Gbps NIC"
38#define OC_NAME "Emulex OneConnect 10Gbps NIC" 37#define OC_NAME "Emulex OneConnect 10Gbps NIC"
@@ -72,9 +71,6 @@ static inline char *nic_name(struct pci_dev *pdev)
72#define MAX_RX_POST BE_NAPI_WEIGHT /* Frags posted at a time */ 71#define MAX_RX_POST BE_NAPI_WEIGHT /* Frags posted at a time */
73#define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST) 72#define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST)
74 73
75#define BE_MAX_LRO_DESCRIPTORS 16
76#define BE_MAX_FRAGS_PER_FRAME (min((u32) 16, (u32) MAX_SKB_FRAGS))
77
78struct be_dma_mem { 74struct be_dma_mem {
79 void *va; 75 void *va;
80 dma_addr_t dma; 76 dma_addr_t dma;
@@ -189,8 +185,6 @@ struct be_drvr_stats {
189 u32 be_polls; /* number of times NAPI called poll function */ 185 u32 be_polls; /* number of times NAPI called poll function */
190 u32 be_rx_events; /* number of ucast rx completion events */ 186 u32 be_rx_events; /* number of ucast rx completion events */
191 u32 be_rx_compl; /* number of rx completion entries processed */ 187 u32 be_rx_compl; /* number of rx completion entries processed */
192 u32 be_lro_hgram_data[8]; /* histogram of LRO data packets */
193 u32 be_lro_hgram_ack[8]; /* histogram of LRO ACKs */
194 ulong be_rx_jiffies; 188 ulong be_rx_jiffies;
195 u64 be_rx_bytes; 189 u64 be_rx_bytes;
196 u64 be_rx_bytes_prev; 190 u64 be_rx_bytes_prev;
@@ -233,8 +227,6 @@ struct be_rx_obj {
233 struct be_queue_info q; 227 struct be_queue_info q;
234 struct be_queue_info cq; 228 struct be_queue_info cq;
235 struct be_rx_page_info page_info_tbl[RX_Q_LEN]; 229 struct be_rx_page_info page_info_tbl[RX_Q_LEN];
236 struct net_lro_mgr lro_mgr;
237 struct net_lro_desc lro_desc[BE_MAX_LRO_DESCRIPTORS];
238}; 230};
239 231
240#define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */ 232#define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */
@@ -271,7 +263,6 @@ struct be_adapter {
271 263
272 /* Ethtool knobs and info */ 264 /* Ethtool knobs and info */
273 bool rx_csum; /* BE card must perform rx-checksumming */ 265 bool rx_csum; /* BE card must perform rx-checksumming */
274 u32 max_rx_coal;
275 char fw_ver[FW_VER_LEN]; 266 char fw_ver[FW_VER_LEN];
276 u32 if_handle; /* Used to configure filtering */ 267 u32 if_handle; /* Used to configure filtering */
277 u32 pmac_id; /* MAC addr handle used by BE card */ 268 u32 pmac_id; /* MAC addr handle used by BE card */