kernel/vtnet: Replace a kmalloc by contigmalloc.
authorImre Vadasz <imre@vdsz.com>
Sat, 26 Apr 2014 06:36:33 +0000 (08:36 +0200)
committerSascha Wildner <saw@online.de>
Sat, 26 Apr 2014 07:32:54 +0000 (09:32 +0200)
commitcd7f6b8572c4043cf8f1c50ea157565f6b50562c
treeaff6dffbba1574f35adc3a5b80958db60de7b368
parent53373e4541cacd8f7392246b1a58932e94bd63f1
kernel/vtnet: Replace a kmalloc by contigmalloc.

* To get physically contiguous memory, we have to use contigmalloc instead
  of kmalloc.

* Use a 2 byte alignment to make sure that a 2 byte local variable is
  stored in physically contiguous memory.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2666>
sys/dev/virtual/virtio/net/if_vtnet.c