<?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>LayerscapeのトピックRe: Packet Forward from RGMII-1 to RGMII-2 on ls1043 with IP address and port modification</title>
    <link>https://community.nxp.com/t5/Layerscape/Packet-Forward-from-RGMII-1-to-RGMII-2-on-ls1043-with-IP-address/m-p/1792474#M13894</link>
    <description>&lt;P&gt;Please refer to "8.2.6 Frame Manager Configuration Tool User Guide" in LSDK 21.08 user manual.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 00:58:38 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2024-01-22T00:58:38Z</dc:date>
    <item>
      <title>Packet Forward from RGMII-1 to RGMII-2 on ls1043 with IP address and port modification</title>
      <link>https://community.nxp.com/t5/Layerscape/Packet-Forward-from-RGMII-1-to-RGMII-2-on-ls1043-with-IP-address/m-p/1785283#M13837</link>
      <description>&lt;P&gt;As per attached screenshot I wanted to send RTP packet from PC1 to PC2 with help of FMC policy.&lt;/P&gt;&lt;P&gt;For POC ,initially I'm only trying to route RGMII-1 UDP packets , where i wanted to change source IPv4 , destination IPv4 , source port and destination port before it goes in to TX frame queue of RGMII-2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written policy where i am unable to figure out how to change those parameter. Could you please point out how it can be done in attached policy .&lt;/P&gt;&lt;P&gt;Below are debugs&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; cat /sys/class/net/eth2/fqids&lt;/P&gt;&lt;P&gt;Rx error: 331&lt;BR /&gt;Rx default: 332&lt;BR /&gt;Rx PCD: 14592- 14719&lt;BR /&gt;Tx confirmation (mq): 333- 348&lt;BR /&gt;Tx error: 349&lt;BR /&gt;Tx default confirmation: 350&lt;BR /&gt;Tx: 351- 366&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; cat /sys/class/net/eth3/fqids&lt;/P&gt;&lt;P&gt;Rx error: 367&lt;BR /&gt;Rx default: 368&lt;BR /&gt;Rx PCD: 14720- 14847&lt;BR /&gt;Tx confirmation (mq): 369- 384&lt;BR /&gt;Tx error: 385&lt;BR /&gt;Tx default confirmation: 386&lt;BR /&gt;Tx: 387- 402&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;BR /&gt;This fmc configuration file sets the 6x1G and 1x10G on LS1043 to use the&lt;BR /&gt;policies indicated below.&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cfgdata&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;config&amp;gt;&lt;BR /&gt;&amp;lt;engine name="fm0"&amp;gt;&lt;BR /&gt;&amp;lt;port type="MAC" number="2" policy="nxp_ls1043_policy_mac2"/&amp;gt;&lt;BR /&gt;&amp;lt;port type="MAC" number="3" policy="nxp_ls1043_policy_mac3"/&amp;gt;&lt;BR /&gt;&amp;lt;/engine&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/cfgdata&amp;gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;netpcd xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xsi:noNamespaceSchemaLocation="xmlProject/pcd.xsd" name="example"&lt;BR /&gt;description="route configuration"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- xxxxxxxxxxxxxxxxxxxxxxxx Distributions xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;distribution name="nxp_ls1043_eth2_ipv4_udp_dist"&amp;gt;&lt;BR /&gt;&amp;lt;!-- frame match rule --&amp;gt;&lt;BR /&gt;&amp;lt;protocols&amp;gt;&lt;BR /&gt;&amp;lt;protocolref name="udp"/&amp;gt;&lt;BR /&gt;&amp;lt;/protocols&amp;gt;&lt;BR /&gt;&amp;lt;!-- frame handling rule --&amp;gt;&lt;BR /&gt;&amp;lt;action type="classification" name="eth2_udp_classif"/&amp;gt;&lt;BR /&gt;&amp;lt;/distribution&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;distribution name="nxp_ls1043_eth2_default_dist"&amp;gt;&lt;BR /&gt;&amp;lt;queue count="1" base="0x3900"/&amp;gt;&lt;BR /&gt;&amp;lt;/distribution&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;distribution name="nxp_ls1043_eth3_default_dist"&amp;gt;&lt;BR /&gt;&amp;lt;queue count="1" base="0x3980"/&amp;gt;&lt;BR /&gt;&amp;lt;/distribution&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;!--&amp;nbsp; &amp;nbsp; xxxxxxxxxxxxxxxxxxxxxxxx classification xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;classification name="eth2_udp_classif"&amp;gt;&lt;BR /&gt;&amp;lt;key&amp;gt;&lt;BR /&gt;&amp;lt;fieldref name="ipv4.src"/&amp;gt;&lt;BR /&gt;&amp;lt;/key&amp;gt;&lt;BR /&gt;&amp;lt;entry&amp;gt;&lt;BR /&gt;&amp;lt;!-- If source IP is 192.168.2.70 then route packatet to RGMII-2 to send to PC2 --&amp;gt;&lt;BR /&gt;&amp;lt;data&amp;gt;0xC0A80246&amp;lt;/data&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;!-- TODO :&amp;nbsp; CODE FOR UDP PACKET's PARAM UPDATE (src.ip, dest.ip, dest.port, src.port) --&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;lt;!-- TX frame queue of RGMII-2 --&amp;gt;&lt;BR /&gt;&amp;lt;queue&amp;nbsp; count="15" base="387"/&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/classification&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- xxxxxxxxxxxxxxxxxxxxxxxxxx Policies xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;policy name="nxp_ls1043_policy_mac2"&amp;gt;&lt;BR /&gt;&amp;lt;dist_order&amp;gt;&lt;BR /&gt;&amp;lt;distributionref name="nxp_ls1043_eth2_ipv4_udp_dist"/&amp;gt;&lt;BR /&gt;&amp;lt;distributionref name="nxp_ls1043_eth2_default_dist"/&amp;gt;&lt;BR /&gt;&amp;lt;/dist_order&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;policy name="nxp_ls1043_policy_mac3"&amp;gt;&lt;BR /&gt;&amp;lt;dist_order&amp;gt;&lt;BR /&gt;&amp;lt;distributionref name="nxp_ls1043_eth3_default_dist"/&amp;gt;&lt;BR /&gt;&amp;lt;/dist_order&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/netpcd&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note : I am not using DPDK, so please do not drag conversion in that direction, I wanted to route and modified packet from kernel space using DPAA engine and without cpu(core) intervention or process on that packets. .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargav J&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 06:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Packet-Forward-from-RGMII-1-to-RGMII-2-on-ls1043-with-IP-address/m-p/1785283#M13837</guid>
      <dc:creator>bhargavjayswal</dc:creator>
      <dc:date>2024-01-10T06:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Packet Forward from RGMII-1 to RGMII-2 on ls1043 with IP address and port modification</title>
      <link>https://community.nxp.com/t5/Layerscape/Packet-Forward-from-RGMII-1-to-RGMII-2-on-ls1043-with-IP-address/m-p/1792474#M13894</link>
      <description>&lt;P&gt;Please refer to "8.2.6 Frame Manager Configuration Tool User Guide" in LSDK 21.08 user manual.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 00:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Packet-Forward-from-RGMII-1-to-RGMII-2-on-ls1043-with-IP-address/m-p/1792474#M13894</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2024-01-22T00:58:38Z</dc:date>
    </item>
  </channel>
</rss>

