From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [RFC PATCH] gianfar: fix undo of reserve() Date: Fri, 26 Mar 2010 20:16:33 -0700 (PDT) Message-ID: <20100326.201633.171845481.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: ben@bigfootnetworks.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:44603 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943Ab0C0DQJ (ORCPT ); Fri, 26 Mar 2010 23:16:09 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: "Ben Menchaca (ben@bigfootnetworks.com)" Date: Wed, 24 Mar 2010 08:05:02 -0700 > From: Ben Menchaca > > Fix undo of reserve() before RX recycle > > gfar_new_skb reserve()s space in the SKB to align it. If an error occurs, > and the skb needs to be returned to the RX recycle queue, the current code > attempts to reset head, but did not reset tail. This patch remembers the > alignment amount, and reverses the reserve() when needed. > > Signed-off-by: Ben Menchaca Applied, thanks.