From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Durrant Subject: [RFC PATCH net-next 0/3] unify netfront and netback checksum setup code Date: Tue, 10 Dec 2013 15:39:49 +0000 Message-ID: <1386689992-45593-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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.