aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/enic.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/enic/enic.h')
-rw-r--r--drivers/net/enic/enic.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index 45e86d1e5b1b..f239aa8c6f4c 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright 2008 Cisco Systems, Inc. All rights reserved. 2 * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved.
3 * Copyright 2007 Nuova Systems, Inc. All rights reserved. 3 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
4 * 4 *
5 * This program is free software; you may redistribute it and/or modify 5 * This program is free software; you may redistribute it and/or modify
@@ -20,8 +20,6 @@
20#ifndef _ENIC_H_ 20#ifndef _ENIC_H_
21#define _ENIC_H_ 21#define _ENIC_H_
22 22
23#include <linux/inet_lro.h>
24
25#include "vnic_enet.h" 23#include "vnic_enet.h"
26#include "vnic_dev.h" 24#include "vnic_dev.h"
27#include "vnic_wq.h" 25#include "vnic_wq.h"
@@ -34,12 +32,8 @@
34 32
35#define DRV_NAME "enic" 33#define DRV_NAME "enic"
36#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver" 34#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
37#define DRV_VERSION "1.3.1.1-pp" 35#define DRV_VERSION "1.4.1.1"
38#define DRV_COPYRIGHT "Copyright 2008-2009 Cisco Systems, Inc" 36#define DRV_COPYRIGHT "Copyright 2008-2010 Cisco Systems, Inc"
39#define PFX DRV_NAME ": "
40
41#define ENIC_LRO_MAX_DESC 8
42#define ENIC_LRO_MAX_AGGR 64
43 37
44#define ENIC_BARS_MAX 6 38#define ENIC_BARS_MAX 6
45 39
@@ -116,6 +110,8 @@ struct enic {
116 spinlock_t wq_lock[ENIC_WQ_MAX]; 110 spinlock_t wq_lock[ENIC_WQ_MAX];
117 unsigned int wq_count; 111 unsigned int wq_count;
118 struct vlan_group *vlan_group; 112 struct vlan_group *vlan_group;
113 u16 loop_enable;
114 u16 loop_tag;
119 115
120 /* receive queue cache line section */ 116 /* receive queue cache line section */
121 ____cacheline_aligned struct vnic_rq rq[ENIC_RQ_MAX]; 117 ____cacheline_aligned struct vnic_rq rq[ENIC_RQ_MAX];
@@ -124,8 +120,6 @@ struct enic {
124 u64 rq_truncated_pkts; 120 u64 rq_truncated_pkts;
125 u64 rq_bad_fcs; 121 u64 rq_bad_fcs;
126 struct napi_struct napi; 122 struct napi_struct napi;
127 struct net_lro_mgr lro_mgr;
128 struct net_lro_desc lro_desc[ENIC_LRO_MAX_DESC];
129 123
130 /* interrupt resource cache line section */ 124 /* interrupt resource cache line section */
131 ____cacheline_aligned struct vnic_intr intr[ENIC_INTR_MAX]; 125 ____cacheline_aligned struct vnic_intr intr[ENIC_INTR_MAX];
@@ -137,4 +131,9 @@ struct enic {
137 unsigned int cq_count; 131 unsigned int cq_count;
138}; 132};
139 133
134static inline struct device *enic_get_dev(struct enic *enic)
135{
136 return &(enic->pdev->dev);
137}
138
140#endif /* _ENIC_H_ */ 139#endif /* _ENIC_H_ */