freebsd-dev/sys/dev/virtio/network
Vincenzo Maffione ef6fdb3312 if_vtnet: let vtnet_rx_vq_intr() and vtnet_rxq_tq_intr() share code
Since the two functions are similar, introduce a common function
(vtnet_rx_vq_process()) to share common code.
This also improves locking, by ensuring vrxs_rescheduled is accessed
under the RXQ lock, and taskqueue_enqueue() is not called under the
lock (therefore avoiding a spurious duplicate lock warning).

Reported by:	jrtc27
MFC after:	2 weeks
2020-06-15 19:46:34 +00:00
..
if_vtnet.c if_vtnet: let vtnet_rx_vq_intr() and vtnet_rxq_tq_intr() share code 2020-06-15 19:46:34 +00:00
if_vtnetvar.h netmap: vtnet: fix races in vtnet_netmap_reg() 2020-06-14 20:47:31 +00:00
virtio_net.h