From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:36519 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbeCCLbY (ORCPT ); Sat, 3 Mar 2018 06:31:24 -0500 Received: by mail-wr0-f193.google.com with SMTP id v111so12576056wrb.3 for ; Sat, 03 Mar 2018 03:31:24 -0800 (PST) Date: Sat, 3 Mar 2018 12:31:20 +0100 From: Jiri Pirko To: "Michael S. Tsirkin" Cc: Alexander Duyck , Sridhar Samudrala , Stephen Hemminger , David Miller , Netdev , virtio-dev@lists.oasis-open.org, "Brandeburg, Jesse" , "Duyck, Alexander H" , Jakub Kicinski Subject: Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available Message-ID: <20180303113120.GA3205@nanopsycho.orion> References: <1519934923-39372-1-git-send-email-sridhar.samudrala@intel.com> <1519934923-39372-3-git-send-email-sridhar.samudrala@intel.com> <20180302083605.GD2099@nanopsycho> <20180302162017.GG2099@nanopsycho> <20180302214114-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180302214114-mutt-send-email-mst@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: Fri, Mar 02, 2018 at 08:42:47PM CET, mst@redhat.com wrote: >On Fri, Mar 02, 2018 at 05:20:17PM +0100, Jiri Pirko wrote: >> >Yeah, this code essentially calls out the "shareable" code with a >> >comment at the start and end of the section what defines the >> >virtio_bypass functionality. It would just be a matter of mostly >> >cutting and pasting to put it into a separate driver module. >> >> Please put it there and unite the use of it with netvsc. > >Surely, adding this to other drivers (e.g. might this be handy for xen >too?) can be left for a separate patchset. Let's get one device merged >first. Why? Let's do the generic infra alongside with the driver. I see no good reason to rush into merging driver and only later, if ever, to convert it to generic solution. On contrary. That would lead into multiple approaches and different behavious in multiple drivers. That is plain wrong.