numam-dpdk/drivers/net/enic
John Daley ed6e564c21 net/enic: fix memory leak with oversized Tx packets
If a packet send is attempted with a packet larger than the NIC
is capable of processing (9208) it will be dropped with no
completion descriptor returned or completion index update, which
will lead to an mbuf leak and eventual hang.

Drop and count oversized Tx packets in the Tx burst function and
dereference/free the mbuf without sending it to the NIC.

Since the maximum Rx and Tx packet sizes are different on enic
and are now both being used, make the define ENIC_DEFAULT_MAX_PKT_SIZE
be 2 defines, one for Rx and one for Tx.

Fixes: fefed3d1e6 ("enic: new driver")
Cc: stable@dpdk.org

Signed-off-by: John Daley <johndale@cisco.com>
2017-02-10 12:25:49 +01:00
..
base net/enic: fix Rx queue index when not using Rx scatter 2016-10-26 19:38:18 +02:00
enic_clsf.c net/enic: fix UDP port in flow director 2016-10-26 19:38:18 +02:00
enic_compat.h net/enic: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
enic_ethdev.c net/enic: fix MAC address add and remove 2017-01-30 22:18:26 +01:00
enic_main.c net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
enic_res.c net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
enic_res.h net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
enic_rxtx.c net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
enic.h net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
LICENSE enic: move to drivers/net/ 2015-05-22 16:05:52 +02:00
Makefile net/enic: put Tx and Rx functions into same file 2016-06-15 17:13:56 +02:00
rte_pmd_enic_version.map enic: move to drivers/net/ 2015-05-22 16:05:52 +02:00