aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea.h
diff options
context:
space:
mode:
authorJan-Bernd Themann <ossthema@de.ibm.com>2007-03-23 12:18:53 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:02 -0400
commitacbddb591ba76bb20204fd6a407cb87d3f5f751e (patch)
tree008f1965aea9567bfbaeb9f46ab71e44662fd6d7 /drivers/net/ehea/ehea.h
parent144213d71ce8b2a1e0740dd25808143e9ace655a (diff)
ehea: removing unused functionality
This patch includes: - removal of unused fields in structs - ethtool statistics cleanup - removes unsed functionality from send path Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ehea/ehea.h')
-rw-r--r--drivers/net/ehea/ehea.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h
index f8899339baa0..1405d0b0b7e7 100644
--- a/drivers/net/ehea/ehea.h
+++ b/drivers/net/ehea/ehea.h
@@ -39,7 +39,7 @@
39#include <asm/io.h> 39#include <asm/io.h>
40 40
41#define DRV_NAME "ehea" 41#define DRV_NAME "ehea"
42#define DRV_VERSION "EHEA_0054" 42#define DRV_VERSION "EHEA_0055"
43 43
44#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ 44#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \
45 | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR) 45 | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
@@ -79,7 +79,6 @@
79#define EHEA_L_PKT_SIZE 256 /* low latency */ 79#define EHEA_L_PKT_SIZE 256 /* low latency */
80 80
81/* Send completion signaling */ 81/* Send completion signaling */
82#define EHEA_SIG_IV_LONG 1
83 82
84/* Protection Domain Identifier */ 83/* Protection Domain Identifier */
85#define EHEA_PD_ID 0xaabcdeff 84#define EHEA_PD_ID 0xaabcdeff
@@ -106,11 +105,7 @@
106#define EHEA_CACHE_LINE 128 105#define EHEA_CACHE_LINE 128
107 106
108/* Memory Regions */ 107/* Memory Regions */
109#define EHEA_MR_MAX_TX_PAGES 20
110#define EHEA_MR_TX_DATA_PN 3
111#define EHEA_MR_ACC_CTRL 0x00800000 108#define EHEA_MR_ACC_CTRL 0x00800000
112#define EHEA_RWQES_PER_MR_RQ2 10
113#define EHEA_RWQES_PER_MR_RQ3 10
114 109
115#define EHEA_WATCH_DOG_TIMEOUT 10*HZ 110#define EHEA_WATCH_DOG_TIMEOUT 10*HZ
116 111
@@ -318,17 +313,12 @@ struct ehea_mr {
318/* 313/*
319 * Port state information 314 * Port state information
320 */ 315 */
321struct port_state { 316struct port_stats {
322 int poll_max_processed;
323 int poll_receive_errors; 317 int poll_receive_errors;
324 int ehea_poll;
325 int queue_stopped; 318 int queue_stopped;
326 int min_swqe_avail; 319 int err_tcp_cksum;
327 u64 sqc_stop_sum; 320 int err_ip_cksum;
328 int pkt_send; 321 int err_frame_crc;
329 int pkt_xmit;
330 int send_tasklet;
331 int nwqe;
332}; 322};
333 323
334#define EHEA_IRQ_NAME_SIZE 20 324#define EHEA_IRQ_NAME_SIZE 20
@@ -347,6 +337,7 @@ struct ehea_q_skb_arr {
347 * Port resources 337 * Port resources
348 */ 338 */
349struct ehea_port_res { 339struct ehea_port_res {
340 struct port_stats p_stats;
350 struct ehea_mr send_mr; /* send memory region */ 341 struct ehea_mr send_mr; /* send memory region */
351 struct ehea_mr recv_mr; /* receive memory region */ 342 struct ehea_mr recv_mr; /* receive memory region */
352 spinlock_t xmit_lock; 343 spinlock_t xmit_lock;
@@ -358,7 +349,6 @@ struct ehea_port_res {
358 struct ehea_cq *recv_cq; 349 struct ehea_cq *recv_cq;
359 struct ehea_eq *eq; 350 struct ehea_eq *eq;
360 struct net_device *d_netdev; 351 struct net_device *d_netdev;
361 spinlock_t send_lock;
362 struct ehea_q_skb_arr rq1_skba; 352 struct ehea_q_skb_arr rq1_skba;
363 struct ehea_q_skb_arr rq2_skba; 353 struct ehea_q_skb_arr rq2_skba;
364 struct ehea_q_skb_arr rq3_skba; 354 struct ehea_q_skb_arr rq3_skba;
@@ -368,11 +358,8 @@ struct ehea_port_res {
368 int swqe_refill_th; 358 int swqe_refill_th;
369 atomic_t swqe_avail; 359 atomic_t swqe_avail;
370 int swqe_ll_count; 360 int swqe_ll_count;
371 int swqe_count;
372 u32 swqe_id_counter; 361 u32 swqe_id_counter;
373 u64 tx_packets; 362 u64 tx_packets;
374 spinlock_t recv_lock;
375 struct port_state p_state;
376 u64 rx_packets; 363 u64 rx_packets;
377 u32 poll_counter; 364 u32 poll_counter;
378}; 365};