[dpdk-dev] [PATCH v2] net/enic: fix TSO for packets greater than 9208 bytes
Ferruh Yigit
ferruh.yigit at intel.com
Thu Nov 2 19:35:35 CET 2017
On 11/1/2017 10:47 PM, John Daley wrote:
> 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: ed6e564c214e ("net/enic: fix memory leak with oversized Tx packets")
> Cc: stable at dpdk.org
>
> Signed-off-by: John Daley <johndale at cisco.com>
Applied to dpdk-next-net/master, thanks.
More information about the dev
mailing list