if_vtnet - Add polling support.
authorImre Vadász <imre@vdsz.com>
Thu, 29 Mar 2018 21:34:20 +0000 (23:34 +0200)
committerImre Vadász <imre@vdsz.com>
Fri, 30 Mar 2018 11:10:15 +0000 (13:10 +0200)
commit34c7d7ddfd3916373730d51801c1e2358bbcde07
treeb18d548edd75c32a7ba16d5df443a764564ef3c3
parent4bf21f5c5175bb629fdf4c2997e182b8c3f1eb33
if_vtnet - Add polling support.

* We need to tear down the interrupts, to reliably stop them from firing,
  when enabling polling. So when disabling polling, we need to hope that
  we can get all interrupts set up again, as before.

* When polling, handle the rx and tx virtqueues on the same cpu.
sys/dev/virtual/virtio/net/if_vtnet.c