netdev-dpdk: clean up mbuf initialization
authorMark Kavanagh <mark.b.kavanagh@intel.com>
Fri, 19 Feb 2016 11:25:11 +0000 (11:25 +0000)
committerDaniele Di Proietto <diproiettod@vmware.com>
Sun, 28 Feb 2016 19:19:37 +0000 (11:19 -0800)
commit4be4d22c33f67c2154d4252746970ef1032c58a6
tree37ceae32a09cae69d75bdf0640979f3a3766a7c7
parent7ae1f322d7794dc5c0528ef1a01154cbc58684d0
netdev-dpdk: clean up mbuf initialization

Current mbuf initialization relies on magic numbers and does not
accomodate mbufs of different sizes.

Resolve this issue by ensuring that mbufs are always aligned to a 1k
boundary (a typical DPDK NIC Rx buffer alignment).

Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c