net/af_packet: fix packet bytes counting
authorChas Williams <ciwillia@brocade.com>
Wed, 17 May 2017 18:03:35 +0000 (14:03 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:26 +0000 (10:41 +0100)
commit74b7fc0a0ff151d7160171cfb0f712dcdd704505
tree22c1baf76526943a93c739f26c25219c6937eef3
parent92656e96dda5ce01d16fc751149c2763f315e6e5
net/af_packet: fix packet bytes counting

On error, we also need to zero the bytes transmitted.

Fixes: f4ff17a465d2 ("net/af_packet: guard against buffer overruns in Tx path")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
drivers/net/af_packet/rte_eth_af_packet.c