Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4504893ybl; Mon, 9 Dec 2019 11:56:25 -0800 (PST) X-Google-Smtp-Source: APXvYqw/xTLndTaopy9sI2DxnkNVtx8qmKjfL490vcbKY+ePggHFdZcy1T5Rrk0s9rITAZJBe6K4 X-Received: by 2002:a05:6808:aac:: with SMTP id r12mr744994oij.59.1575921385517; Mon, 09 Dec 2019 11:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575921385; cv=none; d=google.com; s=arc-20160816; b=SaZrCUyJbGXmwWkUeXlEmesH1352N17WSTGrmrvHqJf8rnHWtLSaSaJdP6nUTCvpUL Z0B6LicAQ9mxJKUITxM0pvfVCapKV7xGtpGo/HxzNFQ+RHT/ubeDcICiUQy1ReEayXuQ HL3yWlWnhcK+WYQU72sRZk6/McJGVg/xsc7u8/6gWc2LxYYVJ8CArDhkNdUOym/uXbS8 Ah3ERVAlsipiOPI0+MwzgAObEAXKU35gd4+VUmxI3+RFxYWNwzuxEyJMfAZwsAUIK6m8 hHBmF/9mZwgDgymENXUZK3YSFGZX3ZL3ED/YbK5NJe18ADiBQaGw6yeG+pguxrOPSZcJ ow0Q== 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=GZau5Te0pVZiRmma/kxdtAhtfoRb23OAaOiMWZ7Yrl4=; b=arFj+TTB6K52mn34FGbFqeW90qepxvDSyPQEv09yykMpYe2g8/CLxZA5X0D+zkq8dm Tqmy/qkgHQf+KSDtHCu4RU4MVb6+8kJBNJb7REY/XWbjUH8PYyQVPUrXhWGX9MZSaDWm nXmq/UQ9MTPkkcDrfSkgMC2k+dEHqd9Zyd1RXWACCLurVRG+xFdHJiKIxOu4VizSre+D ZNpaHFfeISN7Fmw4yHMKC4UZi/L4ZQ7/B37CW1CJ8ppkUJP7pckCABLXeRBFT/sLB/Gs y5xFk3l3U2uGnnssh4xtygv0pvNVSvv7R7NNPPBS5T/Q/2mFWcMLkj2SB3Q4RG4IDxc6 Z2Cg== 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 d95si548819otb.258.2019.12.09.11.56.13; Mon, 09 Dec 2019 11:56:25 -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 S1726928AbfLITzh (ORCPT + 99 others); Mon, 9 Dec 2019 14:55:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:43470 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726354AbfLITzh (ORCPT ); Mon, 9 Dec 2019 14:55:37 -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 51C61AFC6; Mon, 9 Dec 2019 19:55:35 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 02CCDE0321; Mon, 9 Dec 2019 20:55:34 +0100 (CET) Message-Id: <66a176aa8fa9397ab283efc8a4b938491e9e0064.1575920565.git.mkubecek@suse.cz> In-Reply-To: References: From: Michal Kubecek Subject: [PATCH net-next 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: Mon, 9 Dec 2019 20:55:34 +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..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.24.0