<?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>i.MX ProcessorsのトピックTCP TX stuck with bonding interface</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/TCP-TX-stuck-with-bonding-interface/m-p/1481297#M191985</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the FEC interface of an i.MX8MN as a primary slave in a bonding interface in active_backup mode. We are conducting performance tests using iperf3 as a TCP client. However, when unplugging the cable, the traffic drops to 0Mb/s instead of switching to the backup interface. This does not happen when using the other interface as primary (a LAN78XX), when using UDP, or download TCP traffic (iperf3 -R).&lt;/P&gt;&lt;P&gt;We identified a potential timing error because adding a delay in &lt;SPAN&gt;fec_enet_adjust_link&lt;/SPAN&gt;() greatly reduces the occurrence of this error. We noticed that the TCP socket file descriptors are not writable (using poll()). tcp_check_space() is no longer called once the connection is stuck, and the TCP TX space reaches a negative number. We observed the same issue with other TCP TX applications, like scp. Limiting the bandwidth to 40Mb/s also reduces the occurrence.&lt;/P&gt;&lt;P&gt;We are using linux-boundary 5.4.110: boundary-imx_5.4.x_2.3.0: e5cde7b05e548bebb7cc21113505538b98c0984e as part of a Linux BSP.&lt;/P&gt;&lt;P&gt;Our hypothesis is that the TCP TX queue is stuck because of a synchronization error between &lt;SPAN&gt;fec_enet_adjust_link&lt;/SPAN&gt;(), fec_enet_interrupt() and napi_complete() within the softirq. We would like to request your assistance in diagnosing and fixing this issue.&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 15:36:16 GMT</pubDate>
    <dc:creator>ederibaucourt</dc:creator>
    <dc:date>2022-06-28T15:36:16Z</dc:date>
    <item>
      <title>TCP TX stuck with bonding interface</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TCP-TX-stuck-with-bonding-interface/m-p/1481297#M191985</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the FEC interface of an i.MX8MN as a primary slave in a bonding interface in active_backup mode. We are conducting performance tests using iperf3 as a TCP client. However, when unplugging the cable, the traffic drops to 0Mb/s instead of switching to the backup interface. This does not happen when using the other interface as primary (a LAN78XX), when using UDP, or download TCP traffic (iperf3 -R).&lt;/P&gt;&lt;P&gt;We identified a potential timing error because adding a delay in &lt;SPAN&gt;fec_enet_adjust_link&lt;/SPAN&gt;() greatly reduces the occurrence of this error. We noticed that the TCP socket file descriptors are not writable (using poll()). tcp_check_space() is no longer called once the connection is stuck, and the TCP TX space reaches a negative number. We observed the same issue with other TCP TX applications, like scp. Limiting the bandwidth to 40Mb/s also reduces the occurrence.&lt;/P&gt;&lt;P&gt;We are using linux-boundary 5.4.110: boundary-imx_5.4.x_2.3.0: e5cde7b05e548bebb7cc21113505538b98c0984e as part of a Linux BSP.&lt;/P&gt;&lt;P&gt;Our hypothesis is that the TCP TX queue is stuck because of a synchronization error between &lt;SPAN&gt;fec_enet_adjust_link&lt;/SPAN&gt;(), fec_enet_interrupt() and napi_complete() within the softirq. We would like to request your assistance in diagnosing and fixing this issue.&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TCP-TX-stuck-with-bonding-interface/m-p/1481297#M191985</guid>
      <dc:creator>ederibaucourt</dc:creator>
      <dc:date>2022-06-28T15:36:16Z</dc:date>
    </item>
  </channel>
</rss>

