Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4505811ybl; Mon, 9 Dec 2019 11:57:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyg1QkyALLFMBCCq1R0CvJ/CCoWKnXNRr001WA9Vk/q8MG7gATgVyjUdG4Mc3MwDKS3rKxj X-Received: by 2002:a05:6808:102:: with SMTP id b2mr731921oie.127.1575921453477; Mon, 09 Dec 2019 11:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575921453; cv=none; d=google.com; s=arc-20160816; b=yfGD02PVOGp8eoX3SMZEroD10jByuOsXPotxU4AyviMfDfQoTzT67GjKZToF/JGyVD H8vAj1bVdVUN/nQQL+BUJwFVi8jqXnXUuMnXWa6AqepR6/4AIZJJZryQTfsoO5cgEzhj BeD5ntAg0lzYtqY3+f5Qr67Ko3uQNyC3Ke246V0EP5X1TyJzD7g9bsRQ/faZtfxbSirt sWjzbnd8U+vNfhjKUfwrHqGelAymvEc1dSixXLJFapCkS1y3ECq87KJf8yasFL0z/mUx 08zO0FSB5oNvJPiOPTiLbVa//gpIw8/tHDvHINeBynap+ijxSsj5oAE/p2D6J2hPmNHI MhBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id; bh=2qEh6y5C5TeY/5aF71h5Xj6cE7ADllQDo1YBIibVMOc=; b=Vs7Z0KMhaAkAElBrLcPf6g5JwFxdMt2wywOS8T4X44rsiazBvCW6lFdDB1RZ8f7NQt JUvA23OtUJ0/ClGqEXGW7DFwk+uZMspQS/awG36vq577lWZ32nDwZtYx2pbJ7VETWhjy unJV0ew8AdH7aOMvVtue+M16uOUntmNOjmQorhJ4zOk+I23sfTSjZsq/VLXiWD8aWcsM 5tUD/mKnkbaEc4dIZTOg/uQaLpfxNIAXkEpO0/gTX+/leKZpRg6Vv85Jftj3tGK4H8fD M+6uWq9a5pRhG0Xh0gw1wGKbWcQ78OBgiO+wqdPqtibfGqZk/qrOaxfA9nsXGxPrC8my Prew== 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 e15si537990otp.161.2019.12.09.11.57.21; Mon, 09 Dec 2019 11:57:33 -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; 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 S1726678AbfLITz2 (ORCPT + 99 others); Mon, 9 Dec 2019 14:55:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:43358 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbfLITz2 (ORCPT ); Mon, 9 Dec 2019 14:55:28 -0500 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 E293CAD5C; Mon, 9 Dec 2019 19:55:25 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id E57A1E0321; Mon, 9 Dec 2019 20:55:19 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next 0/5] ethtool netlink interface, preliminary patches To: David Miller , netdev@vger.kernel.org Cc: Jakub Kicinski , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Date: Mon, 9 Dec 2019 20:55:19 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Jakub Kicinski suggested in ethtool netlink v7 discussion, this submission consists only of preliminary patches which raised no objections; first four patches already have Acked-by or Reviewed-by. - patch 1 exposes permanent hardware address (as shown by "ethtool -P") via rtnetlink - patch 2 is renames existing netlink helper to a better name - patch 3 and 4 reorganize existing ethtool code (no functional change) - patch 5 makes the table of link mode names available as an ethtool string set (will be needed for the netlink interface) Once we get these out of the way, v8 of the first part of the ethtool netlink interface will follow. Michal Kubecek (5): rtnetlink: provide permanent hardware address in RTM_NEWLINK netlink: rename nl80211_validate_nested() to nla_validate_nested() ethtool: move to its own directory ethtool: move string arrays into common file ethtool: provide link mode names as a string set include/linux/ethtool.h | 4 + include/net/netlink.h | 8 +- include/uapi/linux/ethtool.h | 2 + include/uapi/linux/if_link.h | 1 + net/Makefile | 2 +- net/core/Makefile | 2 +- net/core/rtnetlink.c | 5 + net/ethtool/Makefile | 3 + net/ethtool/common.c | 171 ++++++++++++++++++++++++ net/ethtool/common.h | 19 +++ net/{core/ethtool.c => ethtool/ioctl.c} | 89 +----------- net/wireless/nl80211.c | 3 +- 12 files changed, 219 insertions(+), 90 deletions(-) create mode 100644 net/ethtool/Makefile create mode 100644 net/ethtool/common.c create mode 100644 net/ethtool/common.h rename net/{core/ethtool.c => ethtool/ioctl.c} (95%) -- 2.24.0