From 81d2cade1c80cc50f95eae703375a3fb5fcf5bf4 Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Wed, 3 Jun 2020 05:48:42 +0000 Subject: [PATCH] netmap: vtnet: remove leftover memory barriers MFC after: 1 week --- sys/dev/netmap/if_vtnet_netmap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/netmap/if_vtnet_netmap.h b/sys/dev/netmap/if_vtnet_netmap.h index 4e01c663ef6b..97a62efe9912 100644 --- a/sys/dev/netmap/if_vtnet_netmap.h +++ b/sys/dev/netmap/if_vtnet_netmap.h @@ -129,7 +129,6 @@ vtnet_netmap_txsync(struct netmap_kring *kring, int flags) /* * First part: process new packets to send. */ - rmb(); nm_i = kring->nr_hwcur; if (nm_i != head) { /* we have new packets to send */ @@ -302,7 +301,6 @@ vtnet_netmap_rxsync(struct netmap_kring *kring, int flags) struct vtnet_rxq *rxq = &sc->vtnet_rxqs[ring_nr]; struct virtqueue *vq = rxq->vtnrx_vq; - rmb(); /* * First part: import newly received packets. * Only accept our own buffers (matching the token). We should only get