#if defined(__i386__) || defined(__x86_64__) #define barrier() asm volatile("" ::: "memory") #define virt_mb() __sync_synchronize() #define virt_rmb() barrier() #define virt_wmb() barrier() /* Atomic store should be enough, but gcc generates worse code in that case. */ #define virt_store_mb(var, value) do { \ typeof(var) virt_store_mb_value = (value); \ __atomic_exchange(&(var), &virt_store_mb_value, &virt_store_mb_value, \ __ATOMIC_SEQ_CST); \ barrier(); \ } while (0); /* Weak barriers should be used. If not - it's a bug */ # define mb() abort() # define rmb() abort() # define wmb() abort() #else #error Please fill in barrier macros #endif td class='logo' rowspan='2'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/net/dst_ops.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-07 16:29:30 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-07 16:29:30 -0500
commit3efa70d78f218e4c9276b0bac0545e5184c1c47b (patch)
treef4abe2f05e173023d2a262afd4aebb1e89fe6985 /include/net/dst_ops.h
parent76e0e70e6452b971a69cc9794ff4a6715c11f7f2 (diff)
parent926af6273fc683cd98cd0ce7bf0d04a02eed6742 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The conflict was an interaction between a bug fix in the netvsc driver in 'net' and an optimization of the RX path in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dst_ops.h')