Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 14:28:10 +0000 (UTC)
From:      Zbigniew Bodek <zbb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296038 - head/sys/dev/vnic
Message-ID:  <201602251428.u1PESAv1063711@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zbb
Date: Thu Feb 25 14:28:10 2016
New Revision: 296038
URL: https://svnweb.freebsd.org/changeset/base/296038

Log:
  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

Modified:
  head/sys/dev/vnic/nicvf_queues.c
  head/sys/dev/vnic/nicvf_queues.h

Modified: head/sys/dev/vnic/nicvf_queues.c
==============================================================================
--- head/sys/dev/vnic/nicvf_queues.c	Thu Feb 25 14:26:13 2016	(r296037)
+++ head/sys/dev/vnic/nicvf_queues.c	Thu Feb 25 14:28:10 2016	(r296038)
@@ -940,7 +940,7 @@ nicvf_init_cmp_queue(struct nicvf *nic, 
 	}
 
 	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;

Modified: head/sys/dev/vnic/nicvf_queues.h
==============================================================================
--- head/sys/dev/vnic/nicvf_queues.h	Thu Feb 25 14:26:13 2016	(r296037)
+++ head/sys/dev/vnic/nicvf_queues.h	Thu Feb 25 14:28:10 2016	(r296038)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602251428.u1PESAv1063711>