Re: [PATCH v3 net-next 5/8] net: dsa: b53: add MTU configuration support

From
Florian Fainelli <f.fainelli@gmail.com>
Date
2020-03-26 23:16:47
Reply to
Vladimir Oltean, 2020-03-26

On 3/26/2020 3:40 PM, Vladimir Oltean wrote:
From: Murali Krishna Policharla <redacted>

It looks like the Broadcomm switches supported by the b53 driver don't
                            ^= one too many m's, the attempt to acquire
Qualcomm failed a few years ago :)
support precise configuration of the MTU, but just a mumbo-jumbo boolean
flag. Set that.

Also configure BCM583XX devices to send and receive jumbo frames when
ports are configured with 10/100 Mbps speed.

Signed-off-by: Murali Krishna Policharla <redacted>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
[snip]
quoted hunk ↗ jump to hunk
+static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu)
+{
+	struct b53_device *dev = ds->priv;
+	bool enable_jumbo;
+	bool allow_10_100;
+
+	if (is5325(dev) || is5365(dev))
+		return -EOPNOTSUPP;
+
+	enable_jumbo = (mtu >= JMS_MIN_SIZE);
+	allow_10_100 = (dev->chip_id == BCM58XX_DEVICE_ID);
I believe this was meant to be BCM583XX_DEVICE_ID to be consistent with
the previous patch version. With that:

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Thread (15 messages) 15 messages, 4 authors, last reply 2020-04-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help