[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT PATCH 0/4] lib/uknetdev: Aligned netbufs



Provide the ability for allocating aligned netbufs that some
devices require (e.g., Xen netfront). For this purpose, the
netbuf metadata is moved to the end of an allocation instead
to the start which normally cause an unknown offset of the
packet buffer area.
Similar to lib/ukblkdev, an `ioalign` parameter is provided
so that alignment requirements of network devices for packet
buffers can be queried.

Simon Kuenzer (4):
  lib/uknetdev: netbuf: Store allocation base
  lib/uknetdev: netbuf: Metadata at the end of an allocation
  lib/uknetdev: `uk_netbuf_alloc_buf()`: Introduce alignment
  lib/uknetdev: Introduce ioalign

 lib/uknetdev/include/uk/netbuf.h      |  34 +++----
 lib/uknetdev/include/uk/netdev_core.h |   5 +-
 lib/uknetdev/netbuf.c                 | 122 +++++++++++---------------
 plat/drivers/virtio/virtio_net.c      |   3 +-
 4 files changed, 73 insertions(+), 91 deletions(-)

-- 
2.20.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.