Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp426186ybl; Wed, 11 Dec 2019 02:00:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzi+nWXqu541+JfojSx3sBR9n3LmMeh/0Hge/PM5V2vO1ULOwyE1rgKtS+NdYDY7h2Zx9HU X-Received: by 2002:aca:f584:: with SMTP id t126mr2028055oih.76.1576058439514; Wed, 11 Dec 2019 02:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576058439; cv=none; d=google.com; s=arc-20160816; b=qPsixF+q2SDZbXYh5CwGPG8vnR3gVu5b+S4Ye9fi4RFxyyQVXL7DiU3x2CKgLmtXuO c4C0nsBNACjuPSCg3zgDrnD0BVOXHE8yn1cmisnaMOqiCW4WNIp+NrBQnj8hk6nSzEgA aiq4k1lww4x5aZyvVpgVT36cqqTmpAK5KQaM2TJsvoatf8lHOZh1smGtjgm6NSjDd5IJ y7N95ri6ojZPOZStD+2A5yWJj/TGECdeYwY8afnPbNzTJyToCOdulDQS29JyzImhG2ad 237oWGxvAXDFOpyMQC7t90xJ6kH6bi26EFmPhOeBiy/XIRWRMfXrdbjvyB27j2BrcdRB IS+A== 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=sOAIbXV1wjXWZ5oFhp8cnNrMYm4W2GV6x8GoxAbsXf4=; b=qPqJ0QnNtJBHx5DXTr0ijzWb0gFj3vL0sg3lhLXWPJtlIMP0yK/jqbeLEdfnNXkQvX QopeBU7IQ7/tvJ/jJzL9EEl/ESgbclvz1rlLRUyTjOMy9xBHn8FHLDR8kd7uwheGbbHa 91cscLX+oLQCJxs3kbhgFx49rYGOIlGevlTt0K3EAG+LO9FQWjFmg67upmZ6es7BAnwj DtnAtNpb17zMLS0MbzquLU0FKaENmXvqcrhTp+TUk/xQRNxYNFVfm7Ze3DOu/oHkwsBO 5M5aZEeaXPfcGcJNNPtu0EISCREPIDElE+x9r7CGD/e9NyNm2PS299WnpRCHO3wFOtJl wGGw== 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 m21si904701oic.96.2019.12.11.02.00.27; Wed, 11 Dec 2019 02:00:39 -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 S1728447AbfLKJ6Q (ORCPT + 99 others); Wed, 11 Dec 2019 04:58:16 -0500 Received: from mx2.suse.de ([195.135.220.15]:58136 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727493AbfLKJ6P (ORCPT ); Wed, 11 Dec 2019 04:58:15 -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 B4972AC46; Wed, 11 Dec 2019 09:58:13 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 73A45E00B7; Wed, 11 Dec 2019 10:58:09 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next v3 0/5] ethtool netlink interface, preliminary part 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: Wed, 11 Dec 2019 10:58:09 +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. Changes from v2 to v3: fix SPDX licence identifiers (patch 3 and 5). Changes from v1 to v2: restore build time check that all link modes have assigned a name (patch 5). 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/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 | 22 +++ net/{core/ethtool.c => ethtool/ioctl.c} | 90 ++----------- net/wireless/nl80211.c | 3 +- 11 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