Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp57921ybb; Fri, 27 Mar 2020 16:03:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtWsEWm40x9cdVjKqFaUuf3aaGw+AUqFmJzkqZMBv80Ujp8W5BRfpKdsIFOUz6kJ/JPNdmZ X-Received: by 2002:aca:d446:: with SMTP id l67mr928928oig.115.1585350224234; Fri, 27 Mar 2020 16:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585350224; cv=none; d=google.com; s=arc-20160816; b=aYXoFMbcUYp7S5WimLB9fw9cUDqV4c/7+NDnJUEM+4KolG0EvTrfF6L61h/D3q6b3t QbwkgDbEi4s7vJ7l5EcWXMIfy1AYzHi0/fkQqw6btsI1l2G+3yG61iasnYmNHxAXaRHp uqIm1HIEHMIcT8ysOg+KBBXKBQai6VlOlp7jIBoDbWx7eksTnlS9hf68eGhx3yII0Khg u4wfoU4qCgQyh6CN7j1akSn1G6YDyNGbYIwr6foEs4KsjBmRQ+lABIcGqNbanoIx4/nJ ZQinUR/QTwEO2y4GckMAHNsaRiMuBxdnh/KiX67/w876dhAxoI+ZOx5Foe1LPuENxw/2 7QJw== 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=fjq4To2BYkxOkQO7RdCyaXg2uQLJv/uP7yN1k0NtciE=; b=k7ypRkk7FG2KcHlWlnCA8aScRgPqG3MLeGQY2bHXsJ7vg5TGIwBJ2vTKxgHT3a8l0P GO43iMpfLv/UaXKK3yW9xSJF6yHD0vYmZO43JuVlNGm4MzI0KoFV7DgpUBYQkQbPkPJC bgo7jlxG3vfVHTbE8dY+KHWn/O1nHoJGZvDHXTW1xk/M+vM/6lT+UMBte6VPu3plIcjV f2LP53d1zhwNdqXIqDL/4Wni2wCtj+0qtT3pciIVinmlQWawpZDUCFLd8r32iin8SI6M dmvbuGQeQOXsYjjQQvW0V0zRuMp8C7D6OzTWSSAKKtrByt61nvuLAFq0NS/CSh5qfjpD L+Kw== 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 a1si2717739oie.70.2020.03.27.16.03.31; Fri, 27 Mar 2020 16:03:44 -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; 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 S1727752AbgC0XBE (ORCPT + 99 others); Fri, 27 Mar 2020 19:01:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:44466 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbgC0XBE (ORCPT ); Fri, 27 Mar 2020 19:01:04 -0400 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 CE915AC1D; Fri, 27 Mar 2020 23:01:01 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 65AEDE0FC6; Sat, 28 Mar 2020 00:00:58 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next v3 00/12] ethtool netlink interface, part 4 To: David Miller , Jakub Kicinski , netdev@vger.kernel.org Cc: Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , Richard Cochran , linux-kernel@vger.kernel.org Date: Sat, 28 Mar 2020 00:00:58 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Implementation of more netlink request types: - coalescing (ethtool -c/-C, patches 2-4) - pause parameters (ethtool -a/-A, patches 5-7) - EEE settings (--show-eee / --set-eee, patches 8-10) - timestamping info (-T, patches 11-12) Patch 1 is a fix for netdev reference leak similar to commit 2f599ec422ad ("ethtool: fix reference leak in some *_SET handlers") but fixing a code Changes in v3 - change "one-step-*" Tx type names to "onestep-*", (patch 11, suggested by Richard Cochran - use "TSINFO" rather than "TIMESTAMP" for timestamping information constants and adjust symbol names (patch 12, suggested by Richard Cochran) Changes in v2: - fix compiler warning in net_hwtstamp_validate() (patch 11) - fix follow-up lines alignment (whitespace only, patches 3 and 8) which is only in net-next tree at the moment. Michal Kubecek (12): ethtool: fix reference leak in ethnl_set_privflags() ethtool: provide coalescing parameters with COALESCE_GET request ethtool: set coalescing parameters with COALESCE_SET request ethtool: add COALESCE_NTF notification ethtool: provide pause parameters with PAUSE_GET request ethtool: set pause parameters with PAUSE_SET request ethtool: add PAUSE_NTF notification ethtool: provide EEE settings with EEE_GET request ethtool: set EEE settings with EEE_SET request ethtool: add EEE_NTF notification ethtool: add timestamping related string sets ethtool: provide timestamping information with TSINFO_GET request Documentation/networking/ethtool-netlink.rst | 225 +++++++++++- include/uapi/linux/ethtool.h | 6 + include/uapi/linux/ethtool_netlink.h | 93 +++++ include/uapi/linux/net_tstamp.h | 6 + net/core/dev_ioctl.c | 6 + net/ethtool/Makefile | 2 +- net/ethtool/coalesce.c | 353 +++++++++++++++++++ net/ethtool/common.c | 70 ++++ net/ethtool/common.h | 6 + net/ethtool/eee.c | 206 +++++++++++ net/ethtool/ioctl.c | 41 +-- net/ethtool/netlink.c | 53 +++ net/ethtool/netlink.h | 7 + net/ethtool/pause.c | 145 ++++++++ net/ethtool/privflags.c | 4 +- net/ethtool/strset.c | 15 + net/ethtool/tsinfo.c | 143 ++++++++ 17 files changed, 1350 insertions(+), 31 deletions(-) create mode 100644 net/ethtool/coalesce.c create mode 100644 net/ethtool/eee.c create mode 100644 net/ethtool/pause.c create mode 100644 net/ethtool/tsinfo.c -- 2.25.1