2009-07-27 16:40:11 -07:00
|
|
|
AT_INIT
|
|
|
|
|
2015-01-13 14:57:14 -08:00
|
|
|
AT_COPYRIGHT([Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
|
2009-07-27 16:40:11 -07:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at:
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.])
|
|
|
|
|
2016-05-18 11:00:49 -04:00
|
|
|
m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
|
|
|
|
|
2015-01-13 14:57:14 -08:00
|
|
|
m4_include([tests/ovs-macros.at])
|
2010-01-15 12:12:36 -08:00
|
|
|
m4_include([tests/ovsdb-macros.at])
|
2011-02-22 13:43:14 -08:00
|
|
|
m4_include([tests/ofproto-macros.at])
|
2010-01-15 12:12:36 -08:00
|
|
|
|
2014-11-24 11:15:45 -08:00
|
|
|
m4_include([tests/completion.at])
|
2018-08-10 13:15:41 -07:00
|
|
|
m4_include([tests/checkpatch.at])
|
2013-07-27 09:58:06 +00:00
|
|
|
m4_include([tests/bfd.at])
|
2013-09-20 06:13:33 +00:00
|
|
|
m4_include([tests/cfm.at])
|
2011-11-28 18:08:49 -08:00
|
|
|
m4_include([tests/lacp.at])
|
2009-07-27 16:40:11 -07:00
|
|
|
m4_include([tests/library.at])
|
2012-01-24 15:07:41 -08:00
|
|
|
m4_include([tests/heap.at])
|
2011-06-10 17:45:45 -07:00
|
|
|
m4_include([tests/bundle.at])
|
2010-05-26 12:48:32 -07:00
|
|
|
m4_include([tests/classifier.at])
|
2010-01-25 10:49:31 -08:00
|
|
|
m4_include([tests/check-structs.at])
|
2010-01-15 12:13:46 -08:00
|
|
|
m4_include([tests/daemon.at])
|
2010-08-25 10:26:40 -07:00
|
|
|
m4_include([tests/daemon-py.at])
|
2012-07-03 22:17:14 -07:00
|
|
|
m4_include([tests/ofp-actions.at])
|
2011-01-12 13:57:53 -08:00
|
|
|
m4_include([tests/ofp-print.at])
|
2012-11-09 10:00:22 -08:00
|
|
|
m4_include([tests/ofp-util.at])
|
2012-03-26 13:46:35 -07:00
|
|
|
m4_include([tests/ofp-errors.at])
|
2010-10-01 13:08:14 -07:00
|
|
|
m4_include([tests/ovs-ofctl.at])
|
2018-08-30 13:58:50 -07:00
|
|
|
m4_include([tests/fuzz-regression.at])
|
2011-08-04 16:20:34 -07:00
|
|
|
m4_include([tests/odp.at])
|
2014-11-25 07:39:20 -08:00
|
|
|
m4_include([tests/mpls-xlate.at])
|
2010-12-17 14:38:50 -08:00
|
|
|
m4_include([tests/multipath.at])
|
2011-09-12 16:19:57 -07:00
|
|
|
m4_include([tests/learn.at])
|
2010-01-08 09:41:29 -08:00
|
|
|
m4_include([tests/vconn.at])
|
2010-11-09 14:38:28 -08:00
|
|
|
m4_include([tests/file_name.at])
|
2009-09-24 15:02:36 -07:00
|
|
|
m4_include([tests/aes128.at])
|
2012-02-16 19:15:01 -08:00
|
|
|
m4_include([tests/unixctl-py.at])
|
2009-09-24 15:02:36 -07:00
|
|
|
m4_include([tests/uuid.at])
|
2009-11-04 14:55:53 -08:00
|
|
|
m4_include([tests/json.at])
|
2009-10-26 15:04:05 -07:00
|
|
|
m4_include([tests/jsonrpc.at])
|
2010-08-25 10:26:40 -07:00
|
|
|
m4_include([tests/jsonrpc-py.at])
|
2013-01-08 17:33:04 -08:00
|
|
|
m4_include([tests/tunnel.at])
|
2014-11-11 11:53:47 -08:00
|
|
|
m4_include([tests/tunnel-push-pop.at])
|
2015-12-04 12:36:51 -02:00
|
|
|
m4_include([tests/tunnel-push-pop-ipv6.at])
|
2016-11-15 01:49:47 -08:00
|
|
|
m4_include([tests/ovs-router.at])
|
2009-10-14 16:52:04 -07:00
|
|
|
m4_include([tests/lockfile.at])
|
2009-11-10 15:30:49 -08:00
|
|
|
m4_include([tests/reconnect.at])
|
2013-04-11 14:08:01 -07:00
|
|
|
m4_include([tests/ovs-vswitchd.at])
|
2010-12-02 14:57:53 -08:00
|
|
|
m4_include([tests/ofproto.at])
|
2014-05-13 14:45:30 +12:00
|
|
|
m4_include([tests/dpif-netdev.at])
|
2016-06-07 15:36:21 +03:00
|
|
|
m4_include([tests/pmd.at])
|
2021-06-24 14:20:41 +01:00
|
|
|
m4_include([tests/alb.at])
|
2015-04-15 11:16:23 -07:00
|
|
|
m4_include([tests/dpctl.at])
|
2011-08-09 09:24:18 -07:00
|
|
|
m4_include([tests/ofproto-dpif.at])
|
2014-05-22 09:36:00 -07:00
|
|
|
m4_include([tests/bridge.at])
|
2016-07-04 15:19:56 -03:00
|
|
|
m4_include([tests/netdev-type.at])
|
2009-11-04 15:11:44 -08:00
|
|
|
m4_include([tests/ovsdb.at])
|
2009-09-14 10:05:13 -07:00
|
|
|
m4_include([tests/ovs-vsctl.at])
|
2011-09-20 15:08:05 -07:00
|
|
|
m4_include([tests/stp.at])
|
2014-08-22 09:01:34 -07:00
|
|
|
m4_include([tests/rstp.at])
|
2011-09-21 15:43:27 -07:00
|
|
|
m4_include([tests/vlog.at])
|
2013-10-08 15:57:01 -07:00
|
|
|
m4_include([tests/vtep-ctl.at])
|
2015-02-20 14:17:11 -05:00
|
|
|
m4_include([tests/auto-attach.at])
|
2016-11-11 13:57:00 +00:00
|
|
|
m4_include([tests/mcast-snooping.at])
|
2017-06-23 16:48:34 +00:00
|
|
|
m4_include([tests/packet-type-aware.at])
|
2017-08-05 13:41:09 +08:00
|
|
|
m4_include([tests/nsh.at])
|
2019-12-18 05:48:12 +01:00
|
|
|
m4_include([tests/drop-stats.at])
|
2022-07-08 20:03:12 +02:00
|
|
|
m4_include([tests/pytest.at])
|
learning-switch: Fix coredump of OpenFlow15 learning-switch.
The OpenFlow15 Packet-Out message contains the match instead of the
in_port. The flow.tunnel.metadata.tab is not inited but used in the
loop of tun_metadata_to_nx_match.
The coredump gdb backtrace is:
0 memcpy_from_metadata (dst=0x2f060, src=0x30880, loc=0x10) at lib/tun-metadata.c:467
1 metadata_loc_from_match_read (match=0x30598, is_masked=<..>,
mask=0x30838, idx=0, map=0x0)
at lib/tun-metadata.c:865
2 metadata_loc_from_match_read (is_masked=<...>, mask=0x30838, idx=0,
match=0x30598, map=0x0)
at lib/tun-metadata.c:854
3 tun_metadata_to_nx_match (b=0x892260, oxm=OFP15_VERSION, match=0x30598)
at lib/tun-metadata.c:888
4 nx_put_raw (b=0x892260, oxm=OFP15_VERSION, match=0x30598,
cookie=<...>, cookie=0, cookie_mask=<...>, cookie_mask=0)
at lib/nx-match.c:1186
5 oxm_put_match (b=0x892260, match=0x30598, version=OFP15_VERSION)
at lib/nx-match.c:1343
6 ofputil_encode_packet_out (po=0x30580, protocol=<...>) at lib/ofp-packet.c:1226
7 process_packet_in (sw=0x891d70, oh=<...>) at lib/learning-switch.c:619
8 lswitch_process_packet (msg=0x892210, sw=0x891d70) at lib/learning-switch.c:374
9 lswitch_run (sw=0x891d70) at lib/learning-switch.c:324
10 main (argc=<...>, argv=<...>) at utilities/ovs-testcontroller.c:180
Fix that by initing the flow metadata.
Fixes: 35eb6326d5d0 ("ofp-util: Add flow metadata to ofputil_packet_out")
Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2023-04-07 14:30:22 +08:00
|
|
|
m4_include([tests/learning-switch.at])
|