net/pcap: fix Tx return count in error conditions
authorDavid Marchand <david.marchand@redhat.com>
Thu, 25 Jul 2019 19:24:18 +0000 (21:24 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 25 Jul 2019 22:32:18 +0000 (00:32 +0200)
commit9be0b6bde39289cfe583a25070eba44383de7de7
tree42cedc06b0deef184dac54e23e6c89b954f34ede
parent6653d812c6d47f02ec6562a6118254299b0ffd5c
net/pcap: fix Tx return count in error conditions

When a packet cannot be transmitted, the driver is supposed to free this
packet and report it as handled.
This is to prevent the application from retrying to send the same packet
and ending up in a liveloop since the driver will never manage to send
it.

Fixes: 49a0a2ffd5db ("net/pcap: fix possible mbuf double freeing")
Fixes: 6db141c91e1f ("pcap: support jumbo frames")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c