aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vnic
diff options
context:
space:
mode:
authorZbigniew Bodek <zbb@FreeBSD.org>2016-02-25 14:28:10 +0000
committerZbigniew Bodek <zbb@FreeBSD.org>2016-02-25 14:28:10 +0000
commit3bdcfead197628266bbc7ca022d2f91d35e27d31 (patch)
treefc58a3ad082f32ab498acca4ac74a384f24d01b2 /sys/dev/vnic
parent3ad422a9d35eec506696513ee8061c39cbb381f5 (diff)
downloadsrc-3bdcfead197628266bbc7ca022d2f91d35e27d31.tar.gz
src-3bdcfead197628266bbc7ca022d2f91d35e27d31.zip
Enable CQ count threshold interrupt on VNIC Pass2.0
On Pass2.0 can trigger interrupt on both timer and CQ count. Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5423
Notes
Notes: svn path=/head/; revision=296038
Diffstat (limited to 'sys/dev/vnic')
-rw-r--r--sys/dev/vnic/nicvf_queues.c2
-rw-r--r--sys/dev/vnic/nicvf_queues.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnic/nicvf_queues.c b/sys/dev/vnic/nicvf_queues.c
index a2dd78c45768..6e85be8cad5f 100644
--- a/sys/dev/vnic/nicvf_queues.c
+++ b/sys/dev/vnic/nicvf_queues.c
@@ -940,7 +940,7 @@ nicvf_init_cmp_queue(struct nicvf *nic, struct cmp_queue *cq, int q_len,
}
cq->desc = cq->dmem.base;
- cq->thresh = CMP_QUEUE_CQE_THRESH;
+ cq->thresh = pass1_silicon(nic->dev) ? 0 : CMP_QUEUE_CQE_THRESH;
cq->nic = nic;
cq->idx = qidx;
nic->cq_coalesce_usecs = (CMP_QUEUE_TIMER_THRESH * 0.05) - 1;
diff --git a/sys/dev/vnic/nicvf_queues.h b/sys/dev/vnic/nicvf_queues.h
index 010dc2ef2470..09dc447b552f 100644
--- a/sys/dev/vnic/nicvf_queues.h
+++ b/sys/dev/vnic/nicvf_queues.h
@@ -96,7 +96,7 @@
*/
#define CMP_QSIZE CMP_QUEUE_SIZE2
#define CMP_QUEUE_LEN (1UL << (CMP_QSIZE + 10))
-#define CMP_QUEUE_CQE_THRESH 0
+#define CMP_QUEUE_CQE_THRESH 32
#define CMP_QUEUE_TIMER_THRESH 220 /* 10usec */
#define RBDR_SIZE RBDR_SIZE0