Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2739969imj; Mon, 18 Feb 2019 11:16:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSAzI+VfWzw8mqDXcFj5aC2K/jRBGX/WLkS+vo7iii7tvDYEF/OJNrVArqOITlMMq786x+ X-Received: by 2002:a65:614a:: with SMTP id o10mr20502502pgv.387.1550517362752; Mon, 18 Feb 2019 11:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550517362; cv=none; d=google.com; s=arc-20160816; b=VJoLIyCfZO3/kCDZDWuIoNlIY2sB9ULKEQ3gYIA9KoT3ug5tFSC1dg8fkUz43RSM8h jp9rOM5I2KGsw4T9ZHV/zdEOy/akB7ONQXjurHQU4vNp91vOyyU3tFuW5VR3uLDeijpj 8xo7pCOrCpG8c9O6urfRCdyLkD3HBSxaC3ZF5GywCC81/FiQDWZZ1PRmXgiXizkNo2sg Ns6phTjM9SsDmO1t/QDjMEVMRjnGN3oF9qmTWbq4BAXW/LlLienXnaEujsZYSrPtFo8C k/HjpCBtw8tMO6XmRrgWZod0x8tC//aFdB4NOC2MzhQN6nmIUzFr6PHfT2RSm8PwZHmt ZrYA== 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=X8AjAtXbXpxvls6nmEgJSOtFkhEbr3MIwMvIJ3L8Nhg=; b=plTucz0x061rUPNDyCT8BbHomKF8SayHfZpSGK9JMQp7o3P+M35KWstViMMK6kN4tE 55QNuFmrvacG6q+bV3zdxGrUa/fXjWS6ZjBYBqaQEksyRNZjd54GKzSiPt3/FhoWcRcX QDJnzNJ62cwMzP71gHqLLsTO70jyhy56G88A78VSuREb+yhx/dJGFe2A/B3Pz6MUToC6 o3JHOxEai/wn7d3VJ3oG446nBehDqi8KmBQS0TwzF9N7Vd97/H8GmhXzQ70m2eTP7dAA aOsXPYpPeEgyqxC/k9/vywYkpVC4HeghLh1H10Gw9UiewuMQTW6ks+GDQ42pMKG5lWbi byDQ== 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 i39si14949168plb.256.2019.02.18.11.15.47; Mon, 18 Feb 2019 11:16:02 -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 S2392157AbfBRSVh (ORCPT + 99 others); Mon, 18 Feb 2019 13:21:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:45996 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2392078AbfBRSVg (ORCPT ); Mon, 18 Feb 2019 13:21:36 -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 27782AEBB; Mon, 18 Feb 2019 18:21:35 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 8F161E0122; Mon, 18 Feb 2019 19:21:34 +0100 (CET) Message-Id: <2078f959ed3474c4228fd6016c892331f8e2c7b8.1550513384.git.mkubecek@suse.cz> In-Reply-To: References: From: Michal Kubecek Subject: [RFC PATCH net-next v3 02/21] ethtool: move to its own directory To: netdev@vger.kernel.org Cc: David Miller , Andrew Lunn , Jakub Kicinski , Jiri Pirko , linux-kernel@vger.kernel.org Date: Mon, 18 Feb 2019 19:21: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 ioct.c. Signed-off-by: Michal Kubecek --- 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 bdaf53925acd..6c68520e5eb9 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 f97d6254e564..9ddc2f3ecd97 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.20.1