Skip to contentSkip to conversation

net: thunderx: Enable CQE count threshold interrupt

PATCH In review Sunil Goutham 1 participant 1 message Dec 10, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 net: thunderx: Enable CQE count threshold interrupt

From: Sunil Goutham <[email protected]>

This feature is introduced in pass-2 chip and with this CQ interrupt coalescing will work based on both timer and count.

---
 drivers/net/ethernet/cavium/thunder/nicvf_queues.c |    2 +-
 drivers/net/ethernet/cavium/thunder/nicvf_queues.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/cavium/thunder/nicvf_queues.c +1 -1
index b11fc09..d0d1b54 100644
@@ -299,7 +299,7 @@ static int nicvf_init_cmp_queue(struct nicvf *nic,
 		return err;
 
 	cq->desc = cq->dmem.base;
-	cq->thresh = CMP_QUEUE_CQE_THRESH;
+	cq->thresh = pass1_silicon(nic->pdev) ? 0 : CMP_QUEUE_CQE_THRESH;
 	nic->cq_coalesce_usecs = (CMP_QUEUE_TIMER_THRESH * 0.05) - 1;
 
 	return 0;
drivers/net/ethernet/cavium/thunder/nicvf_queues.h +1 -1
index a4f6667..c5030a7 100644
@@ -75,7 +75,7 @@
  */
 #define CMP_QSIZE		CMP_QUEUE_SIZE2
 #define CMP_QUEUE_LEN		(1ULL << (CMP_QSIZE + 10))
-#define CMP_QUEUE_CQE_THRESH	0
+#define CMP_QUEUE_CQE_THRESH	(NAPI_POLL_WEIGHT / 2)
 #define CMP_QUEUE_TIMER_THRESH	80 /* ~2usec */
 
 #define RBDR_SIZE		RBDR_SIZE0
Signature · 1 line
1.7.1