[dpdk-dev] [PATCH] net/enic: fix memory leak with oversized Tx packets
Ferruh Yigit
ferruh.yigit at intel.com
Fri Feb 3 23:52:06 CET 2017
On 2/3/2017 1:18 AM, John Daley wrote:
> If a packet send is attempted with a packet larger than the NIC
> is capabile 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: fefed3d1e62c ("enic: new driver")
> 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