~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json (Architecture i386) and /tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json (Architecture sparc)


  1 [                                                   1 [
  2     {                                               2     {
  3         "id": "d959",                               3         "id": "d959",
  4         "name": "Add cBPF action with valid by      4         "name": "Add cBPF action with valid bytecode",
  5         "category": [                               5         "category": [
  6             "actions",                              6             "actions",
  7             "bpf"                                   7             "bpf"
  8         ],                                          8         ],
  9         "setup": [                                  9         "setup": [
 10             [                                      10             [
 11                 "$TC action flush action bpf",     11                 "$TC action flush action bpf",
 12                 0,                                 12                 0,
 13                 1,                                 13                 1,
 14                 255                                14                 255
 15             ]                                      15             ]
 16         ],                                         16         ],
 17         "cmdUnderTest": "$TC action add action     17         "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
 18         "expExitCode": "0",                        18         "expExitCode": "0",
 19         "verifyCmd": "$TC action get action bp     19         "verifyCmd": "$TC action get action bpf index 100",
 20         "matchPattern": "action order [0-9]*:      20         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
 21         "matchCount": "1",                         21         "matchCount": "1",
 22         "teardown": [                              22         "teardown": [
 23             "$TC action flush action bpf"          23             "$TC action flush action bpf"
 24         ]                                          24         ]
 25     },                                             25     },
 26     {                                              26     {
 27         "id": "f84a",                              27         "id": "f84a",
 28         "name": "Add cBPF action with invalid      28         "name": "Add cBPF action with invalid bytecode",
 29         "category": [                              29         "category": [
 30             "actions",                             30             "actions",
 31             "bpf"                                  31             "bpf"
 32         ],                                         32         ],
 33         "setup": [                                 33         "setup": [
 34             [                                      34             [
 35                 "$TC actions flush action bpf"     35                 "$TC actions flush action bpf",
 36                 0,                                 36                 0,
 37                 1,                                 37                 1,
 38                 255                                38                 255
 39             ]                                      39             ]
 40         ],                                         40         ],
 41         "cmdUnderTest": "$TC action add action     41         "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
 42         "expExitCode": "255",                      42         "expExitCode": "255",
 43         "verifyCmd": "$TC action get action bp     43         "verifyCmd": "$TC action get action bpf index 100",
 44         "matchPattern": "action order [0-9]*:      44         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
 45         "matchCount": "0",                         45         "matchCount": "0",
 46         "teardown": [                              46         "teardown": [
 47             "$TC actions flush action bpf"         47             "$TC actions flush action bpf"
 48         ]                                          48         ]
 49     },                                             49     },
 50     {                                              50     {
 51         "id": "e939",                              51         "id": "e939",
 52         "name": "Add eBPF action with valid ob     52         "name": "Add eBPF action with valid object-file",
 53         "category": [                              53         "category": [
 54             "actions",                             54             "actions",
 55             "bpf"                                  55             "bpf"
 56         ],                                         56         ],
 57         "setup": [                                 57         "setup": [
 58             [                                      58             [
 59                 "$TC action flush action bpf",     59                 "$TC action flush action bpf",
 60                 0,                                 60                 0,
 61                 1,                                 61                 1,
 62                 255                                62                 255
 63             ]                                      63             ]
 64         ],                                         64         ],
 65         "cmdUnderTest": "$TC action add action     65         "cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action-ebpf section action-ok index 667",
 66         "expExitCode": "0",                        66         "expExitCode": "0",
 67         "verifyCmd": "$TC action get action bp     67         "verifyCmd": "$TC action get action bpf index 667",
 68         "matchPattern": "action order [0-9]*:      68         "matchPattern": "action order [0-9]*: bpf action-ebpf:\\[action-ok\\] id [0-9].* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref",
 69         "matchCount": "1",                         69         "matchCount": "1",
 70         "teardown": [                              70         "teardown": [
 71             "$TC action flush action bpf"          71             "$TC action flush action bpf"
 72         ]                                          72         ]
 73     },                                             73     },
 74     {                                              74     {
 75         "id": "282d",                              75         "id": "282d",
 76         "name": "Add eBPF action with invalid      76         "name": "Add eBPF action with invalid object-file",
 77         "category": [                              77         "category": [
 78             "actions",                             78             "actions",
 79             "bpf"                                  79             "bpf"
 80         ],                                         80         ],
 81         "setup": [                                 81         "setup": [
 82             [                                      82             [
 83                 "$TC action flush action bpf",     83                 "$TC action flush action bpf",
 84                 0,                                 84                 0,
 85                 1,                                 85                 1,
 86                 255                                86                 255
 87             ]                                      87             ]
 88         ],                                         88         ],
 89         "cmdUnderTest": "$TC action add action     89         "cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action-ebpf section action-ko index 667",
 90         "expExitCode": "255",                      90         "expExitCode": "255",
 91         "verifyCmd": "$TC action get action bp     91         "verifyCmd": "$TC action get action bpf index 667",
 92         "matchPattern": "action order [0-9]*:      92         "matchPattern": "action order [0-9]*: bpf action-ebpf:\\[action-ko\\] id [0-9].*index 667 ref",
 93         "matchCount": "0",                         93         "matchCount": "0",
 94         "teardown": [                              94         "teardown": [
 95             [                                      95             [
 96                 "$TC action flush action bpf",     96                 "$TC action flush action bpf",
 97                 0,                                 97                 0,
 98                 1,                                 98                 1,
 99                 255                                99                 255
100             ]                                     100             ]
101         ]                                         101         ]
102     },                                            102     },
103     {                                             103     {
104         "id": "d819",                             104         "id": "d819",
105         "name": "Replace cBPF bytecode and act    105         "name": "Replace cBPF bytecode and action control",
106         "category": [                             106         "category": [
107             "actions",                            107             "actions",
108             "bpf"                                 108             "bpf"
109         ],                                        109         ],
110         "setup": [                                110         "setup": [
111             [                                     111             [
112                 "$TC actions flush action bpf"    112                 "$TC actions flush action bpf",
113                 0,                                113                 0,
114                 1,                                114                 1,
115                 255                               115                 255
116             ],                                    116             ],
117             [                                     117             [
118                 "$TC action add action bpf byt    118                 "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 555",
119                 0,                                119                 0,
120                 1,                                120                 1,
121                 255                               121                 255
122             ]                                     122             ]
123         ],                                        123         ],
124         "cmdUnderTest": "$TC action replace ac    124         "cmdUnderTest": "$TC action replace action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 555",
125         "expExitCode": "0",                       125         "expExitCode": "0",
126         "verifyCmd": "$TC action get action bp    126         "verifyCmd": "$TC action get action bpf index 555",
127         "matchPattern": "action order [0-9]*:     127         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' default-action drop.*index 555 ref",
128         "matchCount": "1",                        128         "matchCount": "1",
129         "teardown": [                             129         "teardown": [
130             "$TC action flush action bpf"         130             "$TC action flush action bpf"
131         ]                                         131         ]
132     },                                            132     },
133     {                                             133     {
134         "id": "6ae3",                             134         "id": "6ae3",
135         "name": "Delete cBPF action ",            135         "name": "Delete cBPF action ",
136         "category": [                             136         "category": [
137             "actions",                            137             "actions",
138             "bpf"                                 138             "bpf"
139         ],                                        139         ],
140         "setup": [                                140         "setup": [
141             [                                     141             [
142                 "$TC actions flush action bpf"    142                 "$TC actions flush action bpf",
143                 0,                                143                 0,
144                 1,                                144                 1,
145                 255                               145                 255
146             ],                                    146             ],
147             [                                     147             [
148                 "$TC action add action bpf byt    148                 "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 444",
149                 0,                                149                 0,
150                 1,                                150                 1,
151                 255                               151                 255
152             ]                                     152             ]
153         ],                                        153         ],
154         "cmdUnderTest": "$TC action delete act    154         "cmdUnderTest": "$TC action delete action bpf index 444",
155         "expExitCode": "0",                       155         "expExitCode": "0",
156         "verifyCmd": "$TC action get action bp    156         "verifyCmd": "$TC action get action bpf index 444",
157         "matchPattern": "action order [0-9]*:     157         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 444 ref",
158         "matchCount": "0",                        158         "matchCount": "0",
159         "teardown": [                             159         "teardown": [
160             "$TC action flush action bpf"         160             "$TC action flush action bpf"
161         ]                                         161         ]
162     },                                            162     },
163     {                                             163     {
164         "id": "3e0d",                             164         "id": "3e0d",
165         "name": "List cBPF actions",              165         "name": "List cBPF actions",
166         "category": [                             166         "category": [
167             "actions",                            167             "actions",
168             "bpf"                                 168             "bpf"
169         ],                                        169         ],
170         "setup": [                                170         "setup": [
171             [                                     171             [
172                 "$TC action flush action bpf",    172                 "$TC action flush action bpf",
173                 0,                                173                 0,
174                 1,                                174                 1,
175                 255                               175                 255
176             ],                                    176             ],
177             "$TC action add action bpf bytecod    177             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' ok index 101",
178             "$TC action add action bpf bytecod    178             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 102",
179             "$TC action add action bpf bytecod    179             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 33024,6 0 0 262144,6 0 0 0' continue index 103"
180         ],                                        180         ],
181         "cmdUnderTest": "$TC action list actio    181         "cmdUnderTest": "$TC action list action bpf",
182         "expExitCode": "0",                       182         "expExitCode": "0",
183         "verifyCmd": "$TC action list action b    183         "verifyCmd": "$TC action list action bpf",
184         "matchPattern": "action order [0-9]*:     184         "matchPattern": "action order [0-9]*: bpf bytecode",
185         "matchCount": "3",                        185         "matchCount": "3",
186         "teardown": [                             186         "teardown": [
187             "$TC actions flush action bpf"        187             "$TC actions flush action bpf"
188         ]                                         188         ]
189     },                                            189     },
190     {                                             190     {
191         "id": "55ce",                             191         "id": "55ce",
192         "name": "Flush BPF actions",              192         "name": "Flush BPF actions",
193         "category": [                             193         "category": [
194             "actions",                            194             "actions",
195             "bpf"                                 195             "bpf"
196         ],                                        196         ],
197         "setup": [                                197         "setup": [
198             [                                     198             [
199                 "$TC actions flush action bpf"    199                 "$TC actions flush action bpf",
200                 0,                                200                 0,
201                 1,                                201                 1,
202                 255                               202                 255
203             ],                                    203             ],
204             "$TC action add action bpf bytecod    204             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' ok index 101",
205             "$TC action add action bpf bytecod    205             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 102",
206             "$TC action add action bpf bytecod    206             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 33024,6 0 0 262144,6 0 0 0' continue index 103"
207         ],                                        207         ],
208         "cmdUnderTest": "$TC action flush acti    208         "cmdUnderTest": "$TC action flush action bpf",
209         "expExitCode": "0",                       209         "expExitCode": "0",
210         "verifyCmd": "$TC action list action b    210         "verifyCmd": "$TC action list action bpf",
211         "matchPattern": "action order [0-9]*:     211         "matchPattern": "action order [0-9]*: bpf bytecode",
212         "matchCount": "0",                        212         "matchCount": "0",
213         "teardown": [                             213         "teardown": [
214             "$TC actions flush action bpf"        214             "$TC actions flush action bpf"
215         ]                                         215         ]
216     },                                            216     },
217     {                                             217     {
218         "id": "ccc3",                             218         "id": "ccc3",
219         "name": "Add cBPF action with duplicat    219         "name": "Add cBPF action with duplicate index",
220         "category": [                             220         "category": [
221             "actions",                            221             "actions",
222             "bpf"                                 222             "bpf"
223         ],                                        223         ],
224         "setup": [                                224         "setup": [
225             [                                     225             [
226                 "$TC actions flush action bpf"    226                 "$TC actions flush action bpf",
227                 0,                                227                 0,
228                 1,                                228                 1,
229                 255                               229                 255
230             ],                                    230             ],
231             "$TC action add action bpf bytecod    231             "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 4294967295"
232         ],                                        232         ],
233         "cmdUnderTest": "$TC action add action    233         "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967295",
234         "expExitCode": "255",                     234         "expExitCode": "255",
235         "verifyCmd": "$TC action get action bp    235         "verifyCmd": "$TC action get action bpf index 4294967295",
236         "matchPattern": "action order [0-9]*:     236         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 4294967295",
237         "matchCount": "1",                        237         "matchCount": "1",
238         "teardown": [                             238         "teardown": [
239             "$TC action flush action bpf"         239             "$TC action flush action bpf"
240         ]                                         240         ]
241     },                                            241     },
242     {                                             242     {
243         "id": "89c7",                             243         "id": "89c7",
244         "name": "Add cBPF action with invalid     244         "name": "Add cBPF action with invalid index",
245         "category": [                             245         "category": [
246             "actions",                            246             "actions",
247             "bpf"                                 247             "bpf"
248         ],                                        248         ],
249         "setup": [                                249         "setup": [
250             [                                     250             [
251                 "$TC actions flush action bpf"    251                 "$TC actions flush action bpf",
252                 0,                                252                 0,
253                 1,                                253                 1,
254                 255                               254                 255
255             ]                                     255             ]
256         ],                                        256         ],
257         "cmdUnderTest": "$TC action add action    257         "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967296 cookie 123456",
258         "expExitCode": "255",                     258         "expExitCode": "255",
259         "verifyCmd": "$TC action ls action bpf    259         "verifyCmd": "$TC action ls action bpf",
260         "matchPattern": "action order [0-9]*:     260         "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*cookie 123456",
261         "matchCount": "0",                        261         "matchCount": "0",
262         "teardown": [                             262         "teardown": [
263             "$TC action flush action bpf"         263             "$TC action flush action bpf"
264         ]                                         264         ]
265     },                                            265     },
266     {                                             266     {
267         "id": "7ab9",                             267         "id": "7ab9",
268         "name": "Add cBPF action with cookie",    268         "name": "Add cBPF action with cookie",
269         "category": [                             269         "category": [
270             "actions",                            270             "actions",
271             "bpf"                                 271             "bpf"
272         ],                                        272         ],
273         "setup": [                                273         "setup": [
274             [                                     274             [
275                 "$TC actions flush action bpf"    275                 "$TC actions flush action bpf",
276                 0,                                276                 0,
277                 1,                                277                 1,
278                 255                               278                 255
279             ]                                     279             ]
280         ],                                        280         ],
281         "cmdUnderTest": "$TC action add action    281         "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' cookie d0d0d0d0d0d0d0d0",
282         "expExitCode": "0",                       282         "expExitCode": "0",
283         "verifyCmd": "$TC action list action b    283         "verifyCmd": "$TC action list action bpf",
284         "matchPattern": "action order [0-9]*:     284         "matchPattern": "action order [0-9]*: bpf.*cookie d0d0d0d0d0d0d0",
285         "matchCount": "1",                        285         "matchCount": "1",
286         "teardown": [                             286         "teardown": [
287             "$TC action flush action bpf"         287             "$TC action flush action bpf"
288         ]                                         288         ]
289     },                                            289     },
290     {                                             290     {
291         "id": "b8a1",                             291         "id": "b8a1",
292         "name": "Replace bpf action with inval    292         "name": "Replace bpf action with invalid goto_chain control",
293         "category": [                             293         "category": [
294             "actions",                            294             "actions",
295             "bpf"                                 295             "bpf"
296         ],                                        296         ],
297         "setup": [                                297         "setup": [
298             [                                     298             [
299                 "$TC actions flush action bpf"    299                 "$TC actions flush action bpf",
300                 0,                                300                 0,
301                 1,                                301                 1,
302                 255                               302                 255
303             ],                                    303             ],
304             "$TC action add action bpf bytecod    304             "$TC action add action bpf bytecode '1,6 0 0 4294967295' pass index 90"
305         ],                                        305         ],
306         "cmdUnderTest": "$TC action replace ac    306         "cmdUnderTest": "$TC action replace action bpf bytecode '1,6 0 0 4294967295' goto chain 42 index 90 cookie c1a0c1a0",
307         "expExitCode": "255",                     307         "expExitCode": "255",
308         "verifyCmd": "$TC action list action b    308         "verifyCmd": "$TC action list action bpf",
309         "matchPattern": "action order [0-9]*:     309         "matchPattern": "action order [0-9]*: bpf.* default-action pass.*index 90",
310         "matchCount": "1",                        310         "matchCount": "1",
311         "teardown": [                             311         "teardown": [
312             "$TC action flush action bpf"         312             "$TC action flush action bpf"
313         ]                                         313         ]
314     }                                             314     }
315 ]                                                 315 ]
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php