netdev-dpdk: Remove alloc from packet recv.
authorPravin Shelar <pshelar@nicira.com>
Mon, 31 Mar 2014 20:17:24 +0000 (13:17 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 30 Mar 2014 13:26:11 +0000 (06:26 -0700)
commitb3cd9f9d6a35c0e9044a9ebbd4435dc5426da099
tree34d4174d36d20693eab5b3fe35aaf2527703b5b4
parent1005dd9a166d697961e7ae79ef51beba4233fce2
netdev-dpdk: Remove alloc from packet recv.

On DPDK packet recv, ovs is given pointer to mbuf which has
information about a packet, for example pointer to data and size.
By moving mbuf to ofpbuf we can let dpdk allocate ofpbuf and
pass that to ovs for processing the packet.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/netdev-dpdk.c
lib/ofpbuf.c
lib/ofpbuf.h