From: Ian Campbell Subject: Re: [RFC PATCH net-next 0/3] unify netfront and netback checksum setup code Date: Thu, 12 Dec 2013 12:50:41 +0000 Message-ID: <1386852641.11201.30.camel@kazak.uk.xensource.com> References: <1386689992-45593-1-git-send-email-paul.durrant@citrix.com> <20131210180921.GQ32155@zion.uk.xensource.com> <9AAE0902D5BC7E449B7C8E4E778ABCD01AEA8B@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD01AEA8B@AMSPEX01CL01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Wei Liu , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-12-11 at 10:32 +0000, Paul Durrant wrote: > > -----Original Message----- > > From: Wei Liu [mailto:wei.liu2@citrix.com] > > Sent: 10 December 2013 18:09 > > To: Paul Durrant > > Cc: xen-devel@lists.xen.org; Wei Liu > > Subject: Re: [Xen-devel] [RFC PATCH net-next 0/3] unify netfront and > > netback checksum setup code > > > > On Tue, Dec 10, 2013 at 03:39:49PM +0000, Paul Durrant wrote: > > > I'm posting this as RFC to xen-devel before going to netdev to get > > feedback. > > > In patch 1 I've basically taken the latest checksum setup code from > > netback, > > > with all the recent fixes, and pushed it into net/core/dev.c (which seems > > > like the right home for such code). Patch 2 and 3 then just modify netback > > > and netfront to use the new code. > > > > > > Does this look like a reasonable approach? I think it would be good to make > > > the checksum setup code available to all network drivers. There's nothing > > > Xen specific about it. > > > > > > > > > > I agree it is generally good to consolidate duplicated code so that we > > don't need to maintain two copies of idential code. > > > > But the acceptance of this series will mainly reuqire acknowledge from > > core driver maintainers. :-) > > > > Indeed. I just wanted a sanity check before I put my head above the parapet :-/ I don't see any obvious red flags... Ian.