Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2518635ybb; Fri, 27 Mar 2020 07:08:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqo7Y7ElbxVqII2yYslcFp2AhTuhcgEcvt5E/EGJX2Q5RM1jsa3zdRkwod51urE05WWW0D X-Received: by 2002:a05:6830:1d1:: with SMTP id r17mr10705196ota.81.1585318087432; Fri, 27 Mar 2020 07:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585318087; cv=none; d=google.com; s=arc-20160816; b=lT3iu4qUq0eAJNSurfymcQ0WEdgJH493HB4taPac+Wv2aLhf7iZRT2ANM9TqQUQFOt H+hU/vh3rdRI3LLhJp2fn7trhcX3aXbV/z/oLhBumhSFKnBNv0B2SKtvY3bHZynM1HgH mod6ZG6+f9uGWHPBDnsWKlggtgoVBaICK+XL+wBIDegaI1PATYuC/U9aCeucNJ4Qo1Jw L2Bt5xuBQMhtcwMiKmQg0wJXODsTmgiv8qOEeUo3kBQPQZgF5Lu7dNsTdwMjMvmCddl1 VTXMx2nAOCAz5wKwmg0snIRJgec0xhw2uiM5Jq6uo3Xj4N1Qx6XjWAFNbGH6M6kZl8LE LtDA== 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=cAyqPQnS5bh+e/i+zLgTGaqJlJkOZguA4imKk4WMBT4=; b=VjHGra4sTWVouNy/CisXmCy0K54F1gciVw+8moJ+OIvZ94aVW5SJlZ9oheMbEg8NzX c8+hZwXcnn5re3znFmhUbxhit7xXpBBeGSYN6lZmBmTBZNKHQZVjKDtG54Nb57lTiRUq PxK17yEcccTjpiA0CPHISTBgckJapM0JQDF+4bv8kHZd14QpA2wHcYmUwNAals9hMQ8l gGiv98RzQtkmxfPNbnm53bpFzwf8Xh7GgWVfJ2YmXK1I5fReFewDjzT7XdAMCWkbQtwY gvoTpca2fby2B29Y4D2Bo4iOxiYJlHtDl+1UNuRIks5mmbRtl77X13JUphIf31h/L3tI gj0A== 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 7si2639759ooy.80.2020.03.27.07.07.51; Fri, 27 Mar 2020 07:08:07 -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 S1727370AbgC0OHW (ORCPT + 99 others); Fri, 27 Mar 2020 10:07:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:40530 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgC0OHW (ORCPT ); Fri, 27 Mar 2020 10:07:22 -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 7ACA2AC53; Fri, 27 Mar 2020 14:07:20 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 52BB4E009C; Fri, 27 Mar 2020 15:07:17 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next v2 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: Fri, 27 Mar 2020 15:07:17 +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 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 TIMESTAMP_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/timestamp.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/timestamp.c -- 2.25.1