<?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: LX2160 - network interface name deterministic when adding internal network interface to DPSW in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1564939#M11476</link>
    <description>&lt;P&gt;&lt;SPAN&gt;There is no mac-addr in the generate_dpl.c API.&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;&amp;nbsp;/* retrieve response parameters */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;rsp_params = (struct dpni_rsp_get_attr *)cmd.params;&amp;nbsp; attr-&amp;gt;options = le32_to_cpu(rsp_params-&amp;gt;options);&amp;nbsp; attr-&amp;gt;num_queues = rsp_params-&amp;gt;num_queues;&amp;nbsp; attr-&amp;gt;num_rx_tcs = rsp_params-&amp;gt;num_rx_tcs;&amp;nbsp; attr-&amp;gt;num_tx_tcs = rsp_params-&amp;gt;num_tx_tcs;&amp;nbsp; attr-&amp;gt;mac_filter_entries = rsp_params-&amp;gt;mac_filter_entries;&amp;nbsp; attr-&amp;gt;vlan_filter_entries = rsp_params-&amp;gt;vlan_filter_entries;&amp;nbsp; attr-&amp;gt;qos_entries = rsp_params-&amp;gt;qos_entries;&amp;nbsp; attr-&amp;gt;fs_entries = le16_to_cpu(rsp_params-&amp;gt;fs_entries);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;qos_key_size = rsp_params-&amp;gt;qos_key_size;&amp;nbsp; attr-&amp;gt;fs_key_size = rsp_params-&amp;gt;fs_key_size;&amp;nbsp; attr-&amp;gt;wriop_version = le16_to_cpu(rsp_params-&amp;gt;wriop_version);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;num_cgs = rsp_params-&amp;gt;num_cgs;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;num_ceetm_ch = rsp_params-&amp;gt;num_ceetm_ch;root@localhost:~# ls-listni&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.2 (interface: eth0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.1 (interface: eth1, end point: dpmac.2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.0 (interface: eth2, end point: dpmac.17) root@localhost:~# ifconfig eth0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;eth0: flags=4098&amp;lt;BROADCAST,MULTICAST&amp;gt;&amp;nbsp; mtu 1500&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ether 0a:ad:54:53:52:00&amp;nbsp; txqueuelen 1000&amp;nbsp; (Ethernet)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets 0&amp;nbsp; bytes 0 (0.0 B)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX errors 0&amp;nbsp; dropped 0&amp;nbsp; overruns 0&amp;nbsp; frame 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets 0&amp;nbsp; bytes 0 (0.0 B)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX errors 0&amp;nbsp; dropped 0 overruns 0&amp;nbsp; carrier 0&amp;nbsp; collisions 0&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;root@localhost:~# restool dpni info dpni.2 | grep -i mac mac address: 00:00:05:00:00:05&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mac_entries: 16&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@localhost:~# ifconfig eth0 hw ether 00:E0:0C:00:77:01 root@localhost:~# restool dpni info dpni.2 | grep -i mac mac address: 00:e0:0c:00:77:01&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mac_entries: 16&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;&amp;nbsp;attr-&amp;gt;num_opr = le16_to_cpu(rsp_params-&amp;gt;num_opr);&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;&amp;nbsp;return 0;&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;When created one dpni with ls-addni -n, it will create an linux interface named eth&amp;lt;x&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Customer can configure the mac address with "ifconfig eth&amp;lt;x&amp;gt; hw ether &amp;lt;mac-address&amp;gt;" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;here is log&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 06:15:42 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-12-06T06:15:42Z</dc:date>
    <item>
      <title>LX2160 - network interface name deterministic when adding internal network interface to DPSW</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1547935#M11355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to find a way such that I can setup the bridge with netplan when adding a c&lt;SPAN&gt;reated a DPNI assigned to Linux kernel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Create internal network interface with specified mac address such that I can add a rule to rename this interface to 'eth-internal-1g':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@evt1-3:~# ls-addni --no-link --mac-addr=0a:ad:54:53:52:00&lt;BR /&gt;Created interface: eth-internal-1g (object:dpni.0, endpoint: )&lt;BR /&gt;root@evt1-3:~# dmesg&lt;BR /&gt;[ 251.721856] fsl_mc_allocator dpbp.8: Adding to iommu group 8&lt;BR /&gt;[ 251.722573] fsl_mc_allocator dpmcp.25: Adding to iommu group 8&lt;BR /&gt;[ 251.722794] fsl_mc_allocator dpcon.143: Adding to iommu group 8&lt;BR /&gt;[ 251.722938] fsl_mc_allocator dpcon.142: Adding to iommu group 8&lt;BR /&gt;[ 251.723064] fsl_mc_allocator dpcon.141: Adding to iommu group 8&lt;BR /&gt;[ 251.723193] fsl_mc_allocator dpcon.140: Adding to iommu group 8&lt;BR /&gt;[ 251.723316] fsl_mc_allocator dpcon.139: Adding to iommu group 8&lt;BR /&gt;[ 251.723449] fsl_mc_allocator dpcon.138: Adding to iommu group 8&lt;BR /&gt;[ 251.723581] fsl_mc_allocator dpcon.137: Adding to iommu group 8&lt;BR /&gt;[ 251.723728] fsl_mc_allocator dpcon.136: Adding to iommu group 8&lt;BR /&gt;[ 251.723862] fsl_mc_allocator dpcon.135: Adding to iommu group 8&lt;BR /&gt;[ 251.723995] fsl_mc_allocator dpcon.134: Adding to iommu group 8&lt;BR /&gt;[ 251.724152] fsl_mc_allocator dpcon.133: Adding to iommu group 8&lt;BR /&gt;[ 251.724305] fsl_mc_allocator dpcon.132: Adding to iommu group 8&lt;BR /&gt;[ 251.724464] fsl_mc_allocator dpcon.131: Adding to iommu group 8&lt;BR /&gt;[ 251.724605] fsl_mc_allocator dpcon.130: Adding to iommu group 8&lt;BR /&gt;[ 251.724745] fsl_mc_allocator dpcon.129: Adding to iommu group 8&lt;BR /&gt;[ 251.724880] fsl_mc_allocator dpcon.128: Adding to iommu group 8&lt;BR /&gt;[ 251.726854] fsl_dpaa2_eth dpni.0: Adding to iommu group 8&lt;BR /&gt;[ 251.891594] fsl_dpaa2_eth dpni.0: Probed interface eth0&lt;BR /&gt;[ 251.894141] fsl_dpaa2_eth dpni.0 &lt;STRONG&gt;eth-internal-1g&lt;/STRONG&gt;: renamed from eth0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Create a switch and add the newly created network interface and two DPMAC ports to the switch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@evt1-3:~# ls-addsw -i=3 dpmac.18 dpmac.17 dpni.0&lt;BR /&gt;Created ETHSW object dpsw.0 with the following 3 ports: eth-j5a,eth-j5b,eth0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@evt1-3:~# dmesg&lt;BR /&gt;[ 438.655042] fsl_mc_allocator dpbp.9: Adding to iommu group 8&lt;BR /&gt;[ 438.655752] fsl_mc_allocator dpmcp.26: Adding to iommu group 8&lt;BR /&gt;[ 438.658254] dpaa2_ethsw dpsw.0: Adding to iommu group 8&lt;BR /&gt;[ 438.744750] dpaa2_ethsw dpsw.0 eth-j5b: renamed from eth0&lt;BR /&gt;[ 438.788444] dpaa2_ethsw dpsw.0: probed 3 port switch&lt;BR /&gt;[ 438.795564] dpaa2_ethsw dpsw.0 eth-j5a: renamed from eth1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have rules in place to rename the DPMAC18 and DPMAC17 to eth-j5a and eth-j5b and the restool automatically creates a ethernet interface associated with the dpni.0 and its naming may or may not be deterministic (in this case it is eth0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The next thing I want to do is add these interfaces to the bridge br0 but because the auto-created ethernet interface associated with the dpni that has no link attached depends on the Linux kernel enumeration I don't have a way to create a rule to rename this interface.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;15: eth-internal-1g: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;BR /&gt;link/ether 0a:ad:54:53:52:00 brd ff:ff:ff:ff:ff:ff&lt;BR /&gt;16: eth-j5b: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;BR /&gt;link/ether 0a:ad:54:53:52:12 brd ff:ff:ff:ff:ff:ff&lt;BR /&gt;17: eth-j5a: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;BR /&gt;link/ether 0a:ad:54:53:52:11 brd ff:ff:ff:ff:ff:ff&lt;BR /&gt;18: &lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;eth0&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;BR /&gt;link/ether 86:9f:93:2b:fb:0c brd ff:ff:ff:ff:ff:ff&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to assign a MAC address for these ethernet interfaces associated with the dpni with --no-link option? Or is there any other way to make these interfaces associated with the switch port deterministic?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 21:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1547935#M11355</guid>
      <dc:creator>hungtran669</dc:creator>
      <dc:date>2022-11-02T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160 - network interface name deterministic when adding internal network interface to DPSW</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1551686#M11386</link>
      <description>&lt;P&gt;Please refer to the following procedure.&lt;/P&gt;
&lt;P&gt;1. Create a DPNI for assigning to Linux kernel.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ls-addni --no-link&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Output log:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Created interface: eth0 (object:dpni.1, endpoint: )&lt;/P&gt;
&lt;P&gt;2. Create DPRC with DPNI attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;source /usr/local/dpdk/dpaa2/dynamic_dpl.sh dpni&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (...)&lt;BR /&gt;#&amp;nbsp; ##&amp;nbsp;#&amp;nbsp;#&amp;nbsp;##################### Configured Interfaces ####################&lt;BR /&gt;Interface Name Endpoint Mac Address&lt;/P&gt;
&lt;P&gt;============== ======== ==================&lt;BR /&gt;dpni.3 UNCONNECTED 00:00:00:00:5:1&lt;/P&gt;
&lt;P&gt;3. Using the restool wrapper script, create a DPSW connected to the two DPNIs and a DPMAC.&lt;BR /&gt;ls-addsw dpni.1 dpni.3 dpmac.1&lt;BR /&gt;Created ETHSW object dpsw.0 with the following 3 ports: eth2,eth3,eth4&lt;/P&gt;
&lt;P&gt;4. Configure the switch interfaces and add them to a bridge.&lt;/P&gt;
&lt;P&gt;ip link set dev eth2 down&lt;BR /&gt;ip link set dev eth2 address 00:00:00:00:00:02&lt;BR /&gt;ip link set dev eth2 up&lt;BR /&gt;ip link set dev eth3 down&lt;BR /&gt;ip link set dev eth3 address 00:00:00:00:00:03&lt;BR /&gt;ip link set dev eth3 up&lt;BR /&gt;ip link set dev eth4 down&lt;BR /&gt;ip link set dev eth4 address 00:00:00:00:00:04&lt;BR /&gt;ip link set dev eth4 up&lt;BR /&gt;ip link add name br0 type bridge&lt;BR /&gt;ip link set dev br0 up&lt;BR /&gt;ip link set dev eth2 master br0&lt;BR /&gt;ip link set dev eth3 master br0&lt;BR /&gt;ip link set dev eth4 master br0&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 06:41:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1551686#M11386</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-11-10T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160 - network interface name deterministic when adding internal network interface to DPSW</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1561638#M11452</link>
      <description>&lt;P&gt;This still doesn't help with what I'm hoping to achieve.&lt;/P&gt;&lt;P&gt;I want to be able to setup a dpsw within the dpl_&amp;lt;switchname&amp;gt;.dts file such that on bootup this switch gets configured without having to use a script that will run through the procedure above.&lt;/P&gt;&lt;P&gt;For example, I understand that the following is a wrapper script that calls restool to create and update the dpni with a fixed mac-addr.&lt;/P&gt;&lt;P&gt;if [ -n "$mac_addr" ]; then&lt;BR /&gt;$restool dpni update $dpni --mac-addr=$mac_addr&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ls-addni --no-link --mac-addr=0a:ad:54:53:52:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I take a look at the dpl file generated via say:&amp;nbsp;restool dprc generate-dpl dprc.1 &amp;gt; running_dpl.dts&lt;/P&gt;&lt;P&gt;I only see the dpni object like this:&lt;/P&gt;&lt;P&gt;/* ------------ DPNI --------------*/&lt;BR /&gt;dpni@0 {&lt;BR /&gt;compatible = "fsl,dpni";&lt;BR /&gt;type = "DPNI_TYPE_NIC";&lt;BR /&gt;num_queues = &amp;lt;16&amp;gt;;&lt;BR /&gt;num_tcs = &amp;lt;1&amp;gt;;&lt;BR /&gt;num_cgs = &amp;lt;1&amp;gt;;&lt;BR /&gt;mac_filter_entries = &amp;lt;16&amp;gt;;&lt;BR /&gt;vlan_filter_entries = &amp;lt;0&amp;gt;;&lt;BR /&gt;fs_entries = &amp;lt;64&amp;gt;;&lt;BR /&gt;qos_entries = &amp;lt;0&amp;gt;;&lt;BR /&gt;dist_key_size = &amp;lt;56&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Is there any dpni object property in the dpl_xxx.dts file that allows me to specify a fixed mac-addr=&amp;lt; 0x0a 0xad 0x54 0x53 0x52 0x00 &amp;gt; similar to dpc_xxx.dts for dpmac objects property port_mac_address=&amp;lt;&amp;lt;0x0a 0xad 0x54 0x53 0x52 0x12&amp;gt;;??&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 02:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1561638#M11452</guid>
      <dc:creator>hungtran669</dc:creator>
      <dc:date>2022-11-30T02:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: LX2160 - network interface name deterministic when adding internal network interface to DPSW</title>
      <link>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1564939#M11476</link>
      <description>&lt;P&gt;&lt;SPAN&gt;There is no mac-addr in the generate_dpl.c API.&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;&amp;nbsp;/* retrieve response parameters */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;rsp_params = (struct dpni_rsp_get_attr *)cmd.params;&amp;nbsp; attr-&amp;gt;options = le32_to_cpu(rsp_params-&amp;gt;options);&amp;nbsp; attr-&amp;gt;num_queues = rsp_params-&amp;gt;num_queues;&amp;nbsp; attr-&amp;gt;num_rx_tcs = rsp_params-&amp;gt;num_rx_tcs;&amp;nbsp; attr-&amp;gt;num_tx_tcs = rsp_params-&amp;gt;num_tx_tcs;&amp;nbsp; attr-&amp;gt;mac_filter_entries = rsp_params-&amp;gt;mac_filter_entries;&amp;nbsp; attr-&amp;gt;vlan_filter_entries = rsp_params-&amp;gt;vlan_filter_entries;&amp;nbsp; attr-&amp;gt;qos_entries = rsp_params-&amp;gt;qos_entries;&amp;nbsp; attr-&amp;gt;fs_entries = le16_to_cpu(rsp_params-&amp;gt;fs_entries);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;qos_key_size = rsp_params-&amp;gt;qos_key_size;&amp;nbsp; attr-&amp;gt;fs_key_size = rsp_params-&amp;gt;fs_key_size;&amp;nbsp; attr-&amp;gt;wriop_version = le16_to_cpu(rsp_params-&amp;gt;wriop_version);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;num_cgs = rsp_params-&amp;gt;num_cgs;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;attr-&amp;gt;num_ceetm_ch = rsp_params-&amp;gt;num_ceetm_ch;root@localhost:~# ls-listni&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.2 (interface: eth0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.1 (interface: eth1, end point: dpmac.2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dprc.1/dpni.0 (interface: eth2, end point: dpmac.17) root@localhost:~# ifconfig eth0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;eth0: flags=4098&amp;lt;BROADCAST,MULTICAST&amp;gt;&amp;nbsp; mtu 1500&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ether 0a:ad:54:53:52:00&amp;nbsp; txqueuelen 1000&amp;nbsp; (Ethernet)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets 0&amp;nbsp; bytes 0 (0.0 B)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX errors 0&amp;nbsp; dropped 0&amp;nbsp; overruns 0&amp;nbsp; frame 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets 0&amp;nbsp; bytes 0 (0.0 B)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX errors 0&amp;nbsp; dropped 0 overruns 0&amp;nbsp; carrier 0&amp;nbsp; collisions 0&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;root@localhost:~# restool dpni info dpni.2 | grep -i mac mac address: 00:00:05:00:00:05&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mac_entries: 16&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@localhost:~# ifconfig eth0 hw ether 00:E0:0C:00:77:01 root@localhost:~# restool dpni info dpni.2 | grep -i mac mac address: 00:e0:0c:00:77:01&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mac_entries: 16&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;&amp;nbsp;attr-&amp;gt;num_opr = le16_to_cpu(rsp_params-&amp;gt;num_opr);&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;&amp;nbsp;return 0;&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;When created one dpni with ls-addni -n, it will create an linux interface named eth&amp;lt;x&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Customer can configure the mac address with "ifconfig eth&amp;lt;x&amp;gt; hw ether &amp;lt;mac-address&amp;gt;" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;here is log&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 06:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LX2160-network-interface-name-deterministic-when-adding-internal/m-p/1564939#M11476</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-12-06T06:15:42Z</dc:date>
    </item>
  </channel>
</rss>

