<?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 CEETM configuration in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1246553#M7682</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm facing issues using CEETM on a LX2160ARDB.&lt;/P&gt;&lt;P&gt;My setup is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ------- |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;Traffic Generator | ------- | LX2160&amp;nbsp; |&amp;nbsp; ------- | capture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;generator sends frames on 2 interfaces of LX2160 with ip dst = 192.85.3.3 and ip src=192.85.x.3&amp;nbsp; (x= 1,2)&lt;/P&gt;&lt;P&gt;I try to aggregate these flows to 1 output interface and use ceetm to shape traffic.&lt;/P&gt;&lt;P&gt;I use the following commands to configure my board:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;ls-addni dpmac.18
//creates eth2
ls-addni dpmac.3
//creates eth3
ls-addni -nq=16 -t=8 dpmac.4
//creates eth4
ifconfig eth2 hw ether 00:e0:0c:77:01:00
ifconfig eth2 192.85.1.1/24 up
ifconfig eth3 hw ether 00:e0:0c:77:02:00
ifconfig eth3 192.85.2.1/24 up
ifconfig eth4 hw ether 00:e0:0c:77:03:00
ifconfig eth4 192.85.3.1/24 up
arp -s 192.85.3.3 00:94:10:00:00:03
iptables -P FORWARD ACCEPT

// at that point, frames are transmitted and present in capture

//next ceetm configuration
tc qdisc add dev eth4 root handle 1: ceetm type root
tc class add dev eth4 parent 1: classid 1:1 ceetm type root cir 1000mibit
tc qdisc add dev eth4 parent 1:1 handle 2: ceetm type prio prioA 3 prioB 1 separate 1
tc class add dev eth4 parent 2: classid 2:1 ceetm type prio mode WEIGHTED_A weight 100
tc class add dev eth4 parent 2: classid 2:2 ceetm type prio mode WEIGHTED_A weight 200
tc filter add dev eth4 parent 1: protocol ip u32 match ip src 192.85.1.3/32 flowid 1:1
tc filter add dev eth4 parent 2: protocol ip u32 match ip src 192.85.1.3/32 flowid 2:1
tc filter add dev eth4 parent 1: protocol ip u32 match ip src 192.85.2.3/32 flowid 1:1
tc filter add dev eth4 parent 2: protocol ip u32 match ip src 192.85.2.3/32 flowid 2:2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that only one flow is transmitted: when doing "tc -s&amp;nbsp; class show eth4" flowid 2:1 frames are all discarded, only flow 2:2 is transmitted (even though link is not full and both are completely transmitted when i remove ceetm)&lt;/P&gt;&lt;P&gt;Is there a problem with my configuration?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 15:52:16 GMT</pubDate>
    <dc:creator>LeNormich</dc:creator>
    <dc:date>2021-03-16T15:52:16Z</dc:date>
    <item>
      <title>CEETM configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1246553#M7682</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm facing issues using CEETM on a LX2160ARDB.&lt;/P&gt;&lt;P&gt;My setup is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ------- |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;Traffic Generator | ------- | LX2160&amp;nbsp; |&amp;nbsp; ------- | capture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;generator sends frames on 2 interfaces of LX2160 with ip dst = 192.85.3.3 and ip src=192.85.x.3&amp;nbsp; (x= 1,2)&lt;/P&gt;&lt;P&gt;I try to aggregate these flows to 1 output interface and use ceetm to shape traffic.&lt;/P&gt;&lt;P&gt;I use the following commands to configure my board:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;ls-addni dpmac.18
//creates eth2
ls-addni dpmac.3
//creates eth3
ls-addni -nq=16 -t=8 dpmac.4
//creates eth4
ifconfig eth2 hw ether 00:e0:0c:77:01:00
ifconfig eth2 192.85.1.1/24 up
ifconfig eth3 hw ether 00:e0:0c:77:02:00
ifconfig eth3 192.85.2.1/24 up
ifconfig eth4 hw ether 00:e0:0c:77:03:00
ifconfig eth4 192.85.3.1/24 up
arp -s 192.85.3.3 00:94:10:00:00:03
iptables -P FORWARD ACCEPT

// at that point, frames are transmitted and present in capture

//next ceetm configuration
tc qdisc add dev eth4 root handle 1: ceetm type root
tc class add dev eth4 parent 1: classid 1:1 ceetm type root cir 1000mibit
tc qdisc add dev eth4 parent 1:1 handle 2: ceetm type prio prioA 3 prioB 1 separate 1
tc class add dev eth4 parent 2: classid 2:1 ceetm type prio mode WEIGHTED_A weight 100
tc class add dev eth4 parent 2: classid 2:2 ceetm type prio mode WEIGHTED_A weight 200
tc filter add dev eth4 parent 1: protocol ip u32 match ip src 192.85.1.3/32 flowid 1:1
tc filter add dev eth4 parent 2: protocol ip u32 match ip src 192.85.1.3/32 flowid 2:1
tc filter add dev eth4 parent 1: protocol ip u32 match ip src 192.85.2.3/32 flowid 1:1
tc filter add dev eth4 parent 2: protocol ip u32 match ip src 192.85.2.3/32 flowid 2:2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that only one flow is transmitted: when doing "tc -s&amp;nbsp; class show eth4" flowid 2:1 frames are all discarded, only flow 2:2 is transmitted (even though link is not full and both are completely transmitted when i remove ceetm)&lt;/P&gt;&lt;P&gt;Is there a problem with my configuration?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1246553#M7682</guid>
      <dc:creator>LeNormich</dc:creator>
      <dc:date>2021-03-16T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: CEETM configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1246948#M7685</link>
      <description>&lt;P&gt;Please check whether the following Kernel configurations have been enabled.&lt;/P&gt;
&lt;P&gt;CONFIG_FSL_DPAA2_ETH_CEETM=y&lt;BR /&gt;CONFIG_NET_SCHED=y&lt;/P&gt;
&lt;P&gt;CONFIG_NET_CLS=y&lt;BR /&gt;CONFIG_NET_CLS_ACT=y&lt;BR /&gt;CONFIG_NET_CLS_U32=y&lt;BR /&gt;CONFIG_NET_EMATCH=y&lt;BR /&gt;CONFIG_NET_EMATCH_U32=y&lt;/P&gt;
&lt;P&gt;Please try the following example.&lt;/P&gt;
&lt;P&gt;$ tc qdisc add dev eth4 root handle 1: ceetm type root&lt;/P&gt;
&lt;P&gt;$ tc class add dev eth4 parent 1: classid 1:1 ceetm type root cir 1000mibit&lt;/P&gt;
&lt;P&gt;$ tc qdisc add dev&amp;nbsp;eth4 parent 1:1 handle 2: ceetm type prio prioA 3 prioB 1 separate 1&lt;/P&gt;
&lt;P&gt;$ tc class add dev&amp;nbsp;eth4 parent 2: classid 2:1 ceetm type prio mode STRICT_PRIORITY&lt;/P&gt;
&lt;P&gt;$&amp;nbsp;tc class add dev eth4 parent 2: classid 2:2 ceetm type prio mode WEIGHTED_A weight 200&lt;/P&gt;
&lt;P&gt;$ tc filter add dev&amp;nbsp;eth4 parent 1: protocol ip u32 match ip src 192.85.1.3/32 flowid 1:1&lt;/P&gt;
&lt;P&gt;$ tc filter add dev eth4 parent 2: protocol ip u32 match&amp;nbsp;ip src 192.85.1.3/32 flowid 2:1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ tc filter add dev eth4 parent 1: protocol ip u32 match ip src 192.85.2.3/32 flowid 1:1&lt;/P&gt;
&lt;P&gt;$ tc filter add dev eth4 parent 2: protocol ip u32 match ip src 192.85.2.3/32 flowid 2:2&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 07:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1246948#M7685</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-17T07:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: CEETM configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1247337#M7688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;II just tried it with the same result: only traffic from 192.85.2.3 is going through (traffic flow 2:2)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1247337#M7688</guid>
      <dc:creator>LeNormich</dc:creator>
      <dc:date>2021-03-17T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: CEETM configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1248343#M7692</link>
      <description>&lt;P&gt;When trying with more flows, I always observe that traffic flow 2:1 is systematically rejected.&lt;/P&gt;&lt;P&gt;Any idea as to why this happens?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1248343#M7692</guid>
      <dc:creator>LeNormich</dc:creator>
      <dc:date>2021-03-18T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: CEETM configuration</title>
      <link>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1249357#M7704</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have made a setup a little bit different from you (but this does not affect the ceetm) due to the limited&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;boardfarm configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my setup one port - MAC17 is not connected to TC but to another LX2 that injects traffic into MAC17, while&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MAC3 and MAC4 are linked with the TC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two flows are injected in parallel:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-one into M17 using tcpreplay &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-one into MAC3 from the TC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flows are forwarded to MAC4 and shaped according to the weights.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attached caption it can be seen the different bandwidth for each received flow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - for 192.85.1.3: 141Mbps &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - for 192.168.2.3: 824Mbps &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output of tc shows no rejections (ignore the values, because they are not in synch with what it is in TC. I have tested&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;on MAC17 first with a ping flood, that's why the difference was so huge in the beginning. The idea is to observe that there is no rejection&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;as you suggested):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tc -s class show dev eth3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class ceetm 1:1 parent 1: leaf 2: type root CIR 1048Mbit EIR 0bit CBS 0 EBS 0 coupled 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;class ceetm 2:1 parent 2: type prio mode WEIGHTED_A weight 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ceetm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deq bytes 3228190&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deq frames 32941&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rej bytes 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rej frames 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;class ceetm 2:2 parent 2: type prio mode WEIGHTED_A weight 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ceetm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deq bytes 42951208872&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deq frames 33660822&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rej bytes 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rej frames 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below are the commands I have execued for the setup. In my case, I used an empty dpl that's why I had to create the macs and dpnis. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no issue with the ceetm config according to what I observe. you need to check your setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My commands:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dpmac create --mac-id=3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dpmac create --mac-id=4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dpmac create --mac-id=17&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dprc assign dprc.1 --object=dpmac.3 --plugged=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dprc assign dprc.1 --object=dpmac.4 --plugged=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restool dprc assign dprc.1 --object=dpmac.17 --plugged=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ls-addni dpmac.17&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ls-addni dpmac.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ls-addni -nq=16 -t=8 dpmac.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth1 hw ether 00:e0:0c:77:01:00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth1 192.85.1.1/24 up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth2 hw ether 00:e0:0c:77:02:00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth2 192.85.2.1/24 up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth3 hw ether 00:e0:0c:77:03:00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ifconfig eth3 192.85.3.1/24 up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arp -s 192.85.3.3 00:94:10:00:00:03&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tc qdisc add dev eth3 root handle 1: ceetm type root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc class add dev eth3 parent 1: classid 1:1 ceetm type root cir 1000mibit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc qdisc add dev eth3 parent 1:1 handle 2: ceetm type prio prioA 3 prioB 1 separate 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc class add dev eth3 parent 2: classid 2:1 ceetm type prio mode WEIGHTED_A weight 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc class add dev eth3 parent 2: classid 2:2 ceetm type prio mode WEIGHTED_A weight 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc filter add dev eth3 parent 1: protocol ip u32 match ip src 192.85.1.3/32 flowid 1:1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc filter add dev eth3 parent 2: protocol ip u32 match ip src 192.85.1.3/32 flowid 2:1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc filter add dev eth3 parent 1: protocol ip u32 match ip src 192.85.2.3/32 flowid 1:1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tc filter add dev eth3 parent 2: protocol ip u32 match ip src 192.85.2.3/32 flowid 2:2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/CEETM-configuration/m-p/1249357#M7704</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-22T06:12:21Z</dc:date>
    </item>
  </channel>
</rss>

