mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
e2da6a0a59
Removed upstreamed: bcm53xx/patches-5.10/083-v6.0-clk-iproc-Do-not-rely-on-node-name-for-correct-PLL-s.patch[1] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.147&id=a8e6cde5062fb2aff81f86cc0770591714bee545 Signed-off-by: John Audia <therealgraysky@proton.me>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 771c8901568dd8776a260aa93db41be88a60389e Mon Sep 17 00:00:00 2001
|
|
From: DENG Qingfang <dqfext@gmail.com>
|
|
Date: Fri, 11 Dec 2020 01:03:22 +0800
|
|
Subject: [PATCH] net: dsa: mt7530: enable MTU normalization
|
|
|
|
MT7530 has a global RX length register, so we are actually changing its
|
|
MRU.
|
|
Enable MTU normalization for this reason.
|
|
|
|
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
|
|
Acked-by: Landen Chao <landen.chao@mediatek.com>
|
|
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
|
Link: https://lore.kernel.org/r/20201210170322.3433-1-dqfext@gmail.com
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/dsa/mt7530.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/net/dsa/mt7530.c
|
|
+++ b/drivers/net/dsa/mt7530.c
|
|
@@ -1706,6 +1706,7 @@ mt7530_setup(struct dsa_switch *ds)
|
|
*/
|
|
dn = dsa_to_port(ds, MT7530_CPU_PORT)->master->dev.of_node->parent;
|
|
ds->configure_vlan_while_not_filtering = true;
|
|
+ ds->mtu_enforcement_ingress = true;
|
|
|
|
if (priv->id == ID_MT7530) {
|
|
regulator_set_voltage(priv->core_pwr, 1000000, 1000000);
|
|
@@ -1953,6 +1954,7 @@ mt7531_setup(struct dsa_switch *ds)
|
|
}
|
|
|
|
ds->configure_vlan_while_not_filtering = true;
|
|
+ ds->mtu_enforcement_ingress = true;
|
|
|
|
/* Flush the FDB table */
|
|
ret = mt7530_fdb_cmd(priv, MT7530_FDB_FLUSH, NULL);
|