Microchip-Ethernet / EVB-KSZ9477

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
76 stars 78 forks source link

RSTP port enable/disable #41

Closed embeddman closed 4 years ago

embeddman commented 4 years ago

Hi! In sysfs it has ability to turn on/off port in RSTP via /sys/class/net/eth0/sw0/0_stp_on. But it works strange. For example, if there's link on a port, to turn off the port from RSTP via sending 0 to 0_stp_on works, but until reconnecting the port, the next time it's working again. Is it possible to turn on/off port in RSTP permanently, not until link changing?

triha2work commented 4 years ago

It was not designed to remove the port from RSTP participation. You can use the driver parameter "stp" for that purpose. "stp=1" means all ports; "stp=3" means ports 1 and 2.

embeddman commented 4 years ago

Thanks!