Create dpsw error in LX2160

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

Create dpsw error in LX2160

432 Views
linxs
Contributor I

Excuse me, after following the steps below to create dpsw, an error occurred

create dpsw

ls-addsw -i=4 dpmac.5 dpmac.15 dpni.1 dpni.7

dmesg:

linxs_0-1741858284658.png

ip link add name br1 type bridge

ip link set br1 up

ip link set eth4 down

ip link set eth4 address 00:01:00:00:01:00

ip link set eth4 master br1

last when i set eth4 up,an error occurred,dmesg:

linxs_1-1741858442219.png

 

and fsl_mc_console:

linxs_2-1741858489000.png

How should this error be resolved and will it affect the work of dpsw?

Thank you for your response

 

0 Kudos
Reply
1 Reply

417 Views
LFGP
NXP TechSupport
NXP TechSupport
please review the next example:
Create 2 DPNIs and a DPSW between them and an external DPMAC
$ ls-addni -nq=1 -n && ls-addni -nq=1 -n
Created interface: eth3 (object:dpni.2, endpoint: )
Created interface: eth4 (object:dpni.3, endpoint: )
$ ls-addsw dpni.2 dpni.3 dpmac.3
Created ETHSW object dpsw.0 with the following 3 ports: eth5,eth6,eth7
Setup the br0 bridge and assign the switch interfaces to it
$ ip link add name br0 type bridge
$ ip link set dev br0 up
$ ip link set dev eth5 master br0
$ ip link set dev eth6 master br0
$ ip link set dev eth7 master br0
$ ip link set dev eth5 up
$ ip link set dev eth6 up
$ ip link set dev eth7 up
0 Kudos
Reply