Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2165080yba; Fri, 17 May 2019 11:38:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQaUFFb5shv5U+2/FIiK+J2E8QHVXlUIhpWPIc/1fw6dQkeWZMWRSoc97iDgrbXddlrHE5 X-Received: by 2002:a62:3605:: with SMTP id d5mr41341502pfa.28.1558118316271; Fri, 17 May 2019 11:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558118316; cv=none; d=google.com; s=arc-20160816; b=rNwHhP0wMhBrKQ6DpJKUa7R4M4gN5wbHOGTpqjA4JapWusPu/TVg9WAMgEtWSiQ0XA Xxg1e+q4fQbJ9MALgZXZ1kGtKOiuzmcQNysX+hT1l3AOX9o1RuXH8u0WBJwgJcHLd44c WmceSFSM0l3q/N1SM+4ElJ723keNZctUfAoaCzSZTVFKgVLuwVKCOHi412g5k5ilq2X6 KWeyfpaSJk8YfV84kTxJ54Vv9OB0gowmQGoiCzOt+LNj/FhZHdC3mYmU6DPbFQ+EMW2S NH/UUxMYhkSh3rQaHv7p9JxKudwCJF9SM3YEuKcKfqQy+KeJTxQO0A8UCDdph7eeh3Ie PmpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=TjOuHNTc9lqgsuDFiWDvMAsGsipFUNSzoWh9rxYjcGs=; b=nluD3g5ILuUu37J8w7NbqYxhMXwRL6bYYskCvqW7HSDIzyNKb8KMsdHi0N4fUTZitM 6mk1CSD/iOncGqYdxLAJ1PvO4fzFvCNR3R1FcRLTXapl2xa2/UiVpzn+GQMy/eLGBC1T +TVhB8RY8NS3wPGmDMiWkuArqHc19U3vs+iG+DghOvMYp7dTj8PP2PpKC7IxMa8f8zqt JAWJhoANxTbjePmIFKVwrbdyn8Bbqy6OlHEOi4JdTVqeHaHZhwEsMluCW/gcrF3lnuAT dSr1A61BuT6qCSM0Bi2FNNBmL/1z61Om8mtAGP0JaLgOlyhf9hnYDhqkSAif4ywCzhJK fppw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KovUP4aD; dkim=pass header.i=@codeaurora.org header.s=default header.b=EEngdNxw; 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 f5si8817568plt.420.2019.05.17.11.38.21; Fri, 17 May 2019 11:38:36 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=KovUP4aD; dkim=pass header.i=@codeaurora.org header.s=default header.b=EEngdNxw; 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 S1727849AbfEQSIC (ORCPT + 99 others); Fri, 17 May 2019 14:08:02 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34372 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbfEQSIC (ORCPT ); Fri, 17 May 2019 14:08:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D6EBC60E3E; Fri, 17 May 2019 18:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558116481; bh=JcHdYICXH9h1XJyzH5vRUun1o9WHh8O7S5STCrF39C8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KovUP4aDMIsmyad+xyGJBgfVr5ECJa4GoaTF/D0txY7LdK+xBwmgg2/5wy+BA3jb9 z4gdztjmoZOvrLqiKRgcnuolEGxqM98HlYMJzvyBsD+4njfOcZI2AOH63IIQza4cJS GxmrArlp6LCNofNT53PoppZM600a2FklWhfiOL94= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id CE37F60590; Fri, 17 May 2019 18:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558116480; bh=JcHdYICXH9h1XJyzH5vRUun1o9WHh8O7S5STCrF39C8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EEngdNxwjLTppzTVzZju1pznbj2UP20s5lEhxJuDw1uJ+weniubJxR+4CAhhnVoCn QBJgMQSPfRFxIU1Dm3LX+84Q0Z0lM0q6Tbh0NWgSbIJhPPMCawQC4W6qUYIQe1I8tD Hq500J9sNx9JngJ/j9KragLNWpbd7GCj+RjjjwSY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 17 May 2019 12:08:00 -0600 From: Subash Abhinov Kasiviswanathan To: Alex Elder Cc: Arnd Bergmann , David Miller , Bjorn Andersson , Ilias Apalodimas , stranche@codeaurora.org, YueHaibing , Joe Perches , syadagir@codeaurora.org, mjavid@codeaurora.org, evgreen@chromium.org, benchan@google.com, ejcaruso@google.com, abhishek.esse@gmail.com, Linux Kernel Mailing List Subject: Re: [PATCH 02/18] soc: qcom: create "include/soc/qcom/rmnet.h" In-Reply-To: References: <20190512012508.10608-1-elder@linaro.org> <20190512012508.10608-3-elder@linaro.org> <9cae00c4-29ab-6c3e-7437-6ed878a3061f@linaro.org> <005ae8fb4ea9ba86fd0924b1719f1753@codeaurora.org> Message-ID: <5ea0235d9fb24322681303591450b02a@codeaurora.org> X-Sender: subashab@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-05-17 11:27, Alex Elder wrote: > On 5/15/19 8:09 PM, Subash Abhinov Kasiviswanathan wrote: > . . . >> Hi Alex >> >> Could we instead have the rmnet header definition in >> include/linux/if_rmnet.h > > I have no objection to that, but I don't actually know what > the criteria are for putting a file in that directory. > > Glancing at other "if_*" files there it seems sensible, but > because I don't know, I'd like to have a little better > justification. > > Can you provide a good explanation about why these > definitions belong in "include/linux/if_rmnet.h" instead > of "include/soc/qcom/rmnet.h"? > > Thanks. > > -Alex rmnet was designed similar to vlan / macvlan / ipvlan / bridge. These drivers support creation of virtual netdevices, define custom rtnl_link_ops, expose netlink attributes to uapi via if_link.h and register rx_handlers. They expose some common structs and helpers via if_vlan.h / if_macvlan.h / if_bridge.h. I would prefer rmnet to use if_rmnet.h similar to them. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project