]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qlcnic: Fix mailbox completion handling in spurious interrupt
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Fri, 16 Oct 2015 05:50:36 +0000 (11:20 +0530)
committerEthan Zhao <ethan.zhao@oracle.com>
Tue, 20 Oct 2015 08:54:58 +0000 (17:54 +0900)
commite40f6160124aaafffba3e6151926a8f2b79d1013
tree15627dab5dbb86e9b8c6ca5d8090202489af3c7e
parentfde94cd65894ba23a9e5e22298d581af1a5fc072
qlcnic: Fix mailbox completion handling in spurious interrupt

Orabug: 22066190

o While the driver is in the middle of a MB completion processing
and it receives a spurious MB interrupt, it is mistaken as a good MB
completion interrupt leading to premature completion of the next MB
request. Fix the driver to guard against this by checking the current
state of MB processing and ignore the spurious interrupt.
Also added a stats counter to record this condition.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c