From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FD19C43331 for ; Fri, 27 Mar 2020 00:11:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D8A3206E6 for ; Fri, 27 Mar 2020 00:11:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbgC0ALy (ORCPT ); Thu, 26 Mar 2020 20:11:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:42424 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbgC0ALx (ORCPT ); Thu, 26 Mar 2020 20:11:53 -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 05E46AE67; Fri, 27 Mar 2020 00:11:48 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id C02CFE00A5; Fri, 27 Mar 2020 01:11:47 +0100 (CET) Message-Id: From: Michal Kubecek Subject: [PATCH net-next 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 , linux-kernel@vger.kernel.org Date: Fri, 27 Mar 2020 01:11:47 +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 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/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 ++++++++ 16 files changed, 1344 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