diff options
author | wenxiong@linux.vnet.ibm.com <wenxiong@linux.vnet.ibm.com> | 2014-06-03 14:14:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-03 18:37:38 -0700 |
commit | 9aaae044abe95de182d09004cc3fa181bf22e6e0 (patch) | |
tree | 121c602874ce74c1b8143983cbc2d4aaa08f4483 /net/core | |
parent | 0c0e63410a393aae4b615849625f539db775d586 (diff) | |
download | linux-9aaae044abe95de182d09004cc3fa181bf22e6e0.tar.gz linux-9aaae044abe95de182d09004cc3fa181bf22e6e0.tar.bz2 linux-9aaae044abe95de182d09004cc3fa181bf22e6e0.zip |
bnx2x: Fix kernel crash and data miscompare after EEH recovery
A rmb() is required to ensure that the CQE is not read before it
is written by the adapter DMA. PCI ordering rules will make sure
the other fields are written before the marker at the end of struct
eth_fast_path_rx_cqe but without rmb() a weakly ordered processor can
process stale data.
Without the barrier we have observed various crashes including
bnx2x_tpa_start being called on queues not stopped (resulting in message
start of bin not in stop) and NULL pointer exceptions from bnx2x_rx_int.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions