]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: vtnet: fix locking on receive
authorvmaffione <vmaffione@FreeBSD.org>
Tue, 18 Jun 2019 17:51:30 +0000 (17:51 +0000)
committervmaffione <vmaffione@FreeBSD.org>
Tue, 18 Jun 2019 17:51:30 +0000 (17:51 +0000)
commit9fc6ef71933532028c3d37937fa14a9f4e84e5a4
treee8db3a7ff33cd2a5b2c8d96b9762e8c162e6d44f
parent851a904de66065988b47918bf6518841d8eb7f3a
bhyve: vtnet: fix locking on receive

The vsc_rx_ready and the RX virtqueue is protected by the rx_mtx lock.
However, pci_vtnet_ping_rxq() (currently called only once after each
device reset) accesses those without acquiring the lock.

Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20609
usr.sbin/bhyve/pci_virtio_net.c