EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - 4.2.13.4 Basic TSN configure examples on switch

NXP Semiconductors Layerscape LS1028A BSP
136 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
If link ENETC port0 to SWP0:
#Set switch to merge enable:
devmem 0x1fc100048 32 0x111 #DEV_GMII:MM_CONFIG:ENABLE_CONFIG
#ENETC port setting
ip link set eth0 address 90:e2:ba:ff:ff:ff
tsntool> qbuset --device eth0 --preemptable 0xfe
./pktgen/pktgen_twoqueue.sh -i eth0 -q 0 -s 100 -n 2000 -m 90:e2:ba:ff:ff:ff
tsntool> regtool 0 0x11f18 #check tx merge counter, if non-zero means Qbu working.
4.2.13.3.5 Qav test
Following is the hardware test diagram:
Figure 12. Hardware test diagram (Setup2)
cbsset --device eth0 --tc 7 --percentage 60
cbsset --device eth0 --tc 6 --percentage 20
./pktgen/pktgen_twoqueue.sh -i eth0 -q 6 -s 1500 -n 0 -m 10:11:12:13:14:15
#check the test center result, TC6 should 1/3 frames of TC7.
Check one queue:
./pktgen/pktgen_sample01_simple.sh -i eth0 -q 7 -s 500 -n 0
This gets approx 60% percentage line rate.
4.2.13.4
Basic TSN configure examples on switch
4.2.13.4.1 Switch configuration
The following figure shows the switch configuration.
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
117

Table of Contents

Related product manuals