Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7031520pxb; Wed, 17 Feb 2021 22:31:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzovMw7x4q8q7dfqwSWDaxLZqinsLWSKYTw+swl93I4FkKDUQNA6FvP+WbRLjTb3v0uaqT4 X-Received: by 2002:a50:ee16:: with SMTP id g22mr2606598eds.235.1613629915067; Wed, 17 Feb 2021 22:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613629915; cv=none; d=google.com; s=arc-20160816; b=XNIyB6rKQlc4LpJcC/BiQXKSpZ76Uj8W6RY4dIqwDd7rr6xyR9Tmzf/KGBArSQV7Y8 9doAXj3Ul79LDXAZZrhDQNmTYMdtAnj8ALhNL1WHLthh0bwZ383WDfngYkyNClJJFwa1 am/XUdeiUEUkfQ/XIlVBJd+YXd+rI53HzsoiJuQRNPhBqo1njmp/CQnQGehsQj64Lm+t DR2tpnbl6o//BwCorfdw2SirkLuiNt09LIBAlMOVfHiumepLlWOO1q3VrJNdeUOZOXyP cizGZcTwEzIAu134pGxpJTEvzec3uMhZOnJqx53nE5wdvid4ZQCBwVa4/bgWRLt9Au4m VI5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=atQAOiXOaMqgkt/WAy6i7CPw9uCPqigPDIhb+m8D4Y8=; b=VvsmYEoQ1s/CBlKVt440HcE0ghOBJ9D+BqIPZvtWSEwyZucTWt9z+rIKsaB5dqV4Ii SYI3lrAycFA5jc7Nu4rmz2M0D9ZAqrxZWkrsPNlLY9G2QAHgP5P1+DkuXZDR+kALugis UUbrybnNjcem2MNnJvE96BmTRlIELMkomUKfSrdraYOuoiGIf7H212D43OhJUwFlKbDX mdApIF0aRws0y5tVleQclT8mdNnIOQAxmJp3w3ivlHnx0/Sy0LP6iSRHuAnJc2wRMraX RQZ/dUkoOTRpck2dUKGoYtM6ElgayaAjKq/ITAv0WkdEImfG3vDsL192B29sGCOs2j5T oRSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="nxC60e/u"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si2824135edr.531.2021.02.17.22.31.29; Wed, 17 Feb 2021 22:31:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="nxC60e/u"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbhBRG0r (ORCPT + 99 others); Thu, 18 Feb 2021 01:26:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbhBRGKG (ORCPT ); Thu, 18 Feb 2021 01:10:06 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D81FC061574; Wed, 17 Feb 2021 22:09:05 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id u20so875294iot.9; Wed, 17 Feb 2021 22:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=atQAOiXOaMqgkt/WAy6i7CPw9uCPqigPDIhb+m8D4Y8=; b=nxC60e/uUY4jw8+FJ0kmQWgUsuJGK5wdf9HeGp2FM0gZei3SirMeYsXmQ8XlDIR04l L6mtzeOBsFhv9c2EKURuPpuOXsfGgZQLLZmCyDAfnP2HTft3XWGKKqX2DWiMvs3WNdZ+ EutwcGVe9QKoXc4bwbY5A/zwZM5ajqgNseOweUvPgGfgM/gVSOYvwm/4FzGan29lH4cO S5GZopYOy0XuXQ9LbvdyyJyd0pS63ylKBXmx1jgutD99r5lmBWCG76ANFPOfblwNjDnz a4q4n9jIesPN5al1RmTCCFbBFprYVSGYqpYJB27XgjWpD9y/jDzOHEMjlKrT5/eFeIfi 4zTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=atQAOiXOaMqgkt/WAy6i7CPw9uCPqigPDIhb+m8D4Y8=; b=tp8h5FO0kNIx2ROeLvRw/4Z6ajrWwPrEC1f0XoMeIA6QHO3ToYS/1YqqgtU2CjtPPK iL0ZGzJNoFtStW6BLGq1Za4FrTbNcv4/zRgCcG1bcPlaF61E7CWc3isAimy1Y2YcONf2 8EcqLeXxY5sJL9Qlg7U4ofWznSLAkqy16f17mlAU9Qu3tV15oEbAhPZf+RNoWsLKqTgf +dhC1EM/YR08Cqk5e8U05uVCp2ueqjfAmdn86vzTqqOfzG/HN9OvkZgNynuZ+8L9xuIm z9T+AIyfSUQIBzlRNnUmpqgCHuIXMBowM78fPajLg+IOWqAfQs5Fr4VMKuTfGbJnCe70 4WUw== X-Gm-Message-State: AOAM533BwbcEOPgICCnMRCEoTZajr2IZhm0c21oF9bAZ51HJ7vICivzw eGr/HyiAQ6o3vzAF0zp9LfY= X-Received: by 2002:a05:6638:33a0:: with SMTP id h32mr3133952jav.143.1613628544803; Wed, 17 Feb 2021 22:09:04 -0800 (PST) Received: from localhost ([172.243.146.206]) by smtp.gmail.com with ESMTPSA id w5sm3220548ilj.40.2021.02.17.22.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 22:09:04 -0800 (PST) Date: Wed, 17 Feb 2021 22:08:55 -0800 From: John Fastabend To: Alexander Lobakin , Daniel Borkmann , 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 , Alexander Lobakin , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Message-ID: <602e0477af4c2_1f0ef2088e@john-XPS-13-9370.notmuch> In-Reply-To: <20210217120003.7938-1-alobakin@pm.me> References: <20210217120003.7938-1-alobakin@pm.me> Subject: RE: [PATCH v7 bpf-next 0/6] xsk: build skb by page (aka generic zerocopy xmit) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. [...] > ---------------- Performance Testing ------------ > > The test environment is Aliyun ECS server. > Test cmd: > ``` > xdpsock -i eth0 -t -S -s > ``` > > Test result data: > > size 64 512 1024 1500 > copy 1916747 1775988 1600203 1440054 > page 1974058 1953655 1945463 1904478 > percent 3.0% 10.0% 21.58% 32.3% > For the series, but might be good to get Dave or Jakub to check 2/6 to be sure they agree. Acked-by: John Fastabend