From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FF7D17F5 for ; Thu, 12 Oct 2023 14:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AM+zFJEi" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA9CD3 for ; Thu, 12 Oct 2023 07:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697122239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j5BqCXztfnjL1n8qvwFlaYSxk8LlaToCm50XqHKuKoc=; b=AM+zFJEiVr6pf89D4Mj/LrJsm56fsNxUOeP/AMOYUq6vtg6m1/OGGkFCr1uYx0hhOgYARZ efWZL6PqDCSW6+Gkk5JYDnxBtr/dz3whkCkJYDXymM+xecabyA4qKuq5q5/dILcO+VfeQD S5aS3vP3xape7muD4sqlKEG8EvunRWk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609-v_cLhbNiMCuEcEf6030IiQ-1; Thu, 12 Oct 2023 10:50:38 -0400 X-MC-Unique: v_cLhbNiMCuEcEf6030IiQ-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-402cd372b8bso8511905e9.2 for ; Thu, 12 Oct 2023 07:50:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697122237; x=1697727037; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j5BqCXztfnjL1n8qvwFlaYSxk8LlaToCm50XqHKuKoc=; b=daEuLhJWDDkPOJ/NJSPypBq5Fw8ZlZBYMYtSzg6tepwI5UsBNmtFBLCJJydjtIsPXp Kuo9h5yRB5mssv1HRmdk/TY9Z3oyPyqMosMHJO5ICxVkF9UA8JNWQ72LXIRbEhszKfZw mrF0LU6qvbQlXMffS0Xo1s77RfLhJpeOjXIUWaWMwFbnNcPAxETGpWDY3DQ2GevGdGhE tzfyZ/maKzLMkYKPXsLZqdX1WltwNKBj1SyKvlOUroEN+cEOcTSeDXD+jSRgS+KdztKd I6Pk4ES/mRHoR3rZmTDQ0B0GzgbuxfEGT+jyKf8S6d/skOASj6OZ3HiBigRa5++VUiIv P1mg== X-Gm-Message-State: AOJu0Yx1BgEM3cwu4RPvV8RNh8fruD13YivP9wxvPPAgo+KlphZYU3tC vVCzGRrmzcHsd57XLwyzF4pVEL8itRG03WkIDparYvYwwpZxqbhGOuvwpBL25ilK/50MSQg346D QKPCeIwVK+ry4b3jC X-Received: by 2002:a05:600c:228a:b0:406:592b:e5aa with SMTP id 10-20020a05600c228a00b00406592be5aamr21389549wmf.14.1697122237110; Thu, 12 Oct 2023 07:50:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF2Vo5PT8GSdHGVGE5cwCLnapcKJkvbtEZBt90uz120dcdtwDAi2HYtfKCc8opIa1m8atskQ== X-Received: by 2002:a05:600c:228a:b0:406:592b:e5aa with SMTP id 10-20020a05600c228a00b00406592be5aamr21389522wmf.14.1697122236749; Thu, 12 Oct 2023 07:50:36 -0700 (PDT) Received: from redhat.com ([2a06:c701:73d2:bf00:e379:826:5137:6b23]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c22c600b00406408dc788sm19240wmg.44.2023.10.12.07.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 07:50:36 -0700 (PDT) Date: Thu, 12 Oct 2023 10:50:33 -0400 From: "Michael S. Tsirkin" To: Xuan Zhuo Cc: Jason Wang , Jakub Kicinski , virtualization@lists.linux-foundation.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH vhost 00/22] virtio-net: support AF_XDP zero copy Message-ID: <20231012050829-mutt-send-email-mst@kernel.org> References: <20231011092728.105904-1-xuanzhuo@linux.alibaba.com> <20231011100057.535f3834@kernel.org> <1697075634.444064-2-xuanzhuo@linux.alibaba.com> <1697099560.6227698-1-xuanzhuo@linux.alibaba.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1697099560.6227698-1-xuanzhuo@linux.alibaba.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On Thu, Oct 12, 2023 at 04:32:40PM +0800, Xuan Zhuo wrote: > On Thu, 12 Oct 2023 15:50:13 +0800, Jason Wang wrote: > > On Thu, Oct 12, 2023 at 9:58 AM Xuan Zhuo wrote: > > > > > > On Wed, 11 Oct 2023 10:00:57 -0700, Jakub Kicinski wrote: > > > > On Wed, 11 Oct 2023 17:27:06 +0800 Xuan Zhuo wrote: > > > > > ## AF_XDP > > > > > > > > > > XDP socket(AF_XDP) is an excellent bypass kernel network framework. The zero > > > > > copy feature of xsk (XDP socket) needs to be supported by the driver. The > > > > > performance of zero copy is very good. mlx5 and intel ixgbe already support > > > > > this feature, This patch set allows virtio-net to support xsk's zerocopy xmit > > > > > feature. > > > > > > > > You're moving the driver and adding a major feature. > > > > This really needs to go via net or bpf. > > > > If you have dependencies in other trees please wait for > > > > after the merge window. > > > > > > > > > If so, I can remove the first two commits. > > > > > > Then, the sq uses the premapped mode by default. > > > And we can use the api virtqueue_dma_map_single_attrs to replace the > > > virtqueue_dma_map_page_attrs. > > > > > > And then I will fix that on the top. > > > > > > Hi Micheal and Jason, is that ok for you? > > > > I would go with what looks easy for you but I think Jakub wants the > > series to go with next-next (this is what we did in the past for > > networking specific features that is done in virtio-net). So we need > > to tweak the prefix to use net-next instead of vhost. > > OK. > > I will fix that in next version. > > Thanks. Scaling scope back as far as possible is a good idea generally. I am not sure how this will work though. Let's see. > > > > Thanks > > > > > > > > > > Thanks. > > > > >