* [PATCH] net: dpaa2-mac: add 25gbase-r support
@ 2023-06-16 11:14 Josua Mayer
2023-06-16 11:20 ` Russell King (Oracle)
2023-06-20 8:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Josua Mayer @ 2023-06-16 11:14 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Josua Mayer, Ioana Ciornei, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Russell King
Layerscape MACs support 25Gbps network speed with dpmac "CAUI" mode.
Add the mappings between DPMAC_ETH_IF_* and HY_INTERFACE_MODE_*, as well
as the 25000 mac capability.
Tested on SolidRun LX2162a Clearfog, serdes 1 protocol 18.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
index d860d9fe73af..a69bb22c37ea 100644
--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
@@ -54,6 +54,9 @@ static int phy_mode(enum dpmac_eth_if eth_if, phy_interface_t *if_mode)
case DPMAC_ETH_IF_XFI:
*if_mode = PHY_INTERFACE_MODE_10GBASER;
break;
+ case DPMAC_ETH_IF_CAUI:
+ *if_mode = PHY_INTERFACE_MODE_25GBASER;
+ break;
default:
return -EINVAL;
}
@@ -79,6 +82,8 @@ static enum dpmac_eth_if dpmac_eth_if_mode(phy_interface_t if_mode)
return DPMAC_ETH_IF_XFI;
case PHY_INTERFACE_MODE_1000BASEX:
return DPMAC_ETH_IF_1000BASEX;
+ case PHY_INTERFACE_MODE_25GBASER:
+ return DPMAC_ETH_IF_CAUI;
default:
return DPMAC_ETH_IF_MII;
}
@@ -415,7 +420,7 @@ int dpaa2_mac_connect(struct dpaa2_mac *mac)
mac->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE |
MAC_10FD | MAC_100FD | MAC_1000FD | MAC_2500FD | MAC_5000FD |
- MAC_10000FD;
+ MAC_10000FD | MAC_25000FD;
dpaa2_mac_set_supported_interfaces(mac);
--
2.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dpaa2-mac: add 25gbase-r support
2023-06-16 11:14 [PATCH] net: dpaa2-mac: add 25gbase-r support Josua Mayer
@ 2023-06-16 11:20 ` Russell King (Oracle)
2023-06-20 8:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2023-06-16 11:20 UTC (permalink / raw)
To: Josua Mayer
Cc: netdev, linux-kernel, Ioana Ciornei, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
On Fri, Jun 16, 2023 at 02:14:14PM +0300, Josua Mayer wrote:
> Layerscape MACs support 25Gbps network speed with dpmac "CAUI" mode.
> Add the mappings between DPMAC_ETH_IF_* and HY_INTERFACE_MODE_*, as well
Missing "P" for "PHY_".
> as the 25000 mac capability.
>
> Tested on SolidRun LX2162a Clearfog, serdes 1 protocol 18.
>
> Signed-off-by: Josua Mayer <josua@solid-run.com>
Otherwise,
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dpaa2-mac: add 25gbase-r support
2023-06-16 11:14 [PATCH] net: dpaa2-mac: add 25gbase-r support Josua Mayer
2023-06-16 11:20 ` Russell King (Oracle)
@ 2023-06-20 8:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-06-20 8:40 UTC (permalink / raw)
To: Josua Mayer
Cc: netdev, linux-kernel, ioana.ciornei, davem, edumazet, kuba,
pabeni, linux
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:
On Fri, 16 Jun 2023 14:14:14 +0300 you wrote:
> Layerscape MACs support 25Gbps network speed with dpmac "CAUI" mode.
> Add the mappings between DPMAC_ETH_IF_* and HY_INTERFACE_MODE_*, as well
> as the 25000 mac capability.
>
> Tested on SolidRun LX2162a Clearfog, serdes 1 protocol 18.
>
> Signed-off-by: Josua Mayer <josua@solid-run.com>
>
> [...]
Here is the summary with links:
- net: dpaa2-mac: add 25gbase-r support
https://git.kernel.org/netdev/net/c/9a43827e876c
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:[~2023-06-20 8:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-16 11:14 [PATCH] net: dpaa2-mac: add 25gbase-r support Josua Mayer
2023-06-16 11:20 ` Russell King (Oracle)
2023-06-20 8:40 ` patchwork-bot+netdevbpf
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).