aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_qmr.h
diff options
context:
space:
mode:
authorJan-Bernd Themann <ossthema@de.ibm.com>2007-02-28 12:34:10 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:00:56 -0400
commit18604c54854549ee0ad65e27ca9cb91c96af784c (patch)
tree5392b07aaf9b1b1c9a4f7f8879e28cf4d53acb03 /drivers/net/ehea/ehea_qmr.h
parent1acf2318dd136edfbfa30f1f33b43f69f2e2ec6c (diff)
ehea: NAPI multi queue TX/RX path for SMP
This patch provides a functionality that allows parallel RX processing on multiple RX queues by using dummy netdevices. 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_qmr.h')
-rw-r--r--drivers/net/ehea/ehea_qmr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea_qmr.h b/drivers/net/ehea/ehea_qmr.h
index 1ff60983504d..99d6b70a087f 100644
--- a/drivers/net/ehea/ehea_qmr.h
+++ b/drivers/net/ehea/ehea_qmr.h
@@ -320,6 +320,11 @@ static inline struct ehea_cqe *ehea_poll_rq1(struct ehea_qp *qp, int *wqe_index)
320 return hw_qeit_get_valid(queue); 320 return hw_qeit_get_valid(queue);
321} 321}
322 322
323static inline void ehea_inc_cq(struct ehea_cq *cq)
324{
325 hw_qeit_inc(&cq->hw_queue);
326}
327
323static inline void ehea_inc_rq1(struct ehea_qp *qp) 328static inline void ehea_inc_rq1(struct ehea_qp *qp)
324{ 329{
325 hw_qeit_inc(&qp->hw_rqueue1); 330 hw_qeit_inc(&qp->hw_rqueue1);
@@ -327,7 +332,7 @@ static inline void ehea_inc_rq1(struct ehea_qp *qp)
327 332
328static inline struct ehea_cqe *ehea_poll_cq(struct ehea_cq *my_cq) 333static inline struct ehea_cqe *ehea_poll_cq(struct ehea_cq *my_cq)
329{ 334{
330 return hw_qeit_get_inc_valid(&my_cq->hw_queue); 335 return hw_qeit_get_valid(&my_cq->hw_queue);
331} 336}
332 337
333#define EHEA_CQ_REGISTER_ORIG 0 338#define EHEA_CQ_REGISTER_ORIG 0