]> 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)
commit27e592b159af2b4ca67cbbc5e69905a9deadd825
tree9e7fedc4931346c28f3eed59b9070cdc36a9fca7
parent0d409220961c7a26410162266768ec454ae85fb1
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