Issue on switch single port mode ping on nxp-ls1028ardb with LSDK20.04 v4.19 kernel

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

Issue on switch single port mode ping on nxp-ls1028ardb with LSDK20.04 v4.19 kernel

1,060 Views
hittzt
Contributor V

Hi experts,

There is a qustion about switch port ping on LS1028ardb board.

In the user manual of LSDK20.04 for felix switch, the felix switch  can be set to single port mode, like the following:

8.6.3.3.3 Single port mode
In this configuration mode the traffic received on all external ports is forwarded to the CPU port. However, the L2 forwarding is not enabled by default. Each switch port interface can be used independently to send and receive packets.

If use two ls1028ardb boards, set the switches to single mode, and set the switch ports with same net segment, like 192.168.2.x on the two switches, connect any two switch port of the two boards respectively, the ping will fail.

kernel version is v4.19 of LSDK20.04.

Did you ever do this type of test before?

Is there any logs or other known issue with that?

Thanks,

Zhantao

0 Kudos
6 Replies

964 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Tang zhantao,

Please refer to the procedure provided in the attached test log provided by the testing team.

root@LS1028ARDB-Ubuntu:~# ls /sys/bus/pci/devices/0000:00:00.2/net/
eno2
root@LS1028ARDB-Ubuntu:~# ip link set eno2 up
root@LS1028ARDB-Ubuntu:~# ls /sys/bus/pci/devices/0000:00:00.5/net/
swp0 swp1 swp2 swp3
root@LS1028ARDB-Ubuntu:~# ip link add name switch type bridge
root@LS1028ARDB-Ubuntu:~# ip link set switch up
root@LS1028ARDB-Ubuntu:~# ip link set swp0 down
root@LS1028ARDB-Ubuntu:~# ip link set swp0 up
root@LS1028ARDB-Ubuntu:~# ip link set swp1 down
root@LS1028ARDB-Ubuntu:~# ip link set swp1 up
root@LS1028ARDB-Ubuntu:~# ip link set swp0 master switch
root@LS1028ARDB-Ubuntu:~# ip link set swp1 master switch
root@LS1028ARDB-Ubuntu:~# bridge link
6: swp0 state UP @eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master switch state forwarding priority 32 cost 4
7: swp1 state LOWERLAYERDOWN @eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master switch state disabled priority 32 cost 100
root@LS1028ARDB-Ubuntu:~# echo $?
0
root@LS1028ARDB-Ubuntu:~# ifconfig switch 1.1.1.1 netmask 255.255.255.0
root@LS1028ARDB-Ubuntu:~# ping 1.1.1.2 -c 10

Thanks,

Yiping

0 Kudos

964 Views
hittzt
Contributor V

Hi Yiping,

Thanks for your reply.

But what you give is for bridge mode, for there are commands like "ip link set swp0 master switch",

that means adding swp0 into a bridge. And in that mode, the ping is OK, I know that.

My question is without bridge mode, on one ls1028ardb board, the ports swp0 ...... swp3 stand for single ethernet ports(not added into bridge), and config them with the same net segment connected to another ls1028ardb board with similar configuration of

ports swp0......swp3, the ping will fail.

Thanks,

Zhantao

0 Kudos

964 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zhantao,

I just discussed with LSDK testing team, without bridge mode cannot be used in 4.19 Linux Kernel(only can be used in Kernel 5.4), there is known issue. 

Thanks,

Yiping

0 Kudos

964 Views
hittzt
Contributor V

Hi Yiping,

Thanks for your reply.

OK, got it.

That is to say, only DSA switch support the without-bridge mode in kernel v5.4.

And would you please to tell what issue in v4.19 and if it will be fixed in future?

Thanks,

Zhantao

0 Kudos

964 Views
yipingwang
NXP TechSupport
NXP TechSupport

No plan to fix it.

0 Kudos

964 Views
hittzt
Contributor V

OK, got it.

Thanks,

Zhantao

0 Kudos