]> asedeno.scripts.mit.edu Git - linux.git/commit
sunvnet: add memory barrier before check for tx enable
authorShannon Nelson <shannon.nelson@oracle.com>
Mon, 13 Feb 2017 18:57:00 +0000 (10:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 18:04:09 +0000 (13:04 -0500)
commitfd263fb6e718c5bdf35cbc1de4f781c71794d2a4
tree8569adf9d2f8d2ebc2db0fb5cd109127ec08d129
parentf2f3e210bffe5c8f8b30d0b0c7b0f733ff5db334
sunvnet: add memory barrier before check for tx enable

In order to allow the underlying LDC and outstanding memory operations
to potentially catch up with the driver's Tx requests, add a memory
barrier before checking again for available tx descriptors.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet_common.c