git: kernel/vtnet: Replace a kmalloc by contigmalloc.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Apr 26 00:34:03 PDT 2014


commit cd7f6b8572c4043cf8f1c50ea157565f6b50562c
Author: Imre Vadasz <imre at vdsz.com>
Date:   Sat Apr 26 08:36:33 2014 +0200

    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>

Summary of changes:
 sys/dev/virtual/virtio/net/if_vtnet.c | 59 +++++++++++++++++++++--------------
 1 file changed, 35 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd7f6b8572c4043cf8f1c50ea157565f6b50562c


-- 
DragonFly BSD source repository



More information about the Commits mailing list