numam-dpdk/drivers/net/enic
John Daley cafba10bc1 net/enic: fix TSO for packets greater than 9208 bytes
A check was previously added to drop Tx packets greater than what the Nic
is capable of sending since such packets can freeze the send queue. The
check did not account for TSO packets however, so TSO was limited to 9208
bytes.

Check packet length only for non-TSO packets. Also insure that TSO packet
segment size plus the headers do not exceed what the Nic is capable of
since this also can freeze the send queue.

Use the PKT_TX_TCP_SEG ol_flag instead of m->tso_segsz which is the
preferred way to check for TSO.

Fixes: ed6e564c21 ("net/enic: fix memory leak with oversized Tx packets")
Cc: stable@dpdk.org

Signed-off-by: John Daley <johndale@cisco.com>
2017-11-02 19:32:04 +01:00
..
base pci: introduce library and driver 2017-10-26 23:17:31 +02:00
enic_clsf.c net/enic: replace check for SSE4 with check for x86 2017-07-04 14:39:18 +02:00
enic_compat.h net/enic: remove unused code 2017-10-12 01:52:49 +01:00
enic_ethdev.c pci: introduce library and driver 2017-10-26 23:17:31 +02:00
enic_flow.c net/enic: flow API debug 2017-06-12 10:41:26 +01:00
enic_main.c mbuf: rename physical address to IOVA 2017-11-06 22:44:26 +01:00
enic_res.c net/enic: flow API for NICs with advanced filters enabled 2017-06-12 10:41:26 +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 TSO for packets greater than 9208 bytes 2017-11-02 19:32:04 +01:00
enic.h ethdev: add return value to stats get dev op 2017-10-12 01:52:49 +01:00
LICENSE enic: move to drivers/net/ 2015-05-22 16:05:52 +02:00
Makefile pci: introduce library and driver 2017-10-26 23:17:31 +02:00
rte_pmd_enic_version.map enic: move to drivers/net/ 2015-05-22 16:05:52 +02:00