]> git.proxmox.com Git - mirror_ovs.git/blame - tests/dpif-netdev.at
dpif-netdev.at: Fix partial offloading test cases failure.
[mirror_ovs.git] / tests / dpif-netdev.at
CommitLineData
9c4044a5
JS
1AT_BANNER([dpif-netdev])
2
2be3fe44
BP
3m4_divert_push([PREPARE_TESTS])
4[
9c4044a5
JS
5# Strips out uninteresting parts of flow output, as well as parts
6# that vary from one run to another (e.g., timing and bond actions).
4b27db64
JR
7strip_timers () {
8 sed '
9 s/duration:[0-9]*\.[0-9]*/duration:0.0/
10 s/used:[0-9]*\.[0-9]*/used:0.0/
11'
12}
13
2be3fe44
BP
14strip_xout () {
15 sed '
10e92b4f 16 s/ufid:[-0-9a-f]* //
9c4044a5
JS
17 s/used:[0-9]*\.[0-9]*/used:0.0/
18 s/actions:.*/actions: <del>/
19 s/packets:[0-9]*/packets:0/
20 s/bytes:[0-9]*/bytes:0/
2be3fe44
BP
21' | sort
22}
23
3fd12197
JR
24strip_xout_keep_actions () {
25 sed '
26 s/ufid:[-0-9a-f]* //
27 s/used:[0-9]*\.[0-9]*/used:0.0/
28 s/packets:[0-9]*/packets:0/
29 s/bytes:[0-9]*/bytes:0/
30' | sort
31}
32
2be3fe44
BP
33filter_flow_install () {
34 grep 'flow_add' | sed 's/.*flow_add: //' | sort | uniq
35}
36
e8a7d666
IM
37filter_hw_flow_install () {
38 grep 'netdev_dummy.*flow put\[create\]' | sed 's/.*|DBG|//' | sort | uniq
39}
40
41filter_hw_flow_del () {
42 grep 'netdev_dummy.*flow del' | sed 's/.*|DBG|//' | sort | uniq
43}
44
45filter_hw_packet_netdev_dummy () {
46 grep 'netdev_dummy.*: packet:.*with mark' | sed 's/.*|DBG|//' | sort | uniq
47}
48
2be3fe44
BP
49filter_flow_dump () {
50 grep 'flow_dump ' | sed '
5a0e4aec
BP
51 s/.*flow_dump //
52 s/used:[0-9]*\.[0-9]*/used:0.0/
2be3fe44
BP
53 ' | sort | uniq
54}
55
56strip_metadata () {
57 sed 's/metadata=0x[0-9a-f]*/metadata=0x0/'
58}
59]
60m4_divert_pop([PREPARE_TESTS])
9c4044a5 61
fa10e59a
IM
62AT_SETUP([dpif-netdev - netdev-dummy/receive])
63# Create br0 with interfaces p0
64OVS_VSWITCHD_START([add-port br0 p1 -- set interface p1 type=dummy ofport_request=1 -- ])
65AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
66
67AT_CHECK([ovs-ofctl add-flow br0 action=normal])
68ovs-appctl time/stop
69ovs-appctl time/warp 5000
70AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:01,dst=50:54:00:00:02:00),eth_type(0x0800),ipv4(src=10.0.0.1,dst=10.0.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9),tcp_flags(ack)'])
71 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
72skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:01,dst=50:54:00:00:02:00),eth_type(0x0800),ipv4(src=10.0.0.1,dst=10.0.0.2,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9),tcp_flags(ack)
73])
74
75AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:06:00),eth_type(0x0800),ipv4(src=10.0.0.5,dst=10.0.0.6,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9),tcp_flags(ack)' --len 1024])
76 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
77skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:05,dst=50:54:00:00:06:00),eth_type(0x0800),ipv4(src=10.0.0.5,dst=10.0.0.6,proto=6,tos=0,ttl=64,frag=no),tcp(src=8,dst=9),tcp_flags(ack)
78])
79OVS_VSWITCHD_STOP
80AT_CLEANUP
81
82
71c1cd42
IM
83m4_define([DPIF_NETDEV_DUMMY_IFACE],
84 [AT_SETUP([dpif-netdev - $1 interface])
85 # Create br0 with interfaces p1 and p7
86 # and br1 with interfaces p2 and p8
87 # with p1 and p2 connected via unix domain socket
88 OVS_VSWITCHD_START(
89 [add-port br0 p1 -- set interface p1 type=$1 options:pstream=punix:$OVS_RUNDIR/p0.sock ofport_request=1 -- \
90 add-port br0 p7 -- set interface p7 ofport_request=7 type=$1 -- \
91 add-br br1 -- \
92 set bridge br1 other-config:hwaddr=aa:66:aa:66:00:00 -- \
93 set bridge br1 datapath-type=dummy other-config:datapath-id=1234 \
94 fail-mode=secure -- \
95 add-port br1 p2 -- set interface p2 type=$1 options:stream=unix:$OVS_RUNDIR/p0.sock ofport_request=2 -- \
96 add-port br1 p8 -- set interface p8 ofport_request=8 type=$1 --], [], [],
97 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
98 AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
99
100 AT_CHECK([ovs-ofctl add-flow br0 action=normal])
101 AT_CHECK([ovs-ofctl add-flow br1 action=normal])
102 ovs-appctl time/stop
103 ovs-appctl time/warp 5000
3d4b2e6e
JS
104 AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
105 AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
71c1cd42
IM
106 ovs-appctl time/warp 100
107 sleep 1 # wait for forwarders process packets
108
109 AT_CHECK([filter_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
3d4b2e6e
JS
110recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(frag=no), actions: <del>
111recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(frag=no), actions: <del>
112recirc_id(0),in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(frag=no), actions: <del>
113recirc_id(0),in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(frag=no), actions: <del>
9c4044a5
JS
114])
115
71c1cd42
IM
116 OVS_VSWITCHD_STOP
117 AT_CLEANUP])
b10d46a6 118
71c1cd42
IM
119DPIF_NETDEV_DUMMY_IFACE([dummy])
120DPIF_NETDEV_DUMMY_IFACE([dummy-pmd])
b10d46a6 121
71c1cd42
IM
122m4_define([DPIF_NETDEV_MISS_FLOW_INSTALL],
123 [AT_SETUP([dpif-netdev - miss upcall key matches flow_install - $1])
124 OVS_VSWITCHD_START(
14fea1f3
IM
125 [add-port br0 p1 \
126 -- set interface p1 type=$1 options:pstream=punix:$OVS_RUNDIR/p0.sock \
127 -- set bridge br0 datapath-type=dummy \
128 other-config:datapath-id=1234 fail-mode=secure], [], [],
71c1cd42
IM
129 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
130 AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
b10d46a6 131
71c1cd42 132 AT_CHECK([ovs-ofctl add-flow br0 action=normal])
3d4b2e6e
JS
133 AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
134 ovs-appctl ofproto/trace 'in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'
71c1cd42
IM
135 sleep 1
136
137 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
3d4b2e6e 138skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)
b10d46a6 139])
71c1cd42 140 AT_CHECK([filter_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
3d4b2e6e 141recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(frag=no), actions: <del>
b10d46a6
JS
142])
143
71c1cd42
IM
144 # Now, the same again without megaflows.
145 AT_CHECK([ovs-appctl upcall/disable-megaflows], [0], [megaflows disabled
b10d46a6 146])
3d4b2e6e 147 AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
71c1cd42 148 sleep 1
b10d46a6 149
71c1cd42 150 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
3d4b2e6e 151skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)
b10d46a6 152])
71c1cd42 153 AT_CHECK([filter_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
3d4b2e6e
JS
154recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(frag=no), actions: <del>
155skb_priority(0),skb_mark(0),ct_state(-new-est-rel-rpl-inv-trk-snat-dnat),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), actions: <del>
b10d46a6
JS
156])
157
71c1cd42
IM
158 OVS_VSWITCHD_STOP
159 AT_CLEANUP])
160
161DPIF_NETDEV_MISS_FLOW_INSTALL([dummy])
162DPIF_NETDEV_MISS_FLOW_INSTALL([dummy-pmd])
b10d46a6 163
6f9e77fd
IM
164m4_define([DPIF_NETDEV_FLOW_PUT_MODIFY],
165 [AT_SETUP([dpif-netdev - datapath flow modification - $1])
166 OVS_VSWITCHD_START(
167 [add-port br0 p1 -- set interface p1 type=$1 ofport_request=1 options:pstream=punix:$OVS_RUNDIR/p1.sock -- \
168 add-port br0 p2 -- set interface p2 type=$1 ofport_request=2 options:pstream=punix:$OVS_RUNDIR/p2.sock -- \
169 set bridge br0 datapath-type=dummy \
170 other-config:datapath-id=1234 fail-mode=secure], [], [],
171 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
172 AT_CHECK([ovs-appctl vlog/set dpif:file:dbg dpif_netdev:file:dbg])
173
174 # Add a flow that directs some packets received on p1 to p2 and the
175 # rest back out p1.
176 AT_CHECK([ovs-ofctl del-flows br0])
177 AT_CHECK([ovs-ofctl add-flow br0 priority=1,ip,in_port=1,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,actions=output:2])
178 AT_CHECK([ovs-ofctl add-flow br0 priority=0,in_port=1,actions=IN_PORT])
179
180 # Inject a packet of the form that should go to p2.
181 packet="in_port(1),packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=1000,pcp=5),encap(eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=0,tos=0,ttl=64,frag=no))"
182 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64], [0])
183
184 OVS_WAIT_UNTIL([grep "miss upcall" ovs-vswitchd.log])
185 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
186skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=1000,pcp=5),encap(eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=0,tos=0,ttl=64,frag=no))
187])
188 ovs-appctl revalidator/wait
189 # Dump the datapath flow to see that it goes to p2 ("actions:2").
190 AT_CHECK([ovs-appctl dpif/dump-flows br0], [0], [dnl
191recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=1000,pcp=5),encap(eth_type(0x0800),ipv4(frag=no)), packets:0, bytes:0, used:never, actions:2
192])
193
194 # Delete the flows, then add new flows that would not match the same
195 # packet as before.
196 AT_CHECK([ovs-ofctl del-flows br0])
197 AT_CHECK([ovs-ofctl add-flow br0 priority=1,in_port=1,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,dl_type=0x0801,actions=output:2])
198 AT_CHECK([ovs-ofctl add-flow br0 priority=0,in_port=1,actions=IN_PORT])
199
200 # Wait for flow revalidation
201 ovs-appctl revalidator/wait
202
203 # Inject the same packet again.
204 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64])
205
206 ovs-appctl revalidator/wait
207 # Dump the datapath flow to see that it goes to p1 ("actions:IN_PORT").
208 AT_CHECK([ovs-appctl dpif/dump-flows br0 | strip_timers], [0], [dnl
209recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=1000,pcp=5),encap(eth_type(0x0800),ipv4(frag=no)), packets:1, bytes:64, used:0.0s, actions:1
210])
211 OVS_VSWITCHD_STOP
212 AT_CLEANUP])
213
214DPIF_NETDEV_FLOW_PUT_MODIFY([dummy])
215DPIF_NETDEV_FLOW_PUT_MODIFY([dummy-pmd])
216
217
71c1cd42
IM
218m4_define([DPIF_NETDEV_MISS_FLOW_DUMP],
219 [AT_SETUP([dpif-netdev - miss upcall key matches flow_dump - $1])
220 OVS_VSWITCHD_START(
14fea1f3
IM
221 [add-port br0 p1 \
222 -- set interface p1 type=$1 options:pstream=punix:$OVS_RUNDIR/p0.sock \
223 -- set bridge br0 datapath-type=dummy \
224 other-config:datapath-id=1234 fail-mode=secure], [], [],
71c1cd42
IM
225 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
226 AT_CHECK([ovs-appctl upcall/disable-ufid], [0], [Datapath dumping tersely using UFID disabled
64bb477f 227], [])
71c1cd42 228 AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
b10d46a6 229
71c1cd42 230 AT_CHECK([ovs-ofctl add-flow br0 action=normal])
3d4b2e6e 231 AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
71c1cd42 232 sleep 1
b10d46a6 233
71c1cd42 234 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
3d4b2e6e 235skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)
b10d46a6 236])
71c1cd42 237 AT_CHECK([filter_flow_dump < ovs-vswitchd.log | strip_xout], [0], [dnl
3d4b2e6e 238skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2/0.0.0.0,dst=10.0.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions: <del>
b10d46a6
JS
239])
240
71c1cd42
IM
241 # Now, the same again without megaflows.
242 AT_CHECK([ovs-appctl upcall/disable-megaflows], [0], [megaflows disabled
b10d46a6 243])
71c1cd42 244 AT_CHECK([ovs-appctl upcall/disable-ufid], [0], [Datapath dumping tersely using UFID disabled
64bb477f 245], [])
3d4b2e6e 246 AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
71c1cd42 247 sleep 1
b10d46a6 248
71c1cd42 249 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
3d4b2e6e 250skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)
b10d46a6 251])
71c1cd42 252 AT_CHECK([filter_flow_dump < ovs-vswitchd.log | strip_xout], [0], [dnl
3d4b2e6e
JS
253skb_priority(0),skb_mark(0),ct_state(0/0xff),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), packets:0, bytes:0, used:never, actions: <del>
254skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2/0.0.0.0,dst=10.0.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions: <del>
b10d46a6
JS
255])
256
71c1cd42
IM
257 OVS_VSWITCHD_STOP
258 AT_CLEANUP])
259
260DPIF_NETDEV_MISS_FLOW_DUMP([dummy])
261DPIF_NETDEV_MISS_FLOW_DUMP([dummy-pmd])
4b27db64
JR
262
263AT_SETUP([dpif-netdev - meters])
264# Create br0 with interfaces p1 and p7
265# and br1 with interfaces p2 and p8
266# with p1 and p2 connected via unix domain socket
267OVS_VSWITCHD_START(
268 [add-port br0 p1 -- set interface p1 type=dummy options:pstream=punix:$OVS_RUNDIR/p0.sock ofport_request=1 -- \
269 add-port br0 p7 -- set interface p7 ofport_request=7 type=dummy -- \
270 add-br br1 -- \
271 set bridge br1 other-config:hwaddr=aa:66:aa:66:00:00 -- \
272 set bridge br1 datapath-type=dummy other-config:datapath-id=1234 \
273 fail-mode=secure -- \
274 add-port br1 p2 -- set interface p2 type=dummy options:stream=unix:$OVS_RUNDIR/p0.sock ofport_request=2 -- \
275 add-port br1 p8 -- set interface p8 ofport_request=8 type=dummy --])
276AT_CHECK([ovs-appctl vlog/set dpif:dbg dpif_netdev:dbg])
277
278AT_CHECK([ovs-ofctl -O OpenFlow13 add-meter br0 'meter=1 pktps burst stats bands=type=drop rate=1 burst_size=1'])
279AT_CHECK([ovs-ofctl -O OpenFlow13 add-meter br0 'meter=2 kbps burst stats bands=type=drop rate=1 burst_size=2'])
280AT_CHECK([ovs-ofctl -O OpenFlow13 add-flow br0 'in_port=1 action=meter:1,7'])
281AT_CHECK([ovs-ofctl -O OpenFlow13 add-flow br0 'in_port=7 action=meter:2,1'])
282AT_CHECK([ovs-ofctl add-flow br1 'in_port=2 action=8'])
283AT_CHECK([ovs-ofctl add-flow br1 'in_port=8 action=2'])
284ovs-appctl time/stop
285
286AT_CHECK([ovs-ofctl -O OpenFlow13 dump-meters br0], [0], [dnl
287OFPST_METER_CONFIG reply (OF1.3) (xid=0x2):
288meter=1 pktps burst stats bands=
289type=drop rate=1 burst_size=1
290
291meter=2 kbps burst stats bands=
292type=drop rate=1 burst_size=2
293])
294
295ovs-appctl time/warp 5000
3d4b2e6e
JS
296AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
297AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
298AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
299AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
300AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
301AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
302AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
303AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
304AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
305AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
4b27db64
JR
306sleep 1 # wait for forwarders process packets
307
308# Meter 1 is measuring packets, allowing one packet per second with
309# bursts of one packet, so 4 out of 5 packets should hit the drop
310# band.
311# Meter 2 is measuring kbps, with burst size 2 (== 2000 bits). 4 packets
312# (240 bytes == 1920 bits) pass, but the last packet should hit the drop band.
313AT_CHECK([ovs-ofctl -O OpenFlow13 meter-stats br0 | strip_timers], [0], [dnl
314OFPST_METER reply (OF1.3) (xid=0x2):
315meter:1 flow_count:1 packet_in_count:5 byte_in_count:300 duration:0.0s bands:
3160: packet_count:4 byte_count:240
317
318meter:2 flow_count:1 packet_in_count:5 byte_in_count:300 duration:0.0s bands:
3190: packet_count:1 byte_count:60
320])
321
322# Advance time by 1/2 second
323ovs-appctl time/warp 500
324
3d4b2e6e
JS
325AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
326AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
327AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
328AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
329AT_CHECK([ovs-appctl netdev-dummy/receive p7 'in_port(7),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
330AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
331AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
332AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
333AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
334AT_CHECK([ovs-appctl netdev-dummy/receive p8 'in_port(8),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.3,dst=10.0.0.4,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)' --len 60])
4b27db64
JR
335sleep 1 # wait for forwarders process packets
336
337# Meter 1 is measuring packets, allowing one packet per second with
338# bursts of one packet, so all 5 of the new packets should hit the drop
339# band.
340# Meter 2 is measuring kbps, with burst size 2 (== 2000 bits). After 500ms
341# there should be space for 80 + 500 bits, so one new 60 byte (480 bit) packet
342# should pass, remaining 4 should hit the drop band.
343AT_CHECK([ovs-ofctl -O OpenFlow13 meter-stats br0 | strip_timers], [0], [dnl
344OFPST_METER reply (OF1.3) (xid=0x2):
345meter:1 flow_count:1 packet_in_count:10 byte_in_count:600 duration:0.0s bands:
3460: packet_count:9 byte_count:540
347
348meter:2 flow_count:1 packet_in_count:10 byte_in_count:600 duration:0.0s bands:
3490: packet_count:5 byte_count:300
350])
351
a13a0209
AT
352ovs-appctl time/warp 5000
353
354AT_CHECK([
355ovs-appctl coverage/read-counter datapath_drop_meter
356], [0], [dnl
35714
358])
359
4b27db64 360AT_CHECK([cat ovs-vswitchd.log | filter_flow_install | strip_xout_keep_actions], [0], [dnl
3d4b2e6e
JS
361recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:meter(0),7
362recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:8
363recirc_id(0),in_port(7),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:meter(1),1
364recirc_id(0),in_port(8),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:2
4b27db64
JR
365])
366
367OVS_VSWITCHD_STOP
368AT_CLEANUP
e8a7d666
IM
369
370m4_define([DPIF_NETDEV_FLOW_HW_OFFLOAD],
371 [AT_SETUP([dpif-netdev - partial hw offload - $1])
e8a7d666 372 OVS_VSWITCHD_START(
5fc5c50f 373 [add-port br0 p1 -- \
f7995da0 374 set interface p1 type=$1 ofport_request=1 options:pstream=punix:$OVS_RUNDIR/p1.sock options:ifindex=1100 -- \
e8a7d666
IM
375 set bridge br0 datapath-type=dummy \
376 other-config:datapath-id=1234 fail-mode=secure], [], [],
377 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
378 AT_CHECK([ovs-appctl vlog/set dpif:file:dbg dpif_netdev:file:dbg netdev_dummy:file:dbg])
379
380 AT_CHECK([ovs-vsctl set Open_vSwitch . other_config:hw-offload=true])
381 OVS_WAIT_UNTIL([grep "netdev: Flow API Enabled" ovs-vswitchd.log])
382
383 AT_CHECK([ovs-ofctl del-flows br0])
384 AT_CHECK([ovs-ofctl add-flow br0 in_port=1,actions=IN_PORT])
385
386 packet="packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=0,tos=0,ttl=64,frag=no)"
387 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64], [0])
388
389 OVS_WAIT_UNTIL([grep "miss upcall" ovs-vswitchd.log])
390 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
391skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=0,tos=0,ttl=64,frag=no)
392])
393 # Check that flow successfully offloaded.
394 OVS_WAIT_UNTIL([grep "succeed to add netdev flow" ovs-vswitchd.log])
395 AT_CHECK([filter_hw_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
396p1: flow put[[create]]: flow match: recirc_id=0,eth,ip,in_port=1,vlan_tci=0x0000,nw_frag=no, mark: 0
397])
398 # Check that datapath flow installed successfully.
399 AT_CHECK([filter_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
400recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions: <del>
401])
402 # Inject the same packet again.
403 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64], [0])
404
405 # Check for succesfull packet matching with installed offloaded flow.
406 AT_CHECK([filter_hw_packet_netdev_dummy < ovs-vswitchd.log | strip_xout], [0], [dnl
407p1: packet: ip,vlan_tci=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=127.0.0.1,nw_dst=127.0.0.1,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=64 matches with flow: recirc_id=0,eth,ip,vlan_tci=0x0000,nw_frag=no with mark: 0
408])
409
410 ovs-appctl revalidator/wait
411 # Dump the datapath flow to see that actions was executed for a packet.
412 AT_CHECK([ovs-appctl dpif/dump-flows br0 | strip_timers], [0], [dnl
413recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), packets:1, bytes:64, used:0.0s, actions:1
414])
415
416 # Wait for datapath flow expiration.
417 ovs-appctl time/stop
418 ovs-appctl time/warp 15000
419 ovs-appctl revalidator/wait
420
421 # Check that flow successfully deleted from HW.
422 OVS_WAIT_UNTIL([grep "succeed to delete netdev flow" ovs-vswitchd.log])
423 AT_CHECK([filter_hw_flow_del < ovs-vswitchd.log | strip_xout], [0], [dnl
424p1: flow del: mark: 0
425])
426 OVS_VSWITCHD_STOP
427 AT_CLEANUP])
428
429DPIF_NETDEV_FLOW_HW_OFFLOAD([dummy])
430DPIF_NETDEV_FLOW_HW_OFFLOAD([dummy-pmd])
54e2baec
IM
431
432
433m4_define([DPIF_NETDEV_FLOW_HW_OFFLOAD_OFFSETS],
434 [AT_SETUP([dpif-netdev - partial hw offload with packet modifications - $1])
435 OVS_VSWITCHD_START(
436 [add-port br0 p1 -- \
f7995da0 437 set interface p1 type=$1 ofport_request=1 options:pcap=p1.pcap options:ifindex=1101 -- \
54e2baec
IM
438 set bridge br0 datapath-type=dummy \
439 other-config:datapath-id=1234 fail-mode=secure], [], [],
440 [m4_if([$1], [dummy-pmd], [--dummy-numa="0,0,0,0,1,1,1,1"], [])])
441 AT_CHECK([ovs-appctl vlog/set dpif:file:dbg dpif_netdev:file:dbg netdev_dummy:file:dbg])
442
443 AT_CHECK([ovs-vsctl set Open_vSwitch . other_config:hw-offload=true])
444 OVS_WAIT_UNTIL([grep "netdev: Flow API Enabled" ovs-vswitchd.log])
445
446 AT_CHECK([ovs-ofctl del-flows br0])
447
448 # Setting flow to modify ipv4 src address and udp dst port to be sure that
449 # offloaded packets has correctly initialized l3/l4 offsets.
450 AT_CHECK([ovs-ofctl add-flow br0 in_port=1,udp,actions=mod_nw_src:192.168.0.7,mod_tp_dst:3773,output:IN_PORT])
451
452 packet="packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=99,pcp=7),encap(eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=17,ttl=64,frag=no),udp(src=81,dst=82))"
453 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64], [0])
454
455 OVS_WAIT_UNTIL([grep "miss upcall" ovs-vswitchd.log])
456 AT_CHECK([grep -A 1 'miss upcall' ovs-vswitchd.log | tail -n 1], [0], [dnl
457skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),dnl
458packet_type(ns=0,id=0),eth(src=00:06:07:08:09:0a,dst=00:01:02:03:04:05),eth_type(0x8100),vlan(vid=99,pcp=7),encap(eth_type(0x0800),ipv4(src=127.0.0.1,dst=127.0.0.1,proto=17,tos=0,ttl=64,frag=no),udp(src=81,dst=82))
459])
460 # Check that flow successfully offloaded.
461 OVS_WAIT_UNTIL([grep "succeed to add netdev flow" ovs-vswitchd.log])
462 AT_CHECK([filter_hw_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
463p1: flow put[[create]]: flow match: recirc_id=0,eth,udp,in_port=1,dl_vlan=99,dl_vlan_pcp=7,nw_src=127.0.0.1,nw_frag=no,tp_dst=82, mark: 0
464])
465 # Check that datapath flow installed successfully.
466 AT_CHECK([filter_flow_install < ovs-vswitchd.log | strip_xout], [0], [dnl
467recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x8100),vlan(vid=99,pcp=7),encap(eth_type(0x0800),ipv4(src=127.0.0.1,proto=17,frag=no),udp(dst=82)), actions: <del>
468])
469 # Inject the same packet again.
470 AT_CHECK([ovs-appctl netdev-dummy/receive p1 $packet --len 64], [0])
471
472 # Check for succesfull packet matching with installed offloaded flow.
473 AT_CHECK([filter_hw_packet_netdev_dummy < ovs-vswitchd.log | strip_xout], [0], [dnl
474p1: packet: udp,dl_vlan=99,dl_vlan_pcp=7,vlan_tci1=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=127.0.0.1,nw_dst=127.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=81,tp_dst=82 dnl
475matches with flow: recirc_id=0,eth,udp,dl_vlan=99,dl_vlan_pcp=7,nw_src=127.0.0.1,nw_frag=no,tp_dst=82 with mark: 0
476])
477
478 ovs-appctl revalidator/wait
479 # Dump the datapath flow to see that actions was executed for a packet.
480 AT_CHECK([ovs-appctl dpif/dump-flows br0 | strip_timers], [0], [dnl
481recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x8100),vlan(vid=99,pcp=7),encap(eth_type(0x0800),ipv4(src=127.0.0.1,proto=17,frag=no),udp(dst=82)), dnl
482packets:1, bytes:64, used:0.0s, actions:set(ipv4(src=192.168.0.7)),set(udp(dst=3773)),1
483])
484
485 # Wait for datapath flow expiration.
486 ovs-appctl time/stop
487 ovs-appctl time/warp 15000
488 ovs-appctl revalidator/wait
489
490 # Check that flow successfully deleted from HW.
491 OVS_WAIT_UNTIL([grep "succeed to delete netdev flow" ovs-vswitchd.log])
492 AT_CHECK([filter_hw_flow_del < ovs-vswitchd.log | strip_xout], [0], [dnl
493p1: flow del: mark: 0
494])
495
496 # Check that ip address and udp port were correctly modified in output packets.
497 AT_CHECK([ovs-ofctl parse-pcap p1.pcap], [0], [dnl
498udp,in_port=ANY,dl_vlan=99,dl_vlan_pcp=7,vlan_tci1=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=127.0.0.1,nw_dst=127.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=81,tp_dst=82
499udp,in_port=ANY,dl_vlan=99,dl_vlan_pcp=7,vlan_tci1=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=192.168.0.7,nw_dst=127.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=81,tp_dst=3773
500udp,in_port=ANY,dl_vlan=99,dl_vlan_pcp=7,vlan_tci1=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=127.0.0.1,nw_dst=127.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=81,tp_dst=82
501udp,in_port=ANY,dl_vlan=99,dl_vlan_pcp=7,vlan_tci1=0x0000,dl_src=00:06:07:08:09:0a,dl_dst=00:01:02:03:04:05,nw_src=192.168.0.7,nw_dst=127.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=81,tp_dst=3773
502])
503
504 OVS_VSWITCHD_STOP
505 AT_CLEANUP])
506
507DPIF_NETDEV_FLOW_HW_OFFLOAD_OFFSETS([dummy])
508DPIF_NETDEV_FLOW_HW_OFFLOAD_OFFSETS([dummy-pmd])