pdump: fix error code check when creating/canceling pthread
[dpdk.git] / examples / performance-thread / l3fwd-thread / test.sh
1 #!/bin/bash
2
3 case "$1" in
4
5         ######################
6         # 1 L-core per pcore #
7         ######################
8
9         "1.1")
10                 echo "1.1 1 L-core per pcore (N=2)"
11
12                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \
13                                 --enable-jumbo --max-pkt-len 1500  \
14                                 --rx="(0,0,0,0)(1,0,0,0)"          \
15                                 --tx="(1,0)"                       \
16                                 --stat-lcore 2                     \
17                                 --no-lthread
18
19                 ;;
20
21         "1.2")
22                 echo "1.2 1 L-core per pcore (N=4)"
23
24                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \
25                                 --enable-jumbo --max-pkt-len 1500  \
26                                 --rx="(0,0,0,0)(1,0,1,1)"          \
27                                 --tx="(2,0)(3,1)"                  \
28                                 --stat-lcore 4                     \
29                                 --no-lthread
30                 ;;
31
32         "1.3")
33                 echo "1.3 1 L-core per pcore (N=8)"
34
35                 ./build/l3fwd-thread -c 1ff -n 2 -- -P -p 3                          \
36                                 --enable-jumbo --max-pkt-len 1500                            \
37                                 --rx="(0,0,0,0)(0,1,1,1)(1,0,2,2)(1,1,3,3)"                  \
38                                 --tx="(4,0)(5,1)(6,2)(7,3)"                                  \
39                                 --stat-lcore 8                                               \
40                                 --no-lthread
41                 ;;
42
43         "1.4")
44                 echo "1.3 1 L-core per pcore (N=16)"
45
46                 ./build/l3fwd-thread -c 3ffff -n 2 -- -P -p 3                          \
47                                 --enable-jumbo --max-pkt-len 1500                              \
48                                 --rx="(0,0,0,0)(0,1,1,1)(0,2,2,2)(0,3,3,3)(1,0,4,4)(1,1,5,5)(1,2,6,6)(1,3,7,7)" \
49                                 --tx="(8,0)(9,1)(10,2)(11,3)(12,4)(13,5)(14,6)(15,7)"          \
50                                 --stat-lcore 16                                                \
51                                 --no-lthread
52                 ;;
53
54
55         ######################
56         # N L-core per pcore #
57         ######################
58
59         "2.1")
60                 echo "2.1 N L-core per pcore (N=2)"
61
62                 ./build/l3fwd-thread -c ff -n 2 --lcores="2,(0-1)@0" -- -P -p 3 \
63                                 --enable-jumbo --max-pkt-len 1500                       \
64                                 --rx="(0,0,0,0)(1,0,0,0)"                               \
65                                 --tx="(1,0)"                                            \
66                                 --stat-lcore 2                                          \
67                                 --no-lthread
68
69                 ;;
70
71         "2.2")
72                 echo "2.2 N L-core per pcore (N=4)"
73
74                 ./build/l3fwd-thread -c ff -n 2 --lcores="(0-3)@0,4" -- -P -p 3 \
75                                 --enable-jumbo --max-pkt-len 1500  \
76                                 --rx="(0,0,0,0)(1,0,1,1)"          \
77                                 --tx="(2,0)(3,1)"                  \
78                                 --stat-lcore 4                     \
79                                 --no-lthread
80                 ;;
81
82         "2.3")
83                 echo "2.3 N L-core per pcore (N=8)"
84
85                 ./build/l3fwd-thread -c 3ffff -n 2 --lcores="(0-7)@0,8" -- -P -p 3     \
86                                 --enable-jumbo --max-pkt-len 1500                              \
87                                 --rx="(0,0,0,0)(0,1,1,1)(1,0,2,2)(1,1,3,3)"                    \
88                                 --tx="(4,0)(5,1)(6,2)(7,3)"                                    \
89                                 --stat-lcore 8                                                 \
90                                 --no-lthread
91                 ;;
92
93         "2.4")
94                 echo "2.3 N L-core per pcore (N=16)"
95
96                 ./build/l3fwd-thread -c 3ffff -n 2 --lcores="(0-15)@0,16" -- -P -p 3   \
97                                 --enable-jumbo --max-pkt-len 1500                              \
98                                 --rx="(0,0,0,0)(0,1,1,1)(0,2,2,2)(0,3,3,3)(1,0,4,4)(1,1,5,5)(1,2,6,6)(1,3,7,7)" \
99                                 --tx="(8,0)(9,1)(10,2)(11,3)(12,4)(13,5)(14,6)(15,7)"          \
100                                 --stat-lcore 16                                                \
101                                 --no-lthread
102                 ;;
103
104
105         #########################
106         # N L-threads per pcore #
107         #########################
108
109         "3.1")
110                 echo "3.1 N L-threads per pcore (N=2)"
111
112                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3  \
113                                 --enable-jumbo --max-pkt-len 1500   \
114                                 --rx="(0,0,0,0)(1,0,0,0)"           \
115                                 --tx="(0,0)"                        \
116                                 --stat-lcore 1
117                 ;;
118
119         "3.2")
120                 echo "3.2 N L-threads per pcore (N=4)"
121
122                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3  \
123                                 --enable-jumbo --max-pkt-len 1500   \
124                                 --rx="(0,0,0,0)(1,0,0,1)"           \
125                                 --tx="(0,0)(0,1)"                   \
126                                 --stat-lcore 1
127                 ;;
128
129         "3.3")
130                 echo "3.2 N L-threads per pcore (N=8)"
131
132                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3                             \
133                                 --enable-jumbo --max-pkt-len 1500                              \
134                                 --rx="(0,0,0,0)(0,1,0,1)(1,0,0,2)(1,1,0,3)"                    \
135                                 --tx="(0,0)(0,1)(0,2)(0,3)"                                    \
136                                 --stat-lcore 1
137                 ;;
138
139         "3.4")
140                 echo "3.2 N L-threads per pcore (N=16)"
141
142                 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3                             \
143                                 --enable-jumbo --max-pkt-len 1500                              \
144                                 --rx="(0,0,0,0)(0,1,0,1)(0,2,0,2)(0,0,0,3)(1,0,0,4)(1,1,0,5)(1,2,0,6)(1,3,0,7)" \
145                                 --tx="(0,0)(0,1)(0,2)(0,3)(0,4)(0,5)(0,6)(0,7)"                \
146                                 --stat-lcore 1
147                 ;;
148
149 esac