<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RSTP doesn't actually work on LS1028A in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1413496#M10042</link>
    <description>&lt;P&gt;Indeed for Stp and Rstp, driver side only support enable or disable for a port is enough. But for Mstp, that is not enough. Because a port can be discarding state in one MSTI, but be forwarding state in another MSTI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to section&amp;nbsp;&lt;STRONG&gt;16.4.14.3.6.2 Multiple Spanning Tree Protocol&lt;/STRONG&gt; of&amp;nbsp;&lt;EM&gt;QorIQ LS1028A Reference Manual&lt;/EM&gt;, VLAN_SRC_CHK and VLAN_PORT_MASK fields of VLAN_ACCESS register must be configured differently in different MSTI. This seems not be implemented in the current driver code.&lt;/P&gt;&lt;P&gt;Pls have a check of that.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 07:40:17 GMT</pubDate>
    <dc:creator>daoyu</dc:creator>
    <dc:date>2022-02-15T07:40:17Z</dc:date>
    <item>
      <title>RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1402955#M9894</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Nowadays I am testing the STP function on NXP LS1028A TSN switch. It is tested that the STP function of kernel enabled by command brctl stp switch on&amp;nbsp;works as&amp;nbsp;expected.&lt;/P&gt;&lt;P&gt;Then I installed mstpd and mstpctl on the switch and enabled the RSTP according to the following script: (source code from&amp;nbsp;&lt;A href="https://github.com/mstpd/mstpd" target="_self"&gt;https://github.com/mstpd/mstpd&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
# set_rstp.sh
cp /sysdisk/mstp* /usr/bin/
brctl stp switch on
sleep 1
mstpd
sleep 1
mstpctl addbridge switch
sleep 1
mstpctl setforcevers switch rstp&lt;/LI-CODE&gt;&lt;P&gt;And I configure the network and show the port role by mstpctl showport command:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daoyu_1-1642729135575.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168431iBF84066210A2E8FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daoyu_1-1642729135575.png" alt="daoyu_1-1642729135575.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then start the flow from 1/1--&amp;gt;1/4, and disconnect the link of swp1 between switch 105 and 106. mstpctl showport tells that swp2 of 105 switched to forwarding state within 1 second. But the flow recovered in about 30 seconds after the link of swp1 disconnected.&lt;/P&gt;&lt;P&gt;The experiment above seems show that&amp;nbsp;RSTP doesn't actually work on LS1028A. If the LS1028A support RSTP or is any error in my configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 01:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1402955#M9894</guid>
      <dc:creator>daoyu</dc:creator>
      <dc:date>2022-01-21T01:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1409316#M10001</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tested on the Real-time Edge 2.1 version kernel. two ls1028ardb boards links two cables. The Rstp can recover properly when unplug one of the cable .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;root@LS1028ARDB-Ubuntu:~# mstpctl showbridge Bridge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bridge CIST info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enabled yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bridge id 8.000.CA:6F:D6:DB:68:DC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;designated root 8.000.9E:43:DA:D3:1D:42&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regional root 8.000.CA:6F:D6:DB:68:DC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;root port swp0 (#1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;path cost 20000 internal path cost 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;max age 20 bridge max age 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;forward delay 15 bridge forward delay 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tx hold count 6 max hops 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hello time 2 ageing time 300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;force protocol version rstp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time since topology change 302&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topology change count 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topology change no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topology change port None&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;last topology change port swp0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When unplug the swp0 cable, you can see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=481 ttl=64 time=0.228 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=482 ttl=64 time=0.220 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=483 ttl=64 time=0.229 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=489 ttl=64 time=0.447 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=490 ttl=64 time=0.245 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64 bytes from 192.168.0.11: icmp_seq=491 ttl=64 time=0.219 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are some frames lost, then recover. total about 6 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that ok for your?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the device kernel driver only to set the port state. The relink state work by the stack layer and application. Should less the work on device driver.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 01:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1409316#M10001</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-02-07T01:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1412638#M10028</link>
      <description>&lt;P&gt;Thank you yiping!&lt;/P&gt;&lt;P&gt;I reinstalled the mstp application on the devices and tested follow your guidance. Rstp can recover correctly this time.&lt;/P&gt;&lt;P&gt;And I want to know if MSTP is supported on ls1028ardb board. I tried to switch the mode to MSTP, but it failed to mapping different flow with different VID to different tree.&lt;/P&gt;&lt;P&gt;Looking forward to your reply, sincerely.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 01:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1412638#M10028</guid>
      <dc:creator>daoyu</dc:creator>
      <dc:date>2022-02-12T01:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1413409#M10041</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I don't know what the failure issue be you are describing. For linux kernel as I learned, there is stp support, and chip set driver side only support enable or disable is enough. The management all by the user side daemon mstpd. The mstpd is not pre-installed in the release code and did not tested by NXP.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 04:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1413409#M10041</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-02-15T04:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1413496#M10042</link>
      <description>&lt;P&gt;Indeed for Stp and Rstp, driver side only support enable or disable for a port is enough. But for Mstp, that is not enough. Because a port can be discarding state in one MSTI, but be forwarding state in another MSTI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to section&amp;nbsp;&lt;STRONG&gt;16.4.14.3.6.2 Multiple Spanning Tree Protocol&lt;/STRONG&gt; of&amp;nbsp;&lt;EM&gt;QorIQ LS1028A Reference Manual&lt;/EM&gt;, VLAN_SRC_CHK and VLAN_PORT_MASK fields of VLAN_ACCESS register must be configured differently in different MSTI. This seems not be implemented in the current driver code.&lt;/P&gt;&lt;P&gt;Pls have a check of that.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1413496#M10042</guid>
      <dc:creator>daoyu</dc:creator>
      <dc:date>2022-02-15T07:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1415686#M10075</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You are right. I check the driver side and chip description. I confirm we don't have such MSTP support in hardware. But for MSTP, linux kernel side also don't have&amp;nbsp; such supporting interface. but somebody has start provide the protocol layer code support just yesterday(Feb 16).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://patchwork.kernel.org/project/netdevbpf/cover/20220216132934.1775649-1-tobias@waldekranz.com/" target="_blank"&gt;https://patchwork.kernel.org/project/netdevbpf/cover/20220216132934.1775649-1-tobias@waldekranz.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think this will take some time we support this part in driver site but not now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 02:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1415686#M10075</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-02-18T02:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: RSTP doesn't actually work on LS1028A</title>
      <link>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1415857#M10079</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 08:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RSTP-doesn-t-actually-work-on-LS1028A/m-p/1415857#M10079</guid>
      <dc:creator>daoyu</dc:creator>
      <dc:date>2022-02-18T08:06:10Z</dc:date>
    </item>
  </channel>
</rss>

