Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5376542ybl; Tue, 10 Dec 2019 05:09:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyArPNQleSK2ZQjZy+tsRo6lF5emoCy+lgMq756JTiRl13cgy66y3fk5gnvRgnmLnSMXSUa X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr25548032otq.208.1575983358954; Tue, 10 Dec 2019 05:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575983358; cv=none; d=google.com; s=arc-20160816; b=NHKQQCCyyZDjFYLTVvz/ivSNoLUSA/y57r7mC+hZ3yFKosp+2ASS6J1jh11fse62Yw bv7nGs0Zy0lAOX+AWPcKBOZJtQnJK07eJZrY2aQaRc5n9lcFwq6M2fOcEmoRWxQsvIZf IRFhguoRtVlcA0dLjr7QkR7toPnYhUHt/HEsfQZDphzNmSjCNUpmPne/k3piunnl9U5S JWRsb65jzQP+R+92HILLO/ZTHb43gdoEzed64rvz5u31ygNAwYWd3ByDG2sgXIlyv/ns Hkwd7W8A3G4xFvYET/C/xw5eQeh2bIjsmh15rq4IGKmPBoP5UQm1YnC8i0lh19uEcVDL 9uTQ== 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=wchoqt59rMErZZUgXfnV9wQdqliY1aVOewlqP73J/ZeU43d/+Y+N553GNE6FwU7PmE Q953AvmbZ9Wck8lojUXQvAoLxr1fSB/Fr87TFKjT3Wo4Y+yZVqJ9vjkenvmqyn+DEoBe 6mqO5sP+advCJtAbGzyL6HHnIGeOHN82DkOf/6lDspnngHuXNF2RlwOC3vHOeacHLwZK syVIQzDhzaTAZi80QBMsUEi/2TYuPbP3BruRLdNcBSeHxtyJUEgvyYNxFwoV6FqYn+1e tSjkkqBYiKn9fhgjnbl/0SjMc0X7ljKiiWPkN7VQF16HDRzMMnbtBHxTgVHSU6S9T+tv Z+ZQ== 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 n85si1911120oig.191.2019.12.10.05.09.05; Tue, 10 Dec 2019 05:09:18 -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 S1727613AbfLJNIK (ORCPT + 99 others); Tue, 10 Dec 2019 08:08:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:49186 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727529AbfLJNIF (ORCPT ); Tue, 10 Dec 2019 08:08:05 -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 B08CCAC6F; Tue, 10 Dec 2019 13:08:03 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 5FFD5E00E0; Tue, 10 Dec 2019 14:08:03 +0100 (CET) Message-Id: <45f719213b88920276cd825925db34a89b546b45.1575982069.git.mkubecek@suse.cz> In-Reply-To: References: From: Michal Kubecek Subject: [PATCH net-next v2 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: Tue, 10 Dec 2019 14:08:03 +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