Skip to content

Commit b396480

Browse files
vladimirolteandavem330
authored andcommitted
net: mscc: ocelot: disable flow control on NPI interface
The Ocelot switches do not support flow control on Ethernet interfaces where a DSA tag must be added. If pause frames are enabled, they will be encapsulated in the DSA tag just like regular frames, and the DSA master will not recognize them. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e8e6e73 commit b396480

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mscc/ocelot.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,10 @@ void ocelot_configure_cpu(struct ocelot *ocelot, int npi,
14011401
extraction);
14021402
ocelot_fields_write(ocelot, npi, SYS_PORT_MODE_INCL_INJ_HDR,
14031403
injection);
1404+
1405+
/* Disable transmission of pause frames */
1406+
ocelot_rmw_rix(ocelot, 0, SYS_PAUSE_CFG_PAUSE_ENA,
1407+
SYS_PAUSE_CFG, npi);
14041408
}
14051409

14061410
/* Enable CPU port module */

0 commit comments

Comments
 (0)