netmap: vtnet: remove leftover memory barriers

MFC after:	1 week
This commit is contained in:
Vincenzo Maffione 2020-06-03 05:48:42 +00:00
parent f0d8d352c0
commit 81d2cade1c

View File

@ -129,7 +129,6 @@ vtnet_netmap_txsync(struct netmap_kring *kring, int flags)
/* /*
* First part: process new packets to send. * First part: process new packets to send.
*/ */
rmb();
nm_i = kring->nr_hwcur; nm_i = kring->nr_hwcur;
if (nm_i != head) { /* we have new packets to send */ 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 vtnet_rxq *rxq = &sc->vtnet_rxqs[ring_nr];
struct virtqueue *vq = rxq->vtnrx_vq; struct virtqueue *vq = rxq->vtnrx_vq;
rmb();
/* /*
* First part: import newly received packets. * First part: import newly received packets.
* Only accept our own buffers (matching the token). We should only get * Only accept our own buffers (matching the token). We should only get