OSDN Git Service

enic: add wq clean up budget
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Thu, 21 Dec 2017 16:12:28 +0000 (08:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2017 18:10:07 +0000 (13:10 -0500)
commit18feb87105c3c16dc01e6981a6aafb175679b997
tree6c79c206a17cd37e6ceb048edc2c119076ab461e
parent66364bdf3a7e0470e84590d48fc11d902eca7fa9
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>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c