numam-dpdk/drivers/net/tap
Yunjian Wang 24cb500c17 net/tap: fix mbuf double free when writev fails
When the tap_write_mbufs() function return with break, mbuf was freed
without increasing num_packets, which could cause applications to free
the mbuf again. And the pmd_tx_burst() function should returns the
number of original packets it actually sent excluding tso mbufs.

Fixes: 9396ad3346 ("net/tap: fix reported number of Tx packets")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2020-04-21 13:57:08 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_eth_tap.c net/tap: fix mbuf double free when writev fails 2020-04-21 13:57:08 +02:00
rte_eth_tap.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
rte_pmd_tap_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
tap_bpf_api.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_bpf_insns.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
tap_bpf_program.c replace packed attributes 2020-04-16 18:16:46 +02:00
tap_bpf.h replace alignment attributes 2020-04-16 18:16:18 +02:00
tap_flow.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
tap_flow.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_intr.c net/tap: remove unused assert 2020-04-21 13:57:06 +02:00
tap_log.h net/tap: convert to dynamic logging 2018-04-27 18:00:59 +01:00
tap_netlink.c net/tap: fix file descriptor leak on error 2018-11-14 02:14:09 +01:00
tap_netlink.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_rss.h replace packed attributes 2020-04-16 18:16:46 +02:00
tap_tcmsgs.c net/tap: fix possible uninitialized variable access 2018-12-21 16:22:41 +01:00
tap_tcmsgs.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00