From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE591C3F2D2 for ; Fri, 28 Feb 2020 12:12:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BC0E246AE for ; Fri, 28 Feb 2020 12:12:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbgB1MMk (ORCPT ); Fri, 28 Feb 2020 07:12:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:48648 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgB1MMk (ORCPT ); Fri, 28 Feb 2020 07:12:40 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B3E97AD39; Fri, 28 Feb 2020 12:12:37 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id E3CE9E2FCF; Fri, 28 Feb 2020 13:12:36 +0100 (CET) Date: Fri, 28 Feb 2020 13:12:36 +0100 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Luigi Rizzo , toke@redhat.com, davem@davemloft.net, hawk@kernel.org, sameehj@amazon.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] netdev attribute to control xdpgeneric skb linearization Message-ID: <20200228121236.GG6835@unicorn.suse.cz> References: <20200228105435.75298-1-lrizzo@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228105435.75298-1-lrizzo@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 02:54:35AM -0800, Luigi Rizzo wrote: > Add a netdevice flag to control skb linearization in generic xdp mode. > > The attribute can be modified through > /sys/class/net//xdpgeneric_linearize > The default is 1 (on) I'm a bit surprised that it didn't appear in earlier rounds of review but I believe (rt)netlink is generally preferred configuration interface for network device attributes. Making a new attribute accessible only through sysfs doesn't seem right. (But it's not my call to make.) Michal