Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5375838ybl; Tue, 10 Dec 2019 05:08:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyDc6jbiGJa8hMLXzKs+TdXHbHjDSd/eywE/+G5hzIQpMzaZ9znQ4xHqzqa50qaSWiCcX3Y X-Received: by 2002:aca:b445:: with SMTP id d66mr3916756oif.103.1575983322890; Tue, 10 Dec 2019 05:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575983322; cv=none; d=google.com; s=arc-20160816; b=sSmoJ26soHHKCiY+JPBBgpmcQn/LXZy7knTJQC1NDUhpbjdsO8MOYheacWNKXMIANa X718me48Q0DMoZJhZD6r91oo0GMEx4jd/odCe+jQithonk2nwyyla8Agaj/73XmeQ6w6 VtLRI2bbhf2UF2gP7tDwAvU0EcJu0OgrqW6PJZ18d7kM1hZNolceXi6gWVvSAeHUQlYI oBln4gbyJ2rdf8fqj4c/cnI1RoXS+M/WvzLX+aDwiCNR5FiCFYgogH236zOm4GC1OY/8 BgNge72InfHWp4uI/5GzwUP0il06zHDHI1YxZ7YSsHvx7kOS4nJBAgVT7C5xFSXrZZCW CtLQ== 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=ow7ql4QoJkf5/wj45oX12Rqm033z/MwP42SezuSczTg=; b=UFmzKyT3bq6ES4dqqOv1Co23c57AOwOK1DYRLOaOKMC1ZA6un2VdkI1Hly+KEfEv00 VjgsI2966s4QG3B6wGDWikSH3YRxCQymki7Voe0sz+XHiPECDJvjtnxwsdGMrZY2Gd1V CXk9aeKoEh6cVRJMGxiqdPqPOWLP6FsrkTgAnHEbBHByojTfUiDCJdK6/yAF25asNgV7 E2j2RJXmdP0ZnnhLzOqGi+ahMjj/z95HSs6DhSGLwFd4qpGmmA5kgtVzf+JIbvl3KMpA tKmTYFSWSSAiHP03+AjBpkAHujBBDLg+9hLtqqCHb3VSFE6cMVbkCIhKtt721+JfIZ7a n8SQ== 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 z23si1758826otk.166.2019.12.10.05.08.29; Tue, 10 Dec 2019 05:08:42 -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 S1727502AbfLJNHy (ORCPT + 99 others); Tue, 10 Dec 2019 08:07:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:48968 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727296AbfLJNHy (ORCPT ); Tue, 10 Dec 2019 08:07:54 -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 E695DAC68; Tue, 10 Dec 2019 13:07:51 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 4D917E00E0; Tue, 10 Dec 2019 14:07:48 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next v2 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: Tue, 10 Dec 2019 14:07:48 +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/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