Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3257506ybi; Tue, 2 Jul 2019 04:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyis0tXQKjOJ5e0ozJYjd9TDRVddHn6zx3g5g7faKLrlWlGmamhfahHEl1BD8bXcPBopkyQ X-Received: by 2002:a17:902:9a95:: with SMTP id w21mr34488688plp.126.1562068242366; Tue, 02 Jul 2019 04:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562068242; cv=none; d=google.com; s=arc-20160816; b=BC3t5lt6SShtllqlazSCZhvvefJWtu679GI3lc50Xu9txZc8nKqHq8zUhNh9Idu2m+ ZXoY2ZMRyJpzVYBgTzGXvHFqbSfEJGs+IeOTvzszdogWIvlfZofAGzqh5SlLr95j6rq2 ZlafO2IK963Z38f4a554lbmNCSHrqhqo6GOk5Z9SzgkMFy/5jfyFhBFj2E26czC3GNYg BoIdZNKq1POqagcbeWRM5m8s5RJphqI7iih44GiLRncQQ57R4/IDqWtxg891Pw1jOzJ9 B0pRUoP/aDclEfDGl9JML82c5aGyVc8iC35YWSq/f2I4YSpdSFyjK63j4nxHkxX7r45f uq3Q== 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=Pb81wf6I9BMW2pA3wpNJjyfjLtfZIsvnQJHGPvf59IA=; b=FaJMW9Flg4iUiz7/63bv+P4sJ7zRnKl3q2bGr1vbnNojKzBju39GTFRY4P02N1x3UA XU50JR25gmZA5b8tBdu1T05hrdbK3nzvG6tPG4n5Uz2e2hd9RCgQMZENyHTWOYlH1Cf8 RhXcXbqryG4cvqb9ZYQgd9FT/vm4pJPlSvwygJfpV/idZcg2RN+TshHC1bEBzl7JhVtG GIpb+vdKUpmhiCV4mauuRjoy83FJPWFAistpBsRDM3XjaSYMdLz2YXg+qidr7HwoKGfF yX03ihxfRPgeZzwwAphbLbDcjz2rYxx493quNgnfcMLkcpwFgB7IwjLRM/68VfIEABMO PtUQ== 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 q185si13057445pga.565.2019.07.02.04.50.27; Tue, 02 Jul 2019 04:50:42 -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 S1727002AbfGBLt4 (ORCPT + 99 others); Tue, 2 Jul 2019 07:49:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:38382 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725767AbfGBLtz (ORCPT ); Tue, 2 Jul 2019 07:49:55 -0400 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 70461B114; Tue, 2 Jul 2019 11:49:54 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 26462E0159; Tue, 2 Jul 2019 13:49:54 +0200 (CEST) Message-Id: In-Reply-To: References: From: Michal Kubecek Subject: [PATCH net-next v6 03/15] 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: Tue, 2 Jul 2019 13:49:54 +0200 (CEST) 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..3ebfab2bca66 --- /dev/null +++ b/net/ethtool/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +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.22.0