Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4271115ybp; Mon, 14 Oct 2019 01:49:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDn3M+qR8xUtYU4E4I31zGC05sRU3Dvuin/ohL6kzYsPYWHhvaOQ8FdGsIojUKvRJJ60DL X-Received: by 2002:a17:906:1390:: with SMTP id f16mr26938480ejc.295.1571042943457; Mon, 14 Oct 2019 01:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571042943; cv=none; d=google.com; s=arc-20160816; b=j//0ZoGFYohLuTEVz7m9fduu4VYiacyMvtO2R+f3nqVtKbqc/QkEEpdq90vyS8hmik oyyRXVBq5tpw0ijsxN7LvPtyhKMensVLP+hLo5He4h8kYKN/PAeoa6qpYWIdoDaA/oXE RF7fB156UFHj2eBT/YN5NCWxZJk/y2tcvm5kzdDN6hQoJhfo6+YFn352vXfG6hrDuvd7 3ErlTFGGFvi00PwBGTuQVx5d6L94nYDebDV/Ms06KZx7ULUcDE8ax/68Ty9GLwOy0VTO Jtldt8XnkjdpzqT1OzkIU1m+x5HhKRBQsY+DInjz/UdzMtqXb/6hzjfCN4v54InCtH15 Xqyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4v10887DbBWzHXP9jV9GI/paIkWjfKCV4gnbcacGwgw=; b=ha3aWk/polLdMEbmJCS5qso9qx+1F3enro8tt+enronx95RsM/G0x+DJIfpfstoxGB RcShVpHwwinjZuSOOYUyVUx26tPs//EywlRLlmiRRzhXlkYehobS/S7M51yCwsON96Vd +Q0ZIlIS1AYTucdP6Jdttha7lX9NrGXdg4rND1wx7LufYJ5GPhWtHP9LhWpTn8OQsmC6 yAzUizMYnIyc2xeIE2+BFwRQlePx6JoVRGtGTVSgFvihxXLmM1WeMWvl2tyEkG4d61Yv pFTCJw/k+7UagnDjGckyTqHkTgIoPKtuOtu9/moqTyR/Gtk7J+VicI4J29Atj1EaNpho UHrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si10430851eds.68.2019.10.14.01.48.39; Mon, 14 Oct 2019 01:49:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730588AbfJNIsQ (ORCPT + 99 others); Mon, 14 Oct 2019 04:48:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:45024 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730565AbfJNIsQ (ORCPT ); Mon, 14 Oct 2019 04:48:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C6D49ACFA; Mon, 14 Oct 2019 08:48:13 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id D0998E3935; Mon, 14 Oct 2019 10:48:09 +0200 (CEST) Date: Mon, 14 Oct 2019 10:48:09 +0200 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Jiri Pirko , David Miller , Jakub Kicinski , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v7 14/17] ethtool: set link settings with LINKINFO_SET request Message-ID: <20191014084809.GA8493@unicorn.suse.cz> References: <20191012163309.GA2219@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191012163309.GA2219@nanopsycho> 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 Sat, Oct 12, 2019 at 06:33:09PM +0200, Jiri Pirko wrote: > Wed, Oct 09, 2019 at 10:59:43PM CEST, mkubecek@suse.cz wrote: > > [...] > > >+static const struct nla_policy linkinfo_hdr_policy[ETHTOOL_A_HEADER_MAX + 1] = { > >+ [ETHTOOL_A_HEADER_UNSPEC] = { .type = NLA_REJECT }, > >+ [ETHTOOL_A_HEADER_DEV_INDEX] = { .type = NLA_U32 }, > >+ [ETHTOOL_A_HEADER_DEV_NAME] = { .type = NLA_NUL_STRING, > >+ .len = IFNAMSIZ - 1 }, > > Please make ETHTOOL_A_HEADER_DEV_NAME accept alternative names as well. > Just s/IFNAMSIZ/ALTIFNAMSIZ should be enough. Yes, definitely. I focused on (finally) submitting v7 so I didn't left testing how it plays with altnames for later. Michal > >+ [ETHTOOL_A_HEADER_GFLAGS] = { .type = NLA_U32 }, > >+ [ETHTOOL_A_HEADER_RFLAGS] = { .type = NLA_REJECT }, > >+}; > > [...]