git: a67c0fae0c70 - main - vnic: work_done here only used for debug

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 25 Oct 2022 16:57:41 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a67c0fae0c70737cea5c918cd04f63e054337c05

commit a67c0fae0c70737cea5c918cd04f63e054337c05
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-10-25 14:52:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-25 16:57:29 +0000

    vnic: work_done here only used for debug
    
    Sponsored by:           Netflix
---
 sys/dev/vnic/nicvf_queues.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys/dev/vnic/nicvf_queues.c b/sys/dev/vnic/nicvf_queues.c
index 6cb939fdcc25..d2a6f8532b37 100644
--- a/sys/dev/vnic/nicvf_queues.c
+++ b/sys/dev/vnic/nicvf_queues.c
@@ -733,7 +733,10 @@ nicvf_cq_intr_handler(struct nicvf *nic, uint8_t cq_idx)
 {
 	struct mbuf *mbuf;
 	struct ifnet *ifp;
-	int processed_cqe, work_done = 0, tx_done = 0;
+	int processed_cqe, tx_done = 0;
+#ifdef DEBUG
+	int work_done = 0;
+#endif
 	int cqe_count, cqe_head;
 	struct queue_set *qs = nic->qs;
 	struct cmp_queue *cq = &qs->cq[cq_idx];
@@ -780,7 +783,9 @@ nicvf_cq_intr_handler(struct nicvf *nic, uint8_t cq_idx)
 				 */
 				goto done;
 			}
+#ifdef DEBUG
 			work_done++;
+#endif
 			break;
 		case CQE_TYPE_SEND:
 			nicvf_snd_pkt_handler(nic, cq, (void *)cq_desc,