EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - Page 113

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...
tsntool> verbose
tsntool> qbvset --device eth0 --entryfile ./qbv0.txt
ethtool -S eth0
ping 192.168.0.2 -c 1 #should not pass any frame since gates all off.
Case 2: basetime test
The following result is based on case 1 qbv1.txt gate list.
#create 1s gate
cat > qbv1.txt << EOF
t0 11111111b 10000
t1 00000000b 99990000
EOF
tsntool> regtool 0 0x18
tsntool> regtool 0 0x1c
#read the current time and add 0x2000000000, about 2 minutes, for example 0x2000011234 as result
tsntool> qbvset --device eth0 --entryfile qbv1.txt --basetime 0x2000011234
tsntool> qbvget --device eth0 #You can check configchange time
tsntool> regtool 0 0x11a10 #check pending status, 0x1 means time gate is working
#waiting to change state, ping remote computer
ping 192.168.0.2 -A -s 1000
#The reply time will be about 100ms
Since 10000 ns max limit package size 1250 bytes.
ping 192.168.0.2 -c 1 -s 1300 #frame should not pass
Case 3: Qbv performance test
Test ENETC port0(MAC0)
Figure 9. Setup
cat > qbv5.txt << EOF
t0 11111111b 1000000
t1 00000000b 1000000
EOF
qbvset --device eth0 --entryfile qbv5.txt
./pktgen/pktgen_twoqueue.sh -i eth0 -q 3 -n 0
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
113

Table of Contents

Related product manuals