[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALW65jbrg1doaRBPdGQkQ-PG6dnh_L4va7RxcMxyKKMqasN7bQ@mail.gmail.com>
Date: Fri, 10 Apr 2020 10:19:42 +0800
From: DENG Qingfang <dqfext@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org,
René van Dorst <opensource@...rst.com>,
John Crispin <john@...ozen.org>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Sean Wang <sean.wang@...iatek.com>,
Weijie Gao <weijie.gao@...iatek.com>,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH net-next] net: dsa: mt7530: enable jumbo frame
So, since nothing else uses the mt7530_set_jumbo function, should I
remove the function and just add a single rmw to mt7530_setup?
On Fri, Apr 10, 2020 at 1:20 AM David Miller <davem@...emloft.net> wrote:
>
> From: DENG Qingfang <dqfext@...il.com>
> Date: Thu, 9 Apr 2020 23:54:09 +0800
>
> > +static void
> > +mt7530_set_jumbo(struct mt7530_priv *priv, u8 kilobytes)
> > +{
> > + if (kilobytes > 15)
> > + kilobytes = 15;
> ...
> > + /* Enable jumbo frame up to 15 KB */
> > + mt7530_set_jumbo(priv, 15);
>
> You've made the test quite pointless, honestly.
Powered by blists - more mailing lists