net/tap: fix reported number of Tx packets
authorRaslan Darawsheh <rasland@mellanox.com>
Wed, 10 Oct 2018 07:01:41 +0000 (07:01 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 18 Oct 2018 08:24:39 +0000 (10:24 +0200)
commit9396ad3346720b424a10dcf6640c919e37a4fcf7
tree2f7c4c542227abe0d4f96eb2758cbe5dbe069606
parentea2c9969b52d9a2f269397f6dbc5b24495607945
net/tap: fix reported number of Tx packets

When writev fails to send packets it doesn't update the
number of Tx packets, but it still num_tx is updated.

The value that should be returned is the actual number
of sent packets which is num_packets.

Fixes: 02f96a0a82d1 ("net/tap: add TUN/TAP device PMD")
CC: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c