Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp225742pxb; Thu, 25 Feb 2021 00:22:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCmgMfU+kLPkV75w+rmOEjzlPfKsVS/X08gZjY00bQwS0/O2KGFuZInqyniXjYVAuG0w4e X-Received: by 2002:a17:906:7687:: with SMTP id o7mr1604553ejm.209.1614241347782; Thu, 25 Feb 2021 00:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614241347; cv=none; d=google.com; s=arc-20160816; b=WFk64K5dGnqgORaFeOOl5ZiDM6yX54/ZcVPPc/yZpY9q78g4UkJ5PdQGwcr8A7ZopB hz4f0hLh/V08zX+61B9y4FuaFRBwTNJCdyLwshxZatPygTlb0I72F+NWtfRuyRPmyqIs 2+EIVefp0cpTIyUAqNN2Bgr/HTMmzDt6QjbLhxmpLbX/zhH1SG1s7IOyOqhxQiiDYe2W nJMNyzEoUPWok+BpaTchx+p3wbdiIjBFlX4UXbgKs+ZEeEsk+dEil3xYJ+86s90uYyBf KI60mNkXBINlHTx0u3Hn9pZM94lCF6ppwcgU/0abgr2/vy83P0QS84s6WdXTdT74dE6U IiKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=HdZcx7n6tLUMPziEt2wXpQuBni04h5GQ0OYa3l1jbWo=; b=pWha8xKtwI5hepKjwNIJT54krc86x8tu89iib0Xit72oUqe9sAa3Lfowmi49SD27HM XlanSE63GD1CjvLqfmVZXFF4LgG0IHwebRNQVIzaNWolUJ4MkHHImbYGFmrTlEWwaqhn bbS/LPjQNsK4FFzM7XHWMRq6mgoh73spUHMy/JZuuQ5ZzlWEJXdO8qaUEfOOpFZNn6QR FMpvj+tUlj5m25jJVSgMQ34YG/RHpNXUFe7zjWu65DDI8YOwd+f5fOijv9B1WlfwnBk0 3MBCy3vaUTvvY0v6Vj1QrC13xs18JsEGl2GmOy2I+tIHVcW9Z8m1O8oEoyvEoSsSqLp8 8Lpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si3134151ejk.153.2021.02.25.00.22.03; Thu, 25 Feb 2021 00:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236226AbhBYArf (ORCPT + 99 others); Wed, 24 Feb 2021 19:47:35 -0500 Received: from www62.your-server.de ([213.133.104.62]:38714 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235647AbhBYAr3 (ORCPT ); Wed, 24 Feb 2021 19:47:29 -0500 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lF4nT-0000J2-K3; Thu, 25 Feb 2021 01:46:27 +0100 Received: from [85.7.101.30] (helo=pc-9.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lF4nT-000Mzt-72; Thu, 25 Feb 2021 01:46:27 +0100 Subject: Re: [PATCH v8 bpf-next 0/5] xsk: build skb by page (aka generic zerocopy xmit) To: Alexander Lobakin , Magnus Karlsson Cc: "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jonathan Lemon , Alexei Starovoitov , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Paolo Abeni , Eric Dumazet , Xuan Zhuo , Dust Li , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org References: <20210218204908.5455-1-alobakin@pm.me> From: Daniel Borkmann Message-ID: <925e70eb-3cc6-a135-decc-22167f2ecaf0@iogearbox.net> Date: Thu, 25 Feb 2021 01:46:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20210218204908.5455-1-alobakin@pm.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/26090/Wed Feb 24 13:09:42 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/18/21 9:49 PM, Alexander Lobakin wrote: > This series introduces XSK generic zerocopy xmit by adding XSK umem > pages as skb frags instead of copying data to linear space. > The only requirement for this for drivers is to be able to xmit skbs > with skb_headlen(skb) == 0, i.e. all data including hard headers > starts from frag 0. > To indicate whether a particular driver supports this, a new netdev > priv flag, IFF_TX_SKB_NO_LINEAR, is added (and declared in virtio_net > as it's already capable of doing it). So consider implementing this > in your drivers to greatly speed-up generic XSK xmit. [...] Applied, thanks!