Shared-MAC and MAC-less Implementation in DPAA Linux Kernel Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shared-MAC and MAC-less Implementation in DPAA Linux Kernel Driver

Shared-MAC and MAC-less Implementation in DPAA Linux Kernel Driver

      A shared-MAC device is one that can be used from two Linux and/or USDPAA partitions. Shared-MAC net device can be used in two scenarios, two or more Linux separate partitions under control of hypervisor(topaz), one Linux and one USDPAA running in the same partition.


      1. DPAA Ethernet Driver Types


      2. BMan Driver for shared-MAC and MAC-less port


      3. QMan Driver for shared-MAC and MAC-less port


      4. Running  Shared-MAC between USDPAA and Linux

Attachments
Comments

Hi, Yiping. I configured fm1-mac10 as a shared mac in B4860, and I could find the net device in linux using "ifconfig -a", but it was always ping time out.

I want to use the shared mac as a Private DPAA Ethernet Driver device in linux, How could I realize the goal.

You could refer to the dts file b4860qds-usdpaa-shared-interfaces.dts, ethernet@9 is defined as shared MAC between USDPAA and Linux, please also check your network environment regarding ping time out problem.

Thanks,

Yiping

Hi. Yiping.

I used uImage-b4860qds.dtb as fdtfile in the first time, and it could ping another B4860qds board.

root@b4860qds:~# ifconfig fm1-mac10 172.168.103.222 up

root@b4860qds:~# ping 172.168.103.111

PING 172.168.103.111 (172.168.103.111) 56(84) bytes of data.

64 bytes from 172.168.103.111: icmp_seq=1 ttl=64 time=0.424 ms

64 bytes from 172.168.103.111: icmp_seq=2 ttl=64 time=0.217 ms

64 bytes from 172.168.103.111: icmp_seq=3 ttl=64 time=0.194 ms

64 bytes from 172.168.103.111: icmp_seq=4 ttl=64 time=0.196 ms

64 bytes from 172.168.103.111: icmp_seq=5 ttl=64 time=0.194 ms

64 bytes from 172.168.103.111: icmp_seq=6 ttl=64 time=0.198 ms

^C

--- 172.168.103.111 ping statistics ---

6 packets transmitted, 6 received, 0% packet loss, time 4997ms

rtt min/avg/max/mdev = 0.194/0.237/0.424/0.084 ms

In the second time, I compiled a shared mac dtb following the steps below

freescale@freescale-sdk:~/SDK/SDK1.6/linux_source/arch/powerpc/boot/dts$ ./dtc -f -b 0 -p 1024 -I dts -O dtb -o b4860qds_shared_mac.dtb b4860qds-usdpaa-shared-interfaces.dts

freescale@freescale-sdk:~/SDK/SDK1.6/linux_source/arch/powerpc/boot/dts$ cp b4860qds_shared_mac.dtb /tftpboot/

I boot the linux with the b4860qds_shared_mac.dtb, and ping with the fm1-mac10.

It was ping time out.

root@b4860qds:~# ifconfig fm1-mac10 172.168.103.222 up

root@b4860qds:~# ping 172.168.103.111

PING 172.168.103.111 (172.168.103.111) 56(84) bytes of data.

From 172.168.103.222 icmp_seq=1 Destination Host Unreachable

From 172.168.103.222 icmp_seq=2 Destination Host Unreachable

From 172.168.103.222 icmp_seq=3 Destination Host Unreachable

--- 172.168.103.111 ping statistics ---

5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms

pipe 3

Hi, Yiping.

     I have ran the Lpm_fwd_app to test the shared mac.

Shared mac can not work unless the Lpm_fwd_app is running.

I have to find the solution from demo.

Thanks,

Dongsf

Hello Dongsf,

The Linux driver is the one to initialize the shared FMAN port, but it is the USDPAA partition that allocates and seeds the buffers in the Shared Buffer Pool.

Thanks,

Yiping

No ratings
Version history
Last update:
‎10-19-2014 05:43 AM
Updated by: