numam-dpdk/drivers/net
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
..
af_packet net/af_packet: support 802.1Q VLAN 2017-01-17 19:41:43 +01:00
bnx2x drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
bnxt drivers/net: make PCI device id struct const 2017-01-30 22:18:26 +01:00
bonding net/bonding: remove useless assignment 2017-01-30 22:18:26 +01:00
cxgbe drivers/net: make PCI device id struct const 2017-01-30 22:18:26 +01:00
e1000 drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
ena drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
enic net/enic: fix memory leak with oversized Tx packets 2017-02-10 12:25:49 +01:00
fm10k net/fm10k: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
i40e drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
ixgbe drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
mlx4 net/mlx: fix IPv4 and IPv6 packet type 2017-01-17 19:41:43 +01:00
mlx5 net/mlx5: fix inline WQE consumption 2017-02-10 12:25:48 +01:00
mpipe net: align ethdev and eal driver names 2017-01-17 19:36:47 +01:00
nfp drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
null net: align ethdev and eal driver names 2017-01-17 19:36:47 +01:00
pcap net/pcap: fix timestamps in output pcap file 2017-01-17 19:40:51 +01:00
qede drivers/net: remove redundant new line from logs 2017-01-30 22:18:27 +01:00
ring net: align ethdev and eal driver names 2017-01-17 19:36:47 +01:00
sfc net/sfc: fix setting empty multicast list 2017-02-10 12:25:48 +01:00
szedata2 net/szedata2: fix device memory access 2017-01-30 22:18:26 +01:00
tap net/tap: support promiscuous and allmulticast 2017-02-10 12:25:49 +01:00
thunderx net/thunderx: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
vhost net/vhost: fix unix socket not removed as closing 2017-01-30 14:19:48 +01:00
virtio net/virtio: add speed capability 2017-02-10 12:06:16 +01:00
vmxnet3 net/vmxnet3: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
xenvirt net: align ethdev and eal driver names 2017-01-17 19:36:47 +01:00
Makefile net/tap: add TUN/TAP device PMD 2017-01-17 19:40:50 +01:00