1*c66b2111SPedro Tammela[ 2*c66b2111SPedro Tammela { 3*c66b2111SPedro Tammela "id": "abdc", 4*c66b2111SPedro Tammela "name": "Reference pedit action object in filter", 5*c66b2111SPedro Tammela "category": [ 6*c66b2111SPedro Tammela "infra", 7*c66b2111SPedro Tammela "pedit" 8*c66b2111SPedro Tammela ], 9*c66b2111SPedro Tammela "setup": [ 10*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 11*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 12*c66b2111SPedro Tammela "$TC action add action pedit munge offset 0 u8 clear index 1" 13*c66b2111SPedro Tammela ], 14*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action pedit index 1", 15*c66b2111SPedro Tammela "expExitCode": "0", 16*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 17*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 18*c66b2111SPedro Tammela "matchCount": "1", 19*c66b2111SPedro Tammela "teardown": [ 20*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 21*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 22*c66b2111SPedro Tammela "$TC actions flush action pedit" 23*c66b2111SPedro Tammela ] 24*c66b2111SPedro Tammela }, 25*c66b2111SPedro Tammela { 26*c66b2111SPedro Tammela "id": "7a70", 27*c66b2111SPedro Tammela "name": "Reference mpls action object in filter", 28*c66b2111SPedro Tammela "category": [ 29*c66b2111SPedro Tammela "infra", 30*c66b2111SPedro Tammela "mpls" 31*c66b2111SPedro Tammela ], 32*c66b2111SPedro Tammela "setup": [ 33*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 34*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 35*c66b2111SPedro Tammela "$TC action add action mpls pop protocol ipv4 index 1" 36*c66b2111SPedro Tammela ], 37*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action mpls index 1", 38*c66b2111SPedro Tammela "expExitCode": "0", 39*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 40*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 41*c66b2111SPedro Tammela "matchCount": "1", 42*c66b2111SPedro Tammela "teardown": [ 43*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 44*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 45*c66b2111SPedro Tammela "$TC actions flush action mpls" 46*c66b2111SPedro Tammela ] 47*c66b2111SPedro Tammela }, 48*c66b2111SPedro Tammela { 49*c66b2111SPedro Tammela "id": "d241", 50*c66b2111SPedro Tammela "name": "Reference bpf action object in filter", 51*c66b2111SPedro Tammela "category": [ 52*c66b2111SPedro Tammela "infra", 53*c66b2111SPedro Tammela "bpf" 54*c66b2111SPedro Tammela ], 55*c66b2111SPedro Tammela "setup": [ 56*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 57*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 58*c66b2111SPedro Tammela "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 1" 59*c66b2111SPedro Tammela ], 60*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action bpf index 1", 61*c66b2111SPedro Tammela "expExitCode": "0", 62*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 63*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 64*c66b2111SPedro Tammela "matchCount": "1", 65*c66b2111SPedro Tammela "teardown": [ 66*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 67*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 68*c66b2111SPedro Tammela "$TC actions flush action bpf" 69*c66b2111SPedro Tammela ] 70*c66b2111SPedro Tammela }, 71*c66b2111SPedro Tammela { 72*c66b2111SPedro Tammela "id": "383a", 73*c66b2111SPedro Tammela "name": "Reference connmark action object in filter", 74*c66b2111SPedro Tammela "category": [ 75*c66b2111SPedro Tammela "infra", 76*c66b2111SPedro Tammela "connmark" 77*c66b2111SPedro Tammela ], 78*c66b2111SPedro Tammela "setup": [ 79*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 80*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 81*c66b2111SPedro Tammela "$TC actions add action connmark" 82*c66b2111SPedro Tammela ], 83*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action connmark index 1", 84*c66b2111SPedro Tammela "expExitCode": "0", 85*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 86*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 87*c66b2111SPedro Tammela "matchCount": "1", 88*c66b2111SPedro Tammela "teardown": [ 89*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 90*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 91*c66b2111SPedro Tammela "$TC actions flush action connmark" 92*c66b2111SPedro Tammela ] 93*c66b2111SPedro Tammela }, 94*c66b2111SPedro Tammela { 95*c66b2111SPedro Tammela "id": "c619", 96*c66b2111SPedro Tammela "name": "Reference csum action object in filter", 97*c66b2111SPedro Tammela "category": [ 98*c66b2111SPedro Tammela "infra", 99*c66b2111SPedro Tammela "csum" 100*c66b2111SPedro Tammela ], 101*c66b2111SPedro Tammela "setup": [ 102*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 103*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 104*c66b2111SPedro Tammela "$TC actions add action csum ip4h index 1" 105*c66b2111SPedro Tammela ], 106*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action csum index 1", 107*c66b2111SPedro Tammela "expExitCode": "0", 108*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 109*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 110*c66b2111SPedro Tammela "matchCount": "1", 111*c66b2111SPedro Tammela "teardown": [ 112*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 113*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 114*c66b2111SPedro Tammela "$TC actions flush action csum" 115*c66b2111SPedro Tammela ] 116*c66b2111SPedro Tammela }, 117*c66b2111SPedro Tammela { 118*c66b2111SPedro Tammela "id": "a93d", 119*c66b2111SPedro Tammela "name": "Reference ct action object in filter", 120*c66b2111SPedro Tammela "category": [ 121*c66b2111SPedro Tammela "infra", 122*c66b2111SPedro Tammela "ct" 123*c66b2111SPedro Tammela ], 124*c66b2111SPedro Tammela "setup": [ 125*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 126*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 127*c66b2111SPedro Tammela "$TC actions add action ct index 1" 128*c66b2111SPedro Tammela ], 129*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action ct index 1", 130*c66b2111SPedro Tammela "expExitCode": "0", 131*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 132*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 133*c66b2111SPedro Tammela "matchCount": "1", 134*c66b2111SPedro Tammela "teardown": [ 135*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 136*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 137*c66b2111SPedro Tammela "$TC actions flush action ct" 138*c66b2111SPedro Tammela ] 139*c66b2111SPedro Tammela }, 140*c66b2111SPedro Tammela { 141*c66b2111SPedro Tammela "id": "8bb5", 142*c66b2111SPedro Tammela "name": "Reference ctinfo action object in filter", 143*c66b2111SPedro Tammela "category": [ 144*c66b2111SPedro Tammela "infra", 145*c66b2111SPedro Tammela "ctinfo" 146*c66b2111SPedro Tammela ], 147*c66b2111SPedro Tammela "setup": [ 148*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 149*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 150*c66b2111SPedro Tammela "$TC action add action ctinfo index 1" 151*c66b2111SPedro Tammela ], 152*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action ctinfo index 10", 153*c66b2111SPedro Tammela "expExitCode": "0", 154*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 155*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 156*c66b2111SPedro Tammela "matchCount": "1", 157*c66b2111SPedro Tammela "teardown": [ 158*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 159*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 160*c66b2111SPedro Tammela "$TC actions flush action ctinfo" 161*c66b2111SPedro Tammela ] 162*c66b2111SPedro Tammela }, 163*c66b2111SPedro Tammela { 164*c66b2111SPedro Tammela "id": "2241", 165*c66b2111SPedro Tammela "name": "Reference gact action object in filter", 166*c66b2111SPedro Tammela "category": [ 167*c66b2111SPedro Tammela "infra", 168*c66b2111SPedro Tammela "gact" 169*c66b2111SPedro Tammela ], 170*c66b2111SPedro Tammela "setup": [ 171*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 172*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 173*c66b2111SPedro Tammela "$TC actions add action pass index 1" 174*c66b2111SPedro Tammela ], 175*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action gact index 1", 176*c66b2111SPedro Tammela "expExitCode": "0", 177*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 178*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 179*c66b2111SPedro Tammela "matchCount": "1", 180*c66b2111SPedro Tammela "teardown": [ 181*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 182*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 183*c66b2111SPedro Tammela "$TC actions flush action gact" 184*c66b2111SPedro Tammela ] 185*c66b2111SPedro Tammela }, 186*c66b2111SPedro Tammela { 187*c66b2111SPedro Tammela "id": "35e9", 188*c66b2111SPedro Tammela "name": "Reference gate action object in filter", 189*c66b2111SPedro Tammela "category": [ 190*c66b2111SPedro Tammela "infra", 191*c66b2111SPedro Tammela "gate" 192*c66b2111SPedro Tammela ], 193*c66b2111SPedro Tammela "setup": [ 194*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 195*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 196*c66b2111SPedro Tammela "$TC action add action gate priority 1 sched-entry close 100000000ns index 1" 197*c66b2111SPedro Tammela ], 198*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action gate index 1", 199*c66b2111SPedro Tammela "expExitCode": "0", 200*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 201*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 202*c66b2111SPedro Tammela "matchCount": "1", 203*c66b2111SPedro Tammela "teardown": [ 204*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 205*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 206*c66b2111SPedro Tammela "$TC actions flush action gate" 207*c66b2111SPedro Tammela ] 208*c66b2111SPedro Tammela }, 209*c66b2111SPedro Tammela { 210*c66b2111SPedro Tammela "id": "b22e", 211*c66b2111SPedro Tammela "name": "Reference ife action object in filter", 212*c66b2111SPedro Tammela "category": [ 213*c66b2111SPedro Tammela "infra", 214*c66b2111SPedro Tammela "ife" 215*c66b2111SPedro Tammela ], 216*c66b2111SPedro Tammela "setup": [ 217*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 218*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 219*c66b2111SPedro Tammela "$TC actions add action ife encode allow mark pass index 1" 220*c66b2111SPedro Tammela ], 221*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action ife index 1", 222*c66b2111SPedro Tammela "expExitCode": "0", 223*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 224*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 225*c66b2111SPedro Tammela "matchCount": "1", 226*c66b2111SPedro Tammela "teardown": [ 227*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 228*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 229*c66b2111SPedro Tammela "$TC actions flush action ife" 230*c66b2111SPedro Tammela ] 231*c66b2111SPedro Tammela }, 232*c66b2111SPedro Tammela { 233*c66b2111SPedro Tammela "id": "ef74", 234*c66b2111SPedro Tammela "name": "Reference mirred action object in filter", 235*c66b2111SPedro Tammela "category": [ 236*c66b2111SPedro Tammela "infra", 237*c66b2111SPedro Tammela "mirred" 238*c66b2111SPedro Tammela ], 239*c66b2111SPedro Tammela "setup": [ 240*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 241*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 242*c66b2111SPedro Tammela "$TC actions add action mirred egress mirror index 1 dev lo" 243*c66b2111SPedro Tammela ], 244*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action mirred index 1", 245*c66b2111SPedro Tammela "expExitCode": "0", 246*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 247*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 248*c66b2111SPedro Tammela "matchCount": "1", 249*c66b2111SPedro Tammela "teardown": [ 250*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 251*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 252*c66b2111SPedro Tammela "$TC actions flush action mirred" 253*c66b2111SPedro Tammela ] 254*c66b2111SPedro Tammela }, 255*c66b2111SPedro Tammela { 256*c66b2111SPedro Tammela "id": "2c81", 257*c66b2111SPedro Tammela "name": "Reference nat action object in filter", 258*c66b2111SPedro Tammela "category": [ 259*c66b2111SPedro Tammela "infra", 260*c66b2111SPedro Tammela "nat" 261*c66b2111SPedro Tammela ], 262*c66b2111SPedro Tammela "setup": [ 263*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 264*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 265*c66b2111SPedro Tammela "$TC actions add action nat ingress 192.168.1.1 200.200.200.1" 266*c66b2111SPedro Tammela ], 267*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action nat index 1", 268*c66b2111SPedro Tammela "expExitCode": "0", 269*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 270*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 271*c66b2111SPedro Tammela "matchCount": "1", 272*c66b2111SPedro Tammela "teardown": [ 273*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 274*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 275*c66b2111SPedro Tammela "$TC actions flush action nat" 276*c66b2111SPedro Tammela ] 277*c66b2111SPedro Tammela }, 278*c66b2111SPedro Tammela { 279*c66b2111SPedro Tammela "id": "ac9d", 280*c66b2111SPedro Tammela "name": "Reference police action object in filter", 281*c66b2111SPedro Tammela "category": [ 282*c66b2111SPedro Tammela "infra", 283*c66b2111SPedro Tammela "police" 284*c66b2111SPedro Tammela ], 285*c66b2111SPedro Tammela "setup": [ 286*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 287*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 288*c66b2111SPedro Tammela "$TC actions add action police rate 1kbit burst 10k index 1" 289*c66b2111SPedro Tammela ], 290*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action police index 1", 291*c66b2111SPedro Tammela "expExitCode": "0", 292*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 293*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 294*c66b2111SPedro Tammela "matchCount": "1", 295*c66b2111SPedro Tammela "teardown": [ 296*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 297*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 298*c66b2111SPedro Tammela "$TC actions flush action police" 299*c66b2111SPedro Tammela ] 300*c66b2111SPedro Tammela }, 301*c66b2111SPedro Tammela { 302*c66b2111SPedro Tammela "id": "68be", 303*c66b2111SPedro Tammela "name": "Reference sample action object in filter", 304*c66b2111SPedro Tammela "category": [ 305*c66b2111SPedro Tammela "infra", 306*c66b2111SPedro Tammela "sample" 307*c66b2111SPedro Tammela ], 308*c66b2111SPedro Tammela "setup": [ 309*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 310*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 311*c66b2111SPedro Tammela "$TC actions add action sample rate 10 group 1 index 1" 312*c66b2111SPedro Tammela ], 313*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action sample index 1", 314*c66b2111SPedro Tammela "expExitCode": "0", 315*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 316*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 317*c66b2111SPedro Tammela "matchCount": "1", 318*c66b2111SPedro Tammela "teardown": [ 319*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 320*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 321*c66b2111SPedro Tammela "$TC actions flush action sample" 322*c66b2111SPedro Tammela ] 323*c66b2111SPedro Tammela }, 324*c66b2111SPedro Tammela { 325*c66b2111SPedro Tammela "id": "cf01", 326*c66b2111SPedro Tammela "name": "Reference skbedit action object in filter", 327*c66b2111SPedro Tammela "category": [ 328*c66b2111SPedro Tammela "infra", 329*c66b2111SPedro Tammela "skbedit" 330*c66b2111SPedro Tammela ], 331*c66b2111SPedro Tammela "setup": [ 332*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 333*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 334*c66b2111SPedro Tammela "$TC actions add action skbedit mark 1" 335*c66b2111SPedro Tammela ], 336*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action skbedit index 1", 337*c66b2111SPedro Tammela "expExitCode": "0", 338*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 339*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 340*c66b2111SPedro Tammela "matchCount": "1", 341*c66b2111SPedro Tammela "teardown": [ 342*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 343*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 344*c66b2111SPedro Tammela "$TC actions flush action skbedit" 345*c66b2111SPedro Tammela ] 346*c66b2111SPedro Tammela }, 347*c66b2111SPedro Tammela { 348*c66b2111SPedro Tammela "id": "c109", 349*c66b2111SPedro Tammela "name": "Reference skbmod action object in filter", 350*c66b2111SPedro Tammela "category": [ 351*c66b2111SPedro Tammela "infra", 352*c66b2111SPedro Tammela "skbmod" 353*c66b2111SPedro Tammela ], 354*c66b2111SPedro Tammela "setup": [ 355*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 356*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 357*c66b2111SPedro Tammela "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 1" 358*c66b2111SPedro Tammela ], 359*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action skbmod index 1", 360*c66b2111SPedro Tammela "expExitCode": "0", 361*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 362*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 363*c66b2111SPedro Tammela "matchCount": "1", 364*c66b2111SPedro Tammela "teardown": [ 365*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 366*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 367*c66b2111SPedro Tammela "$TC actions flush action skbmod" 368*c66b2111SPedro Tammela ] 369*c66b2111SPedro Tammela }, 370*c66b2111SPedro Tammela { 371*c66b2111SPedro Tammela "id": "4abc", 372*c66b2111SPedro Tammela "name": "Reference tunnel_key action object in filter", 373*c66b2111SPedro Tammela "category": [ 374*c66b2111SPedro Tammela "infra", 375*c66b2111SPedro Tammela "tunnel_key" 376*c66b2111SPedro Tammela ], 377*c66b2111SPedro Tammela "setup": [ 378*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 379*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 380*c66b2111SPedro Tammela "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 index 1" 381*c66b2111SPedro Tammela ], 382*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action tunnel_key index 1", 383*c66b2111SPedro Tammela "expExitCode": "0", 384*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 385*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 386*c66b2111SPedro Tammela "matchCount": "1", 387*c66b2111SPedro Tammela "teardown": [ 388*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 389*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 390*c66b2111SPedro Tammela "$TC actions flush action tunnel_key" 391*c66b2111SPedro Tammela ] 392*c66b2111SPedro Tammela }, 393*c66b2111SPedro Tammela { 394*c66b2111SPedro Tammela "id": "dadd", 395*c66b2111SPedro Tammela "name": "Reference vlan action object in filter", 396*c66b2111SPedro Tammela "category": [ 397*c66b2111SPedro Tammela "infra", 398*c66b2111SPedro Tammela "tunnel_key" 399*c66b2111SPedro Tammela ], 400*c66b2111SPedro Tammela "setup": [ 401*c66b2111SPedro Tammela "$IP link add dev $DUMMY type dummy || /bin/true", 402*c66b2111SPedro Tammela "$TC qdisc add dev $DUMMY ingress", 403*c66b2111SPedro Tammela "$TC actions add action vlan pop pipe index 1" 404*c66b2111SPedro Tammela ], 405*c66b2111SPedro Tammela "cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action vlan index 1", 406*c66b2111SPedro Tammela "expExitCode": "0", 407*c66b2111SPedro Tammela "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 408*c66b2111SPedro Tammela "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 409*c66b2111SPedro Tammela "matchCount": "1", 410*c66b2111SPedro Tammela "teardown": [ 411*c66b2111SPedro Tammela "$TC qdisc del dev $DUMMY ingress", 412*c66b2111SPedro Tammela "$IP link del dev $DUMMY type dummy", 413*c66b2111SPedro Tammela "$TC actions flush action vlan" 414*c66b2111SPedro Tammela ] 415*c66b2111SPedro Tammela } 416*c66b2111SPedro Tammela] 417