Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2922032ybl; Sun, 26 Jan 2020 14:12:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwt9DTN97RFOXO+/ZltgsSw4EAsedRHcU2xpcnrJeXzs/45x6wggfFBjOCqbmegK7XGKE4p X-Received: by 2002:a9d:22:: with SMTP id 31mr9835164ota.173.1580076729651; Sun, 26 Jan 2020 14:12:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580076729; cv=none; d=google.com; s=arc-20160816; b=ggkea1Lk2ddl7V36ycq7lPlebvbPPRRWBpht/LK+8lKWQ+bJhwwDfIgnMyZ332IhV3 9U+/Fi+8sqtEg3o1uM/sZ+sXkC9SwBAjvq/HGPKr+QarQfBac9szyBdAseVSmb0sBKJD 1meVETpHbGEehmnYDJLkcKzC8vCrR9H4xwUELGMMasyPRqzHwF2meRWeeQikUiesUwPd Lcfn+AIPNVwc7RCr7q1TXYWeXkUCTKg3YdEARKaSTxyLh+UBlra0DZRdGvTg09OGZnyL 1nBjHAlZxxxImAx1N/vXi32JOB3ZBZx0yJJtXEqR40AdUfZy0rtMln6q4JBQtz4UbCt8 qjug== 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=Il8GwYuJ9FmkvakLfMnTmYspsvjnYePjxctPlofkMdM=; b=zx6q7O9sx0yA/o9WQj1MyUNvK+p+PJuDWsWICZoP7RErfReDmwv11h0yM89FRwH8c6 7GeCcXfaUZlx6cSXGojONQVBFV6cbeI28zleKBuKukF+oigkGAxEQqK7CImcoQiL+hap TDNS+kele+M2Tyeca0qq3bcIi8OUS0K3Giahf0avOLRQuZZ8EKO1ydFcvauaity+vF+0 75jhUzMIH7dEP4W9/KJ8sjEgkqNL3EXblONphN9rGqS9LdRlXsZJDLjEilw5DacR6I5j s06vFwqX/fMdMy6pQOVG2FPvq6yGVsZ0cnsykjgqkwl8rdH+AypNPqcchPvN8UcpkLwi 0pDQ== 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 t7si5690351otl.133.2020.01.26.14.11.57; Sun, 26 Jan 2020 14:12:09 -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 S1728783AbgAZWLC (ORCPT + 99 others); Sun, 26 Jan 2020 17:11:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:43564 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgAZWLC (ORCPT ); Sun, 26 Jan 2020 17:11:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2E88DAB7F; Sun, 26 Jan 2020 22:11:00 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 7AC5FE06B1; Sun, 26 Jan 2020 23:10:58 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next 0/7] ethtool netlink interface, part 2 To: David Miller , netdev@vger.kernel.org Cc: Jakub Kicinski , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , linux-kernel@vger.kernel.org Date: Sun, 26 Jan 2020 23:10:58 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This shorter series adds support for getting and setting of wake-on-lan settings and message mask (originally message level). Together with the code already in net-next, this will allow full implementation of "ethtool " and "ethtool -s ...". Older versions of the ethtool netlink series allowed getting WoL settings by unprivileged users and only filtered out the password but this was a source of controversy so for now, ETHTOOL_MSG_WOL_GET request always requires CAP_NET_ADMIN as ETHTOOL_GWOL ioctl request does. Michal Kubecek (7): ethtool: fix kernel-doc descriptions ethtool: provide message mask with DEBUG_GET request ethtool: set message mask with DEBUG_SET request ethtool: add DEBUG_NTF notification ethtool: provide WoL settings with WOL_GET request ethtool: set wake-on-lan settings with WOL_SET request ethtool: add WOL_NTF notification Documentation/networking/ethtool-netlink.rst | 110 +++++++++++- include/linux/netdevice.h | 56 ++++-- include/uapi/linux/ethtool.h | 6 + include/uapi/linux/ethtool_netlink.h | 33 ++++ net/ethtool/Makefile | 2 +- net/ethtool/common.c | 31 ++++ net/ethtool/common.h | 2 + net/ethtool/debug.c | 134 ++++++++++++++ net/ethtool/ioctl.c | 3 + net/ethtool/netlink.c | 57 ++++-- net/ethtool/netlink.h | 4 + net/ethtool/strset.c | 11 ++ net/ethtool/wol.c | 177 +++++++++++++++++++ 13 files changed, 592 insertions(+), 34 deletions(-) create mode 100644 net/ethtool/debug.c create mode 100644 net/ethtool/wol.c -- 2.25.0