if_vtnet, sync 6/x: refactor rx_- and update_vlan_filter functions.
authorImre Vadász <imre@vdsz.com>
Thu, 29 Oct 2015 21:10:53 +0000 (22:10 +0100)
committerImre Vadász <imre@vdsz.com>
Thu, 29 Oct 2015 21:32:57 +0000 (22:32 +0100)
commitbff3ad503cb8e042771d084221eac6aea24c3687
treeb0d19aa50c672a9d59342be2d0365bbbe465d8e2
parentcb2667bdd2d455a09f4080da8b61fe2e49d5cd9a
if_vtnet, sync 6/x: refactor rx_- and update_vlan_filter functions.

* Also, remove IFCAP_TSO4 and IFCAP_TSO6 #define-s, they are available
  in sys/net/if.h.

* Renames vtnet_set_vlan_filter() to vtnet_update_vlan_filter().

* Refactors vtnet_ctrl_rx_cmd(), making the usage of stack variables for
  DMA and the sglist_append() usage safer.

Taken-From: FreeBSD
sys/dev/virtual/virtio/net/if_vtnet.c