port: fix mbuf allocation in source port
authorFan Zhang <roy.fan.zhang@intel.com>
Mon, 30 Nov 2015 20:41:09 +0000 (20:41 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 00:03:13 +0000 (01:03 +0100)
commit3064c3955ba5577690ac5f088e7d9417ebcf0e29
treed2def2f5cc04e9c57db49aa79e7df818d4737369
parent3de5105468ead7ff28ceda66e303bb6464c5df2d
port: fix mbuf allocation in source port

Fixes the mbuf allocation not initialized problem. This problem will cause
the mbufs not be able to freed back to mempool by rte_pktmbuf_free().

Fixes: ef3403fb6f9a ("port: source and sink")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/rte_port_source_sink.c