Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp424986ybl; Wed, 11 Dec 2019 01:59:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzZxMlQtjth2WqSCg3XNZr2Vt15n8Kb6pCxXnxLI4yn1a6+sDSidqSMy3YZ4kRlvojOBuZE X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr1678316otr.320.1576058352962; Wed, 11 Dec 2019 01:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576058352; cv=none; d=google.com; s=arc-20160816; b=OxvXYwVF7O4EH9ETlwgy0dbiQEKeTUaNHW/XrmFJXMm3/SCk4E7uKAjFiwgFYAIM5L nMme3DdWppUWZR1Q4vlTtQEB4+ySLm2mtMGB2Y6bPdFpPTfDKy0QyAFjwWgbLoni3nV6 BcAGXOJ61Ky4L9UJhcMBw57PyCgn8OW6K33DRDwYMxO5bomP4+nArh8KGLbqlrdP2iZA BHglsT2Xn5PgM4FddNZ+dXgJyVyr2Jr6YzNYUPApYeLzN9qC8yXWVs5XroeEtyxExHiN Cp60u2p3j3rmNJmlTrPTShfd+oBQjqQbmEZeqVhgY/CjhIlM8RlOJeADrJhcpkERa1tx Trqg== 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:references :in-reply-to:message-id; bh=PqbE+WptshqIyVn6iAGIyC+jKpsCPuyO3sGCx03MLw8=; b=Da+0lUVIikZlN71Qx9Hl0x94/TMw1OUz8r+j2OIpAbqtIad7wgiMA0W1ErA2nCncDM 2vOySNWoFQzN7QmjJwAdu+mhQyEYvbwOQo37CWZ7EgBKndWMftHEUSkxyZONa/gL7gWZ C3f2+w9qNOlcic/Usq8gWkdoPHbj3WXOnx+h83SodwXsdw/qnxiQOpjWnZTOU6v5OB27 C8+jlVGhd6yYFBrIUUgaYPHiGZD8IFZiRRbAKpuhHkXWXR0w0tlhUPHesGebYFmIwurz LE6F23nESVTUFbFTmtDm2aJpnWC6qS26E34zxkmT23J5e5DkE3zMWXMJXGqx+mYm4wb/ ZgMw== 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 t184si816210oig.184.2019.12.11.01.59.01; Wed, 11 Dec 2019 01:59:12 -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 S1728731AbfLKJ61 (ORCPT + 99 others); Wed, 11 Dec 2019 04:58:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:58282 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727829AbfLKJ60 (ORCPT ); Wed, 11 Dec 2019 04:58:26 -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 D4196AF98; Wed, 11 Dec 2019 09:58:24 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 85DAEE00B7; Wed, 11 Dec 2019 10:58:24 +0100 (CET) Message-Id: <928047310c924cb7bc56ee83a8b13ea4afbe8983.1576057593.git.mkubecek@suse.cz> In-Reply-To: References: From: Michal Kubecek Subject: [PATCH net-next v3 3/5] ethtool: move to its own directory 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: Wed, 11 Dec 2019 10:58:24 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ethtool netlink interface is going to be split into multiple files so that it will be more convenient to put all of them in a separate directory net/ethtool. Start by moving current ethtool.c with ioctl interface into this directory and renaming it to ioctl.c. Signed-off-by: Michal Kubecek Acked-by: Jiri Pirko Reviewed-by: Florian Fainelli --- net/Makefile | 2 +- net/core/Makefile | 2 +- net/ethtool/Makefile | 3 +++ net/{core/ethtool.c => ethtool/ioctl.c} | 0 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 net/ethtool/Makefile rename net/{core/ethtool.c => ethtool/ioctl.c} (100%) diff --git a/net/Makefile b/net/Makefile index 449fc0b221f8..848303d98d3d 100644 --- a/net/Makefile +++ b/net/Makefile @@ -13,7 +13,7 @@ obj-$(CONFIG_NET) += $(tmp-y) # LLC has to be linked before the files in net/802/ obj-$(CONFIG_LLC) += llc/ -obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/ bpf/ +obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/ bpf/ ethtool/ obj-$(CONFIG_NETFILTER) += netfilter/ obj-$(CONFIG_INET) += ipv4/ obj-$(CONFIG_TLS) += tls/ diff --git a/net/core/Makefile b/net/core/Makefile index a104dc8faafc..3e2c378e5f31 100644 --- a/net/core/Makefile +++ b/net/core/Makefile @@ -8,7 +8,7 @@ obj-y := sock.o request_sock.o skbuff.o datagram.o stream.o scm.o \ obj-$(CONFIG_SYSCTL) += sysctl_net_core.o -obj-y += dev.o ethtool.o dev_addr_lists.o dst.o netevent.o \ +obj-y += dev.o dev_addr_lists.o dst.o netevent.o \ neighbour.o rtnetlink.o utils.o link_watch.o filter.o \ sock_diag.o dev_ioctl.o tso.o sock_reuseport.o \ fib_notifier.o xdp.o flow_offload.o diff --git a/net/ethtool/Makefile b/net/ethtool/Makefile new file mode 100644 index 000000000000..7e5c9eb85c90 --- /dev/null +++ b/net/ethtool/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only + +obj-y += ioctl.o diff --git a/net/core/ethtool.c b/net/ethtool/ioctl.c similarity index 100% rename from net/core/ethtool.c rename to net/ethtool/ioctl.c -- 2.24.0