diff options
author | Thomas Falcon <tlfalcon@linux.ibm.com> | 2020-12-01 09:52:10 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-12-01 10:09:04 -0800 |
commit | b71ec952234610b4f90ef17a2fdcb124d5320070 (patch) | |
tree | fa2ca8f1ae8fc7d8b776f10a5a7e49b877c2487e /net/batman-adv/bat_v.c | |
parent | 237f977ab920490502f5fe39af4390f26db2cd40 (diff) |
ibmvnic: Ensure that SCRQ entry reads are correctly ordered
Ensure that received Subordinate Command-Response Queue (SCRQ)
entries are properly read in order by the driver. These queues
are used in the ibmvnic device to process RX buffer and TX completion
descriptors. dma_rmb barriers have been added after checking for a
pending descriptor to ensure the correct descriptor entry is checked
and after reading the SCRQ descriptor to ensure the entire
descriptor is read before processing.
Fixes: 032c5e82847a ("Driver for IBM System i/p VNIC protocol")
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/bat_v.c')
0 files changed, 0 insertions, 0 deletions