|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [UNIKRAFT/LWIP PATCH v4 4/5] netbuf: Aligned buffers with `lwip_alloc_netbuf()`
On 06.11.20 12:48, Sharan Santhanam wrote: Hello Simon, Thanks for the work. i have a minor comment inline Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> Thanks & Regards Sharan On 10/30/20 7:31 PM, Simon Kuenzer wrote:Adds an alignment parameter to `lwip_alloc_netbuf()`. The netbuf buffer area (`m->buf`) will be aligned. Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> --- netbuf.c | 26 ++++++-------------------- netbuf.h | 2 +- uknetdev.c | 1 + 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/netbuf.c b/netbuf.c index 4878f74..97c129c 100644 --- a/netbuf.c +++ b/netbuf.c @@ -50,32 +50,20 @@ static void _netbuf_free(struct pbuf *p) }struct uk_netbuf *lwip_alloc_netbuf(struct uk_alloc *a, size_t alloc_size, Sure, no problem., I will add a comment. With this commit, we do not do an packet alignement yet, just introducing the interface. I wanted to keep this patch as simple as possible and make use of the updated interface with the following patch. Thanks, Simon
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |