From: Ferruh Yigit Subject: Re: [PATCH] net/enic: fix memory leak with oversized Tx packets Date: Fri, 3 Feb 2017 22:52:06 +0000 Message-ID: References: <20170203011840.9715-1-johndale@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org To: John Daley Return-path: In-Reply-To: <20170203011840.9715-1-johndale@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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@dpdk.org > > Signed-off-by: John Daley Applied to dpdk-next-net/master, thanks.