From: Manivannan Sadhasivam <mani@kernel.org>
To: Vivek Pernamitta <quic_vpernami@quicinc.com>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
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" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"open list:NETWORKING DRIVERS" <netdev@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2] net: mhi : Add support to enable ethernet interface
Date: Wed, 19 Jul 2023 17:12:07 +0530 [thread overview]
Message-ID: <20230719114207.GC9312@thinkpad> (raw)
In-Reply-To: <350d577a-f0b3-1f20-9c35-356355a9aa8e@quicinc.com>
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 <quic_vpernami@quicinc.com>
> > > Reviewed-by: Daniele Palmas <dnlplm@gmail.com>
> > > Reviewed-by: Simon Horman <simon.horman@corigine.com>
> > > ---
> > >
> > > 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
> > >
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2023-07-19 11:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-18 6:15 [PATCH V2] net: mhi : Add support to enable ethernet interface Vivek Pernamitta
2023-07-18 12:43 ` Manivannan Sadhasivam
2023-07-19 10:38 ` Vivek Pernamitta
2023-07-19 11:17 ` Daniele Palmas
2023-07-19 11:42 ` Manivannan Sadhasivam [this message]
2023-07-18 15:35 ` Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230719114207.GC9312@thinkpad \
--to=mani@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mhi@lists.linux.dev \
--cc=mrana@quicinc.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=quic_krichai@quicinc.com \
--cc=quic_qianyu@quicinc.com \
--cc=quic_skananth@quicinc.com \
--cc=quic_vbadigan@quicinc.com \
--cc=quic_vpernami@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).