]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix incorrect usage of memory barriers
authorNetanel Belgazal <netanel@amazon.com>
Sun, 9 Sep 2018 08:15:26 +0000 (08:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Sep 2018 14:59:56 +0000 (07:59 -0700)
commita4a502f6300f3c8dc6bfc09aa83f49bf069b98cd
tree9e7fedc4931346c28f3eed59b9070cdc36a9fca7
parent8f65850bd222cce2f8cdcf9a2846c8833147b110
net: ena: fix incorrect usage of memory barriers

Added memory barriers where they were missing to support multiple
architectures, and removed redundant ones.

As part of removing the redundant memory barriers and improving
performance, we moved to more relaxed versions of memory barriers,
as well as to the more relaxed version of writel - writel_relaxed,
while maintaining correctness.

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c
drivers/net/ethernet/amazon/ena/ena_eth_com.c
drivers/net/ethernet/amazon/ena/ena_eth_com.h
drivers/net/ethernet/amazon/ena/ena_netdev.c