Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8098496rwp; Wed, 19 Jul 2023 05:21:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2hflByfIa6PUhNj4Ow87+8iwHwFBbO+Vqo0c6IkuF00lYUcFO9Bq86W7IYJP5I3eu/6vj X-Received: by 2002:a17:906:a18d:b0:982:89b3:8650 with SMTP id s13-20020a170906a18d00b0098289b38650mr2223518ejy.64.1689769294238; Wed, 19 Jul 2023 05:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689769294; cv=none; d=google.com; s=arc-20160816; b=ZT0dWjy7dt/cGALgIQ8R+OwoT3dU2afqQ8jBx9ARfWPEkbNOc4mhuFVaXn1IfF8AMw zmwIH58KDdlFOtrrlq+PtR4wXV4B9+PGzmQnjCtWDa8Y5ZoK/DRoef6jQZ7/87y4VqS0 FtRfsXV6P8fyGzHp2O3U10lmJ0n/gFHZfWER29pil7600mDLbpgVL9FmgWyNjomuWQsv B5+bMVUV7NIOx0dkTwLeMZofaME5pA3zOqrhTjPLuBo1BB7fseWISKuXEcibyvwOhVl3 chqvP4pVxdmaq7ZghTBAqxzIGWMTlNv2XAwDzyGsclgxfX5RdvA0BGkBs2PSYsQ2n2U9 eNug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QJj2wKTrDHx+9ynOPlMV/JsG+VCiVKGeUTHXkv7bO0I=; fh=lSxYHH5tXYLYrasa2NS/S5/ijT7inyXuAEbxZ1IbaLo=; b=dlaNGPsGKL0V/W34FT/1+AyqCrL3gM1q8Pitb64/1eoc+6FTDwRwEiiLOG/Wxz5omP cTjVdpBohhFtDIaZyE7nyqi9vqGf2mHYAy9LMZBoRSaqLtcckyTWBWXf+55/mYhfJy/7 6t2vTHrJmGWCsIQBTbH+pqNY6rLsyk2r0rDtmEQdgF4BKvepBfjKQW+8AuYkKJNHUf2+ lYsa7YZcjnyvp8xAUAxHQmX6+OqWYvsZly9zH662bzlxW/2jSUWSNdobThpsitC1rdKf DVEgeQ9FcXWXIA9bUECHJ1JFulrWRNFCuTkJZW6iLNY1zYCAFxsYiGqjio+Sdco3qZS4 yIKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bXWkr6yy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a17090669c700b0098f564f636esi2733433ejs.132.2023.07.19.05.21.09; Wed, 19 Jul 2023 05:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bXWkr6yy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbjGSLm0 (ORCPT + 99 others); Wed, 19 Jul 2023 07:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjGSLmZ (ORCPT ); Wed, 19 Jul 2023 07:42:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDA0BE; Wed, 19 Jul 2023 04:42:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA964615BA; Wed, 19 Jul 2023 11:42:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF3D1C433C7; Wed, 19 Jul 2023 11:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689766943; bh=wPRMqbpbLUGy3uCjIzFDHysaD/lX8t+s8gaE2CHN+uQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bXWkr6yyQPPbZ1rOXq5/QjUQz1j3giLABh26cCfhh5RRcADgmXpLqKdx6JXnVrscf yTexG6yrL0z1t1ulOjO3C4ZUkqRJsjLO4wJZKDgopoxeqybJzNjsTqWOHqZRKeQVhG RotmvRNeTvtPReViEohETLDXmXSDJChCj4jOmyo9YezWoaKD/l57/0z2mwn7zp+m4s YP0EjW3m3YpKyNqd2l2yV0mlZzN0pjMvgf/sE89lpM0IlLv78rWAhz77VThRdQmWQI yARd2dTevEcb+T6fuoahaUYIvSQ5RbKUoLu+UNDaCb/7BezmnJ9JS4SXlhGzw11ORB ehqFuM01CIKbg== Date: Wed, 19 Jul 2023 17:12:07 +0530 From: Manivannan Sadhasivam To: Vivek Pernamitta Cc: Manivannan Sadhasivam , mhi@lists.linux.dev, mrana@quicinc.com, quic_qianyu@quicinc.com, quic_vbadigan@quicinc.com, quic_krichai@quicinc.com, quic_skananth@quicinc.com, linux-arm-msm@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH V2] net: mhi : Add support to enable ethernet interface Message-ID: <20230719114207.GC9312@thinkpad> References: <1689660928-12092-1-git-send-email-quic_vpernami@quicinc.com> <20230718124334.GG4771@thinkpad> <350d577a-f0b3-1f20-9c35-356355a9aa8e@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <350d577a-f0b3-1f20-9c35-356355a9aa8e@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 04:08:37PM +0530, Vivek Pernamitta wrote: > > Currently MHI NET driver does not support Ethernet interface, > Please do not top post. Read: https://people.kernel.org/tglx/notes-about-netiquette-qw89 > we are adding Ethernet interface support to MHI NET driver, so new client > can be configured to be Ethernet type over MHI by setting > "mhi_device_info.ethernet_if = true" > Which is the new client you are referring to? > currently we are not changing mhi_swip0/mhi_hwip0 to Ethernet. we are adding > an provision to configure mhi client as  Ethernet type. > If there are no users of the said provision, then it should not be added now. You can only add interfaces to kernel if there is atleast one user. - Mani > > On 7/18/2023 6:13 PM, Manivannan Sadhasivam wrote: > > On Tue, Jul 18, 2023 at 11:45:28AM +0530, Vivek Pernamitta wrote: > > > Add support to enable ethernet interface for MHI SWIP channels. > > > > > Please add more info in the commit message i.e., why this interface is added and > > how it is going to benefit the users etc.. > > > > Since you are modifying the existing mhi_swip interface, this isn't an ABI > > change? > > > > > Signed-off-by: Vivek Pernamitta > > > Reviewed-by: Daniele Palmas > > > Reviewed-by: Simon Horman > > > --- > > > > > > changes since v1: > > > - Moved to net-next from linux-next > > > - moved to eth_hw_addr_random() to assign Ethernet MAC address > > > from eth_random_addr() > > > --- > > > drivers/net/mhi_net.c | 53 ++++++++++++++++++++++++++++++++++++++------------- > > > 1 file changed, 40 insertions(+), 13 deletions(-) > > > > > > diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c > > > index 3d322ac..5bb8d99 100644 > > > --- a/drivers/net/mhi_net.c > > > +++ b/drivers/net/mhi_net.c > > [...] > > > > > @@ -380,10 +405,12 @@ static void mhi_net_remove(struct mhi_device *mhi_dev) > > > static const struct mhi_device_info mhi_hwip0 = { > > > .netname = "mhi_hwip%d", > > > + .ethernet_if = false, > > > }; > > > static const struct mhi_device_info mhi_swip0 = { > > > .netname = "mhi_swip%d", > > > + .ethernet_if = false, > > false? > yes ,it is false as by default mhi_swip/mhi_hwip interface will be normal > net device. > > > > - Mani > > > > > }; > > > static const struct mhi_device_id mhi_net_id_table[] = { > > > -- > > > 2.7.4 > > > -- மணிவண்ணன் சதாசிவம்