Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp536860ybf; Fri, 28 Feb 2020 02:56:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwwuBvw4OpW11oUbgOEb0ZeX+bvtmsxCxwscdSfgYkoFivwKLjXRnrl0Rsey2SZ64cS9mqC X-Received: by 2002:a05:6830:18fb:: with SMTP id d27mr1317515otf.137.1582887411534; Fri, 28 Feb 2020 02:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582887411; cv=none; d=google.com; s=arc-20160816; b=oYh8MHKZGg2IYkS27B8X6mqWyE5CjDzKrG8z+3zQmTpz7Gcg7fjYJekSq3177MJxEs l+UnzreeBzs9xVU/CpLWaYHtEPQSvK3N1Au287smS9XH3WGbt5uTf9vM9zEqTw/xPMH1 +5DmmSW3p86YgLXQ901C9IHwnETWYZZDSj8hQjjF6j0odan5A7n9wQOJQd42amEIACZf 0H0FnC1As1bl7TwlN1asCf97J4/suo0iJwL9s4mmW1VVN4kC9okTuzavdQg61FktP8Pl yKKvYbSVK0TPhi8KJ9qKx2JbjZugKnS2Hd521iMxx/G5IcO+FNHCFhq2ibg+nHf0MjgQ jY9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Kz7kWSwEg7SrZDq5RTh+Y2PzjYeluKBAFvL16xMm9t0=; b=S67Ru8xRFEHo9J8JivEWYfaMnyc3HtxWiG9TSLLglaXzN/Vt9MhfnRibOPtFgEwo5V 8ER7j327sxX4asJ+mMWm7pbISMqnyVncXfhaBP64/fIuGUWEu5MJJQEDK452jAybrmd7 bcfAlb70Js6EjUnGjx0CdhqG9ghM1T+LBU/CSY8G0vmcOL6TSTmMzwj7fxwWBg0OK++d SyyG8NnHeUHsldm06eSWiIN8f8uelCjmmTxnYj7Hp+bbAfGHEZ9ft/nKVMbYSQrlMz09 jaWWetzPFvGLVOETPaFvIzdloxxTm8kM8zAHeF7xIgLY/YVAadbxV1D/TCYUsBHcJSWD X1gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AByl6elZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1310320otp.292.2020.02.28.02.56.39; Fri, 28 Feb 2020 02:56:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AByl6elZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbgB1K4P (ORCPT + 99 others); Fri, 28 Feb 2020 05:56:15 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38018 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgB1K4P (ORCPT ); Fri, 28 Feb 2020 05:56:15 -0500 Received: by mail-ed1-f67.google.com with SMTP id e25so2854519edq.5 for ; Fri, 28 Feb 2020 02:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Kz7kWSwEg7SrZDq5RTh+Y2PzjYeluKBAFvL16xMm9t0=; b=AByl6elZqVlPjy72DINpI0r2yItB4pHixbBUiXhYz31NU3PrrTT5MXG8vHTPuXExfJ rJ+819KSeYHTGsI1QRMoJ8rH+H1yPUGiRjLRsGo3nL+bxBsYBYDvB9XNevv18O7Ccm2d 7ni2QZ0sYcrkKSFWBL874TNmwdHLdQufWdKuXLJOHsZ5nPQPa01aM+jFL96/cNfh9I6T bzyygGnQG8aIc5bGYBV9Sktyb37qWS1Jgh5qkBwkiEDRT69Ka9Il5NXPYggA7q89POhE j5nzlCBZqAsd+ETnleE4ynUoictVIHefYIt1z/Ew/WoO3kmJWYdieYPNJmhAJAilMwjh DsNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Kz7kWSwEg7SrZDq5RTh+Y2PzjYeluKBAFvL16xMm9t0=; b=L4JuU9V4huRAuZM5m4GtUr5i/Gc6IvYc32NtNNZB5IoeFf0aAqsuAISHpvZKMO3iH4 oAXa7sZtr62SEH0CrZxCI/ohuJzaM/wA2ccYoBnFaFnWIX+/xZovyn64GPYY0MO5JqwR kvxgSbxPxISzEPgzRPgHkMyNjse6mxOQ3crAnJcS21HV9OzhT0WW9IQzt8S2B6A9p3iW aNE4PiFxU2YTg3R16gvxvucx8KGvW1P6RMA/YCJoXYuDoX5yc2LtMUX/SnMpj18e2KVk JdcaAbeACp8icAH9SOKsACYYAdxtikiNrpWwKoHCDjEIfrIO/+iUpsJ142J3mKO7NfZG 1qjQ== X-Gm-Message-State: APjAAAW9Ejv7/XqmgHipthuQyCXs7/BuJAFEQTXkhUaYsJ4YYhp12g/Y PYNxnWqIz2OzaMkkEGbPyAnKRTw9Nlw2AsFqBepiYA== X-Received: by 2002:a50:d65b:: with SMTP id c27mr3468481edj.206.1582887373150; Fri, 28 Feb 2020 02:56:13 -0800 (PST) MIME-Version: 1.0 References: <20200227173428.5298-1-lrizzo@google.com> <87h7zbuid7.fsf@toke.dk> In-Reply-To: <87h7zbuid7.fsf@toke.dk> From: Luigi Rizzo Date: Fri, 28 Feb 2020 02:56:01 -0800 Message-ID: Subject: Re: [PATCH v3 net-next] netdev attribute to control xdpgeneric skb linearization To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: netdev@vger.kernel.org, David Miller , Jesper Dangaard Brouer , sameehj@amazon.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 2:16 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > Luigi Rizzo writes: > > > Add a netdevice flag to control skb linearization in generic xdp mode. > > > > The attribute can be modified through > > /sys/class/net//xdp_linearize > > The default is 1 (on) > > Calling it just 'xdp_linearize' implies (to me) that it also affects > driver-mode XDP. So maybe generic_xdp_linearize ? done in v4, xdpgeneric_linearize for consistency ... > > +Description: > > + boolean controlling whether skb should be linearized in > > + generic xdp. Defaults to true. > > Could you also add a few words explaining what the tradeoff here is? > Something like: "turning this off can increase the performance of > generic XDP at the cost of making the content of making the XDP program > unable to access packet fragments after the first one" done too in v4 thanks luigi