Hello Sharath,
In the dts file, please refer to the following definition for the shared mac interface.
compatible = "fsl,p2041-dpa-ethernet-shared", "fsl,dpa-ethernet-shared";
According to the Kernel boot log, it seem that the shared_mac interface has already been set up successfully.
How did you use the Shared_MAC interface? Have you set up the USDPAA application to seed the buffer pool.
Would you please display the buffer pool information with the following command?
# cat /sys/devices/platform/ffe000000.soc/ffe31a000.bman/pool_count/17
Here is an example about how to ping shared-mac interface on T2080RDB, please change the configuration and policy files according to your target board. Here fm1-mac9 is the shared_mac interface and the IP address has already been specified in the policy file.
root@t2080rdb:/usr/etc# ifconfig fm1-mac9 192.168.2.104
root@t2080rdb:/usr/etc# fmc -c usdpaa_config_t2_serdes_66_15_22g.xml -p usdpaa_policy_hash_shared_mac_ipv4.xml -a
root@t2080rdb:/usr/etc# ipfwd_app 7 -b 1600:1600:1600 -c usdpaa_config_t2_serdes_66_15_22g.xml -p usdpaa_policy_hash_shared_mac_ipv4.xml -d 0x10000000
Found /fsl,dpaa/ethernet@0, Tx Channel = 802, FMAN = 0, Port ID = 1
Found /fsl,dpaa/ethernet@1, Tx Channel = 803, FMAN = 0, Port ID = 2
Found /fsl,dpaa/ethernet@3, Tx Channel = 805, FMAN = 0, Port ID = 4
Found /fsl,dpaa/ethernet@9, Tx Channel = 801, FMAN = 0, Port ID = a
Found /fsl,dpaa/ethernet@2, Tx Channel = 804, FMAN = 0, Port ID = 3
Found /fsl,dpaa/ethernet@10, MAC-LESS node
Configuring for 3 network interfaces
Allocated DMA region size 0x10000000
cpu hotplug daemon not running: No such file or directory
ipfwd_app starting
Message queue to send: /mq_snd_1904
Message queue to receive: /mq_rcv_1904
Configured 1G port @ FMAN:0, MAC:4 as IF_IDX:4
Configured 10G port @ FMAN:0, MAC:10 as IF_IDX:90
Configured 1G port @ FMAN:0, MAC:3 as IF_IDX:3
Released 1600 bufs to BPID 7
Released 1600 bufs to BPID 8
Released 1600 bufs to BPID 9
Released 1600 bufs to BPID 17
Data stashing: Enabled
Thread uid:0 alive (on cpu 7)
ping from the PC:
b25805@star:~$ ping 192.168.2.104
PING 192.168.2.104 (192.168.2.104) 56(84) bytes of data.
64 bytes from 192.168.2.104: icmp_seq=10 ttl=64 time=0.504 ms
64 bytes from 192.168.2.104: icmp_seq=11 ttl=64 time=0.237 ms
64 bytes from 192.168.2.104: icmp_seq=12 ttl=64 time=0.188 ms
64 bytes from 192.168.2.104: icmp_seq=13 ttl=64 time=0.238 ms
64 bytes from 192.168.2.104: icmp_seq=14 ttl=64 time=0.238 ms
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------