[PATCH net-next 2/5] net: ethernet: ti: am65-cpsw: advertise asymmetric pause support

From: Leonardo Costa

Date: Mon Nov 30 2026 - 06:05:33 EST


From: Matheus Barbosa <matheus.barbosa@xxxxxxxxxxx>

The CPSW MAC enables RX and TX flow control independently, but only
MAC_SYM_PAUSE is declared. phylink allows pause-based rate matching only
when the MAC supports both symmetric and asymmetric pause, so a 10G
copper SFP+ module on a 10GBASE-R port does not link with a lower-speed
partner. Add MAC_ASYM_PAUSE for all CPSW ports.

Signed-off-by: Matheus Barbosa <matheus.barbosa@xxxxxxxxxxx>
Signed-off-by: Leonardo Costa <leonardo.costa@xxxxxxxxxxx>
---

This was tested with a 10G copper SFP+ module (SFP-10G-T) plugged into
the SFP+ cage on the Lotus Carrier Board (which connects to the J784S4
CPSW9G port 2, on SERDES2 lane 3). The module was connected to a 1G link
partner. With this patch left out of the series, no link comes up. With
the patch, a link comes up and communication works successfully.

I also tested the Ethernet port of a Verdin AM62 (CPSW3G port 1) after
the patch to check for regressions. Connecting it to a PC and testing
asymmetric flow control (RX off and TX on), the link comes up, and
throughput is the same as in symmetric mode. However, I could not
produce a situation where pause frames are sent or received (either in
the symmetric or asymmetric case).
---
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
index 0ad6145822445..30e054dc57985 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
@@ -2809,7 +2809,8 @@ am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx)
/* Configuring Phylink */
port->slave.phylink_config.dev = &port->ndev->dev;
port->slave.phylink_config.type = PHYLINK_NETDEV;
- port->slave.phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 |
+ port->slave.phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE |
+ MAC_10 | MAC_100 |
MAC_1000FD | MAC_5000FD;
port->slave.phylink_config.mac_managed_pm = true; /* MAC does PM */


--
2.43.0