|
|
47585c |
From caae91b5ef27124caf9adc1b46b40a3491f49bee Mon Sep 17 00:00:00 2001
|
|
|
47585c |
From: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
47585c |
Date: Wed, 24 Oct 2018 07:22:05 -0400
|
|
|
47585c |
Subject: [PATCH] iscsiuio: Do not flush tx queue on each uio interrupt.
|
|
|
47585c |
|
|
|
47585c |
Unlike bnx2x, qedi start_xmit netlink provide us guarantee
|
|
|
47585c |
of transmitting LL2 packet, so there is no need to call clear_tx_intr for
|
|
|
47585c |
each LL2 packet. This help us in reducing iscsiuio lock contention.
|
|
|
47585c |
|
|
|
47585c |
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
47585c |
---
|
|
|
47585c |
iscsiuio/src/unix/nic.c | 9 ++++++---
|
|
|
47585c |
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
|
47585c |
|
|
|
47585c |
diff --git a/iscsiuio/src/unix/nic.c b/iscsiuio/src/unix/nic.c
|
|
|
47585c |
index dfc2ad0a7a7b..29c4332a3162 100644
|
|
|
47585c |
--- a/iscsiuio/src/unix/nic.c
|
|
|
47585c |
+++ b/iscsiuio/src/unix/nic.c
|
|
|
47585c |
@@ -799,9 +799,12 @@ int nic_process_intr(nic_t *nic, int discard_check)
|
|
|
47585c |
|
|
|
47585c |
nic->intr_count = count;
|
|
|
47585c |
|
|
|
47585c |
- LOG_DEBUG(PFX "%s: host:%d - calling clear_tx_intr from process_intr",
|
|
|
47585c |
- nic->log_name, nic->host_no);
|
|
|
47585c |
- (*nic->ops->clear_tx_intr) (nic);
|
|
|
47585c |
+ if (strcmp(nic->ops->description, "qedi")) {
|
|
|
47585c |
+ LOG_DEBUG(PFX "%s: host:%d - calling clear_tx_intr from process_intr",
|
|
|
47585c |
+ nic->log_name, nic->host_no);
|
|
|
47585c |
+ (*nic->ops->clear_tx_intr) (nic);
|
|
|
47585c |
+ }
|
|
|
47585c |
+
|
|
|
47585c |
ret = 1;
|
|
|
47585c |
}
|
|
|
47585c |
pthread_mutex_unlock(&nic->nic_mutex);
|
|
|
47585c |
--
|
|
|
47585c |
2.17.2
|
|
|
47585c |
|