Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2404632ybp; Sat, 12 Oct 2019 09:34:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzshkBjSLOIsB9afxLT8KYhtJXGJQrPwCR29XBnC4N/yR0OeFEcGQl2tDhrw290JZDS2Ft X-Received: by 2002:a05:6402:1492:: with SMTP id e18mr19364322edv.140.1570898046341; Sat, 12 Oct 2019 09:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570898046; cv=none; d=google.com; s=arc-20160816; b=qkOLvbush1uo2W+EkRWUnG55gRVXHjv2bY6SLefbON7OV1dhLlX5M0TFUVUs9ZNWHJ aqjk5GC6Q+xxzqFS9TplBEs1Jfgk7Pp/SIK+H9O3sf6ggudYxHuUM67VaaxO7dFv8GuT U7yy2E7AahQ1viAcInIya2tWEfypvu2T1UY1zUSuwHgDAMd71bQrSNsuLOvZIxwJmeOA IY/xizq2SIT+mJPaLBLLzmo5oDgjPSLqkSwnjsobLFtEf1JiC4Wugv0XZj6lj1jnpkKl Rt5jD1Grt7JTFmibqWBvClnxCCrsnKKtPRuDMygwrijEpCpjkvTNWRPYfMPj2gi0EtEb fbiA== 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:dkim-signature; bh=WK0aZtBfkjzF2vB8/5+pzziZzjABmbX2uXNAi/6qqVY=; b=ElRRhCUJzvllNHv1tHBsFcJvrGiXjHk0qBuU+nWCwSHMVckGQgOr6ftu1m8ga20WV0 GuLZ0Juz8i8pSBGDQPN4CV50mxIto61WVGxEYMAuHl35A97WwFSEKx/LrnGm6UYJMs7f gneZWexeRYydiqmHWQqkzxqhc/O4ufp2dQQmj3nTtvQASCttd0HM4ZIFEGn7A1Ty7tJZ ZQq8/EoKwWZglCYuRe7o7eK01q5rXX1vou2lYYUq5oZX7jf6ELOhEwFbkj93Tvbdw9Zl rPZw942XQJTAMIZwjzhc/ZIq2BNY7TZD4hVszmNBQl6ysIvO1wLjVGPQTvumqKc10kLQ 5cDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="lU/QjJsd"; 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 w34si9237738edc.252.2019.10.12.09.33.34; Sat, 12 Oct 2019 09:34:06 -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; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="lU/QjJsd"; 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 S1729280AbfJLQdN (ORCPT + 99 others); Sat, 12 Oct 2019 12:33:13 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36994 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727939AbfJLQdM (ORCPT ); Sat, 12 Oct 2019 12:33:12 -0400 Received: by mail-wr1-f68.google.com with SMTP id p14so15040802wro.4 for ; Sat, 12 Oct 2019 09:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WK0aZtBfkjzF2vB8/5+pzziZzjABmbX2uXNAi/6qqVY=; b=lU/QjJsd0iMUxgEz3IhsP8HaMvgoGdR4I/B6oB9obychkcm1NXhuKGhvEAUnEXPXQK KVisFsqiRvr6/mNpVqZxlMkZJxxNPijRUFARXQlQIztCL7oEgpVVOPwW2GqsWaLRyLv7 Yq1wBpnSSsmQ5JVxw7sE0Ya5BbVBxmNT+f70ZVTq5kHPEb8ky+dwAPutUHbRNiKaleXu 2YpYP2Z7SfF9VABD19W/sDZQcSEceF7OPiZxAHrTkZbFc5DyzBzKIB8VNmv8d3DaSZIz wmii5ceGd719vgr7vM3DawcdFYCbeLLkcNAieHPrxO6U1+8CSW+79ioVlh5QXEgVbm8k Qpeg== 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:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WK0aZtBfkjzF2vB8/5+pzziZzjABmbX2uXNAi/6qqVY=; b=FGc6x3y+qZ6/2nXiO6eQUI8Bc6aEX7E99g57Cv84QAngE86p/2F2e+pkSyRHNd6Dv9 Uag2D0gP7VXrUKUpJUvw9Ay3kiA+35zjKE7cvekS8S51ZFEUwwp2KpFpJVxmW2G0QnaZ ATEJYxtElLMXnqRD0Ai8zuxhiExRvpRuK2uJGnHGEF6gXrynseIl8AECi91v15VdAR4n wH+ZkBon+kBCAvxmVSnhovXFFVu66ThIoStqM2QzNdx4Y9DJVaOm4kz0ytJRQ9nqlZzI 1IlN+Yijq3QuXnkSKyIEFCfb6dwIS96TOe6uwHJ5Cx8OIFBHi7Qj7nHkdRtWdzd6Op1+ 88Lw== X-Gm-Message-State: APjAAAU3iXBaHAtYA+FmYS+YC+TSOKYODDEQRZpTumU1I6gH5abbT19C xhRpoC0+KEqhVkmdlklTSD2tdg== X-Received: by 2002:adf:f18a:: with SMTP id h10mr17622633wro.145.1570897990815; Sat, 12 Oct 2019 09:33:10 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id l18sm14362413wrc.18.2019.10.12.09.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 09:33:10 -0700 (PDT) Date: Sat, 12 Oct 2019 18:33:09 +0200 From: Jiri Pirko To: Michal Kubecek Cc: David Miller , netdev@vger.kernel.org, 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: <20191012163309.GA2219@nanopsycho> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >+ [ETHTOOL_A_HEADER_GFLAGS] = { .type = NLA_U32 }, >+ [ETHTOOL_A_HEADER_RFLAGS] = { .type = NLA_REJECT }, >+}; [...]