summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cisco/enic/enic.h
diff options
context:
space:
mode:
authorGovindarajulu Varadarajan <gvaradar@cisco.com>2017-12-21 08:12:28 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-26 13:10:07 -0500
commit18feb87105c3c16dc01e6981a6aafb175679b997 (patch)
tree6c79c206a17cd37e6ceb048edc2c119076ab461e /drivers/net/ethernet/cisco/enic/enic.h
parent66364bdf3a7e0470e84590d48fc11d902eca7fa9 (diff)
downloadop-kernel-dev-18feb87105c3c16dc01e6981a6aafb175679b997.zip
op-kernel-dev-18feb87105c3c16dc01e6981a6aafb175679b997.tar.gz
enic: add wq clean up budget
In case of tx clean up, we set '-1' as budget. This means clean up until wq is empty or till (1 << 32) pkts are cleaned. Under heavy load this will run for long time and cause "watchdog: BUG: soft lockup - CPU#25 stuck for 21s!" warning. This patch sets wq clean up budget to 256. Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/enic.h')
-rw-r--r--drivers/net/ethernet/cisco/enic/enic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h
index 6a95270..9b218f0 100644
--- a/drivers/net/ethernet/cisco/enic/enic.h
+++ b/drivers/net/ethernet/cisco/enic/enic.h
@@ -43,6 +43,8 @@
#define ENIC_CQ_MAX (ENIC_WQ_MAX + ENIC_RQ_MAX)
#define ENIC_INTR_MAX (ENIC_CQ_MAX + 2)
+#define ENIC_WQ_NAPI_BUDGET 256
+
#define ENIC_AIC_LARGE_PKT_DIFF 3
struct enic_msix_entry {
OpenPOWER on IntegriCloud