* [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908
@ 2021-03-10 12:51 Rafał Miłecki
2021-03-10 17:00 ` Florian Fainelli
2021-03-10 23:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2021-03-10 12:51 UTC (permalink / raw)
To: Andrew Lunn, Vivien Didelot, Florian Fainelli, Vladimir Oltean
Cc: David S . Miller, Jakub Kicinski, netdev,
bcm-kernel-feedback-list, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
BCM4908 uses 2 Gbps link between switch and the Ethernet interface.
Without this BCM4908 devices were able to achieve only 2 x ~895 Mb/s.
This allows handling e.g. NAT traffic with 940 Mb/s.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/net/dsa/bcm_sf2.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c
index 7583fc12a9d7..d183206c4bb4 100644
--- a/drivers/net/dsa/bcm_sf2.c
+++ b/drivers/net/dsa/bcm_sf2.c
@@ -114,7 +114,10 @@ static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port)
/* Force link status for IMP port */
reg = core_readl(priv, offset);
reg |= (MII_SW_OR | LINK_STS);
- reg &= ~GMII_SPEED_UP_2G;
+ if (priv->type == BCM4908_DEVICE_ID)
+ reg |= GMII_SPEED_UP_2G;
+ else
+ reg &= ~GMII_SPEED_UP_2G;
core_writel(priv, reg, offset);
/* Enable Broadcast, Multicast, Unicast forwarding to IMP port */
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908
2021-03-10 12:51 [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908 Rafał Miłecki
@ 2021-03-10 17:00 ` Florian Fainelli
2021-03-10 23:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2021-03-10 17:00 UTC (permalink / raw)
To: Rafał Miłecki, Andrew Lunn, Vivien Didelot, Vladimir Oltean
Cc: David S . Miller, Jakub Kicinski, netdev,
bcm-kernel-feedback-list, Rafał Miłecki
On 3/10/21 4:51 AM, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> BCM4908 uses 2 Gbps link between switch and the Ethernet interface.
> Without this BCM4908 devices were able to achieve only 2 x ~895 Mb/s.
> This allows handling e.g. NAT traffic with 940 Mb/s.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908
2021-03-10 12:51 [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908 Rafał Miłecki
2021-03-10 17:00 ` Florian Fainelli
@ 2021-03-10 23:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-10 23:40 UTC (permalink / raw)
To: =?utf-8?b?UmFmYcWCIE1pxYJlY2tpIDx6YWplYzVAZ21haWwuY29tPg==?=
Cc: andrew, vivien.didelot, f.fainelli, olteanv, davem, kuba, netdev,
bcm-kernel-feedback-list, rafal
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Wed, 10 Mar 2021 13:51:59 +0100 you wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> BCM4908 uses 2 Gbps link between switch and the Ethernet interface.
> Without this BCM4908 devices were able to achieve only 2 x ~895 Mb/s.
> This allows handling e.g. NAT traffic with 940 Mb/s.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>
> [...]
Here is the summary with links:
- net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908
https://git.kernel.org/netdev/net/c/8373a0fe9c71
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-10 23:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 12:51 [PATCH] net: dsa: bcm_sf2: use 2 Gbps IMP port link on BCM4908 Rafał Miłecki
2021-03-10 17:00 ` Florian Fainelli
2021-03-10 23:40 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.