forked from P4ELTE/t4p4s
-
Notifications
You must be signed in to change notification settings - Fork 1
/
opts_dpdk.cfg
148 lines (119 loc) · 7.85 KB
/
opts_dpdk.cfg
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
; option name new option
model_by_testcase -> model = ${model_by_testcase}
noeal -> ealopts += --log-level 3
silent=terminal -> ealopts += --log-level 3
silent=on -> ealopts += --log-level 3
silent=switch -> cflags += -DT4P4S_SILENT
silent=on -> cflags += -DT4P4S_SILENT
cores=1 -> ealopts += -c 0x1 -n 4
cores=2 -> ealopts += -c 0x3 -n 4
cores=3 -> ealopts += -c 0x7 -n 4
cores=4 -> ealopts += -c 0xf -n 4
cores=5 -> ealopts += -c 0x1f -n 4
cores=6 -> ealopts += -c 0x3f -n 4
cores=7 -> ealopts += -c 0x7f -n 4
cores=8 -> ealopts += -c 0xff -n 4
cores=9 -> ealopts += -c 0x1ff -n 4
cores=10 -> ealopts += -c 0x3ff -n 4
cores=11 -> ealopts += -c 0x7ff -n 4
cores=12 -> ealopts += -c 0xFff -n 4
cores=13 -> ealopts += -c 0x1fff -n 4
cores=14 -> ealopts += -c 0x3fff -n 4
cores=15 -> ealopts += -c 0x7fff -n 4
cores=16 -> ealopts += -c 0xffff -n 4
ports=0 -> cmdopts += --config ""
ports=1x1 -> cmdopts += -p 0x3 --config "\"(0,0,0)\""
ports=1x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(1,0,0)\""
ports=2x1 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1)\""
ports=2x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1),(1,0,0),(1,1,1)\""
ports=3x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1),(0,2,2),(1,0,0),(1,1,1),(1,2,2)\""
ports=4x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1),(0,2,2),(0,3,3),(1,0,0),(1,1,1),(1,2,2),(1,3,3)\""
ports=5x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4),(1,0,0),(1,1,1),(1,2,2),(1,3,3),(1,4,4)\""
ports=6x2 -> cmdopts += -p 0x3 --config "\"(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4),(0,5,5),(1,0,0),(1,1,1),(1,2,2),(1,3,3),(1,4,4),(1,5,5)\""
variant -> p4opts += --p4incdir=examples/include
variant=std -> include-hdrs += dpdk_nicon.h
variant=std -> include-srcs += hdep/'dpdk/dpdk_nicon.c'
variant=veth -> include-hdrs += dpdk_nicon.h
variant=veth -> include-srcs += hdep/'dpdk/dpdk_nicon.c'
variant=vethpcap -> include-hdrs += dpdk_nicon.h
variant=vethpcap -> include-srcs += hdep/'dpdk/dpdk_nicon.c'
variant=test -> include-hdrs += dpdk_nicoff.h
variant=test -> include-srcs += hdep/'dpdk/dpdk_nicoff.c'
variant=test -> include-srcs += hdep/'dpdk/dpdk_nicoff_check_incoming_packet.c'
tablemax -> include-defs += #define MAX_TABLE_SIZE ${tablemax}
tested -> include-defs += #define T4P4S_TESTENTRY ${tested}
x_random=fake -> include-defs += #define T4P4S_FAKERANDOM
model -> include-hdrs += gen_model.h
model -> include-srcs += xtrn/'dpdk_model_${model}.c'
model -> include-srcs += xtrn/'dpdkx_${model}_checksum.c'
model -> include-srcs += xtrn/'dpdkx_${model}_clone.c'
model -> include-srcs += xtrn/'dpdkx_${model}_digest.c'
model -> include-srcs += xtrn/'dpdkx_${model}_hash.c'
model -> include-srcs += xtrn/'dpdkx_${model}_random.c'
model -> include-srcs += xtrn/'dpdkx_${model}_smem.c'
model=v1model -> include-srcs += xtrn/'dpdkx_${model}_log.c'
model=psa -> include-srcs += xtrn/'dpdkx_${model}_digest.c'
model=v1model -> include-srcs += srcg/'dpdkx_${model}_log_tuple.c'
model=v1model -> cflags += -D__TARGET_V1__
model=psa -> cflags += -D__TARGET_PSA__
model=v1model -> p4opts += --p4opt=__TARGET_V1__
model=psa -> p4opts += --p4opt=__TARGET_PSA__
x_emit -> include-srcs += xtrn/'dpdkx_emit.c'
x_crypto -> include-srcs += xtrn/'dpdkx_crypto.c'
x_crypto -> include-srcs += xtrn/'dpdkx_crypto_init.c'
x_crypto -> include-srcs += xtrn/'dpdkx_crypto_ipsec.c'
x_crypto -> include-srcs += xtrn/'dpdkx_crypto_ops.c'
x_crypto_dummy -> include-srcs += xtrn/'dpdkx_crypto_dummy.c'
x_crypto -> include-hdrs += dpdkx_crypto.h
x_crypto -> cflags += -DT4P4S_INIT_CRYPTO
x_crypto -> cflags += -Wno-deprecated-declarations
ctr=off -> cflags += -DT4P4S_NO_CONTROL_PLANE
dbg -> cflags += -DT4P4S_DEBUG=${dbg}
dbglock=off -> cflags += -DT4P4S_NO_DBG_LOCK
lineno -> cflags += -DT4P4S_DEBUG_LINENO
lto -> cflags += -Dflto=thin
macro -> cflags += -D${macro}
maxbytes -> cflags += -DT4P4S_DEBUG_PKT_MAXBYTES=${maxbytes}
noeal -> cflags += -DT4P4S_SUPPRESS_EAL
notrans -> cflags += -DT4P4S_SHOW_MISSED_TRANSITION_CONDITIONS
p4rt -> cflags += -DT4P4S_P4RT
show_hidden_tables -> cflags += -DT4P4S_SHOW_HIDDEN_TABLES
stats -> cflags += -DT4P4S_STATS=${stats}
strict -> cflags += -DT4P4S_STRICT
suite -> cflags += -DT4P4S_TEST_SUITE
; valid values (other than undefined) are: hide, simple
consts -> cflags += -DTEST_CONST_ENTRIES_${consts}
; valid values (other than undefined) are: fail
onerror -> cflags += -DT4P4S_ON_ERROR_${consts}
; emits all headers, not only valid ones
emit=all -> cflags += -DT4P4S_EMIT=1
p4dbg -> p4opts += --p4dbg
p4testcase -> p4opts += --p4opt=T4P4S_TEST_${p4testcase}
consts -> p4opts += --p4opt=TEST_CONST_ENTRIES=${consts}
; possible values, in decreasing order of detail: all, nopath, noext, simple, simpler (also as "on"), nofile, nohint
hint -> p4opts += -hint=${hint}
recompile -> p4opts += -recompile
model=v1 -> p4opts += --p4opt=USE_V1
model=psa -> p4opts += --p4opt=USE_PSA
vetheal -> ealopts += -c 0x01 -n 4 --no-pci --vdev net_pcap0,iface=veth0 --vdev net_pcap1,iface=veth1
vethealpcap -> ealopts += -c 0x01 -n 4 --no-pci --vdev net_pcap0,rx_pcap=input0.pcap,tx_pcap=txpcap0.pcap --vdev net_pcap1,rx_iface=veth1,tx_pcap=txpcap1.pcap
vethports -> cmdopts += -p 0x0 --config "\"(0,0,0),(1,0,0)\""
vethmode -> cflags += -DT4P4S_VETH_MODE
mopt -> meson_opts += ${mopt}
crypto_node -> cflags += -DSTART_CRYPTO_NODE
crypto_node=openssl -> cflags += -DCRYPTO_NODE_MODE=1
crypto_node=fake -> cflags += -DCRYPTO_NODE_MODE=2
fake_crypto_time -> cflags += -DFAKE_CRYPTO_SLEEP_MULTIPLIER=${fake_crypto_time}
crypto_every_n_packet -> cflags += -DDEBUG__CRYPTO_EVERY_N=${crypto_every_n_packet}
crypto_burst_size -> cflags += -DCRYPTO_BURST_SIZE=${crypto_burst_size}
crypto_context_pool_size -> cflags += -DCRYPTO_CONTEXT_POOL_SIZE=${crypto_context_pool_size}
crypto_ring_size -> cflags += -DCRYPTO_RING_SIZE=${crypto_ring_size}
async=off -> cflags += -DASYNC_MODE=0
async=on -> cflags += -DASYNC_MODE=1
async=context -> cflags += -DASYNC_MODE=1
async=pd -> cflags += -DASYNC_MODE=2
async=skip -> cflags += -DASYNC_MODE=3
pieal -> ealopts += -c 0xc -n 4 --no-pci --vdev net_pcap0,rx_iface_in=veth0,tx_iface=veth0,tx_iface=veth0 --vdev net_pcap1,rx_iface_in=veth1,tx_iface=veth1,tx_iface=veth1
piports -> cmdopts += -p 0x3 --config "\"(0,0,2)(1,0,3)\""
apueal -> ealopts += -c 0xc -n 4 -a 0000:03:00.0 -a 0000:04:00.0
apuports -> cmdopts += -p 0x3 --config "\"(0,0,2)(1,0,3)\""