blob: 2f221930a1efcf3c992b5fe02ddf72d6532961ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# queue
ip test-ip4 output
[ queue num 0 ]
# queue num 2
ip test-ip4 output
[ queue num 2 ]
# queue num 65535
ip test-ip4 output
[ queue num 65535 ]
# queue num 2-3
ip test-ip4 output
[ queue num 2-3 ]
# queue num 1-65535
ip test-ip4 output
[ queue num 1-65535 ]
# queue num 4-5 fanout bypass
ip test-ip4 output
[ queue num 4-5 bypass fanout ]
# queue num 4-5 fanout
ip test-ip4 output
[ queue num 4-5 fanout ]
# queue num 4-5 bypass
ip test-ip4 output
[ queue num 4-5 bypass ]
# queue to symhash mod 65536
ip
[ hash reg 1 = symhash() % mod 65536 ]
[ queue sreg_qnum 1 ]
# queue to jhash oif . meta mark mod 32
ip
[ meta load oif => reg 2 ]
[ meta load mark => reg 13 ]
[ hash reg 1 = jhash(reg 2, 8, 0x0) % mod 32 ]
[ queue sreg_qnum 1 ]
# queue flags bypass to numgen inc mod 65536
ip
[ numgen reg 1 = inc mod 65536 ]
[ queue sreg_qnum 1 bypass ]
# queue flags bypass to oifname map { "eth0" : 0, "ppp0" : 2, "eth1" : 2 }
__map%d test-ip4 b size 3
__map%d test-ip4 0
element 30687465 00000000 00000000 00000000 : 00000000 0 [end] element 30707070 00000000 00000000 00000000 : 00000002 0 [end] element 31687465 00000000 00000000 00000000 : 00000002 0 [end]
ip
[ meta load oifname => reg 1 ]
[ lookup reg 1 set __map%d dreg 1 ]
[ queue sreg_qnum 1 bypass ]
# queue to 2
ip
[ queue num 2 ]
# queue to 65535
ip
[ queue num 65535 ]
# queue flags bypass to 65535
ip
[ queue num 65535 bypass ]
# queue flags bypass to 1-65535
ip
[ queue num 1-65535 bypass ]
# queue flags bypass,fanout to 1-65535
ip
[ queue num 1-65535 bypass fanout ]
# queue to 1-65535
ip
[ queue num 1-65535 ]
|