From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] sh_eth: add support to change MTU
Date: Fri, 9 Jun 2017 22:27:48 +0200 [thread overview]
Message-ID: <20170609202748.GA17461@bigcity.dyn.berto.se> (raw)
In-Reply-To: <15374026-bf82-5b4c-7d1a-53b21dff3451@cogentembedded.com>
Hi Sergei,
Thanks for your feedback.
On 2017-06-09 19:31:09 +0300, Sergei Shtylyov wrote:
> Hello!
>
> On 06/09/2017 06:30 PM, Niklas Söderlund wrote:
>
> > The hardware supports the MTU to be changed and the driver it self is
> > somewhat prepared to support this. This patch hooks up the callbacks to
> > be able to change the MTU from user-space.
> >
> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> [...]
>
> One more thing off my back, thanks! :-)
> I'm OK with this patch in principle (but have several nits):
Will update nits and send v2 containing your Acked-by.
>
> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thanks :-)
>
> > diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
> > index f68c4db656eda846..da41eda7bfada6b9 100644
> > --- a/drivers/net/ethernet/renesas/sh_eth.c
> > +++ b/drivers/net/ethernet/renesas/sh_eth.c
> [...]
> > @@ -3171,6 +3184,13 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
> > }
> > sh_eth_set_default_cpu_data(mdp->cd);
> >
> > + /* Datasheet states max MTU should be 2048 but due to the
>
> User's manual. :-)
Will update in v2.
> Somehow I thought it supports jumbo frames but the manual doesn't confirm
> that... ah, that's EtherAVB! :-)
Yes I did look for that but could not find that for sh_eth :-)
>
> > + * aliment calculations in sh_eth_ring_init() the practical
>
> Alignment.
Will fix in v2.
>
> > + * MTU is a bit less. Maybe this can be optimized some more.
>
> Undoubtedly... :-)
:-)
>
> [...]
>
> MBR, Sergei
>
--
Regards,
Niklas Söderlund
prev parent reply other threads:[~2017-06-09 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 15:30 [PATCH] sh_eth: add support to change MTU Niklas Söderlund
2017-06-09 16:31 ` Sergei Shtylyov
2017-06-09 20:27 ` Niklas Söderlund [this message]
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=20170609202748.GA17461@bigcity.dyn.berto.se \
--to=niklas.soderlund@ragnatech.se \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.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).