pcap: fix Tx mbuf corruption
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 28 May 2014 14:47:02 +0000 (15:47 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Jun 2014 11:23:35 +0000 (13:23 +0200)
commit88523f27e8448fc45c531e58a53af49cce39e891
treee1b93bf11765c71f3d5688e7cbb65925c7c2e79e
parent28dbbd485fcd47738f978022927d3bd768b44256
pcap: fix Tx mbuf corruption

If pcap_sendpacket() fails, then eth_pcap_tx shouldn't silently free that
mbuf and continue.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Pablo de Lara Guarch <pablo.de.lara.guarch@intel.com>
Tested-by: Waterman Cao <waterman.cao@intel.com>
lib/librte_pmd_pcap/rte_eth_pcap.c