2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +00:00
ovs/tests/testsuite.at

81 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

AT_INIT
AT_COPYRIGHT([Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
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.])
m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
m4_include([tests/ovs-macros.at])
m4_include([tests/ovsdb-macros.at])
m4_include([tests/ofproto-macros.at])
m4_include([tests/completion.at])
m4_include([tests/checkpatch.at])
m4_include([tests/bfd.at])
m4_include([tests/cfm.at])
m4_include([tests/lacp.at])
m4_include([tests/library.at])
m4_include([tests/heap.at])
m4_include([tests/bundle.at])
m4_include([tests/classifier.at])
m4_include([tests/check-structs.at])
m4_include([tests/daemon.at])
m4_include([tests/daemon-py.at])
m4_include([tests/ofp-actions.at])
m4_include([tests/ofp-print.at])
m4_include([tests/ofp-util.at])
m4_include([tests/ofp-errors.at])
2010-10-01 13:08:14 -07:00
m4_include([tests/ovs-ofctl.at])
m4_include([tests/fuzz-regression.at])
m4_include([tests/odp.at])
m4_include([tests/mpls-xlate.at])
m4_include([tests/multipath.at])
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])
m4_include([tests/aes128.at])
m4_include([tests/unixctl-py.at])
m4_include([tests/uuid.at])
m4_include([tests/json.at])
2009-10-26 15:04:05 -07:00
m4_include([tests/jsonrpc.at])
m4_include([tests/jsonrpc-py.at])
m4_include([tests/tunnel.at])
m4_include([tests/tunnel-push-pop.at])
m4_include([tests/tunnel-push-pop-ipv6.at])
m4_include([tests/ovs-router.at])
m4_include([tests/lockfile.at])
m4_include([tests/reconnect.at])
m4_include([tests/ovs-vswitchd.at])
m4_include([tests/ofproto.at])
m4_include([tests/dpif-netdev.at])
m4_include([tests/pmd.at])
m4_include([tests/alb.at])
m4_include([tests/dpctl.at])
m4_include([tests/ofproto-dpif.at])
m4_include([tests/bridge.at])
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])
m4_include([tests/stp.at])
m4_include([tests/rstp.at])
m4_include([tests/vlog.at])
m4_include([tests/vtep-ctl.at])
m4_include([tests/auto-attach.at])
m4_include([tests/mcast-snooping.at])
tests: Added unit tests in packet-type-aware.at First and second unit tests perform basic verification. The third one is a triangular bridge setup test case. It tests dataplane in non-PTAP and ptap bridges in conjunction with L2 and L3 GRE tunnels. It uses veth ports, therefore requires root privileges. A simplified version of the third test is added to system userspace unit tests. GRE tunneling test setup for PTAP bridge 192.168.10.10 192.168.10.20 192.168.10.30 n1 n2 n3 | | | +------o------+ +------o------+ +------o------+ | br-in1 | | br-in2 | | br-in3 | | | | (PTAP) | | | +------o------+ +------o------+ +------o------+ gre gre gre 10.0.0.1 (10.0.0.2) (10.0.0.3) (20.0.0.1) 20.0.0.2 (20.0.0.3) (30.0.0.1) LOCAL (30.0.0.2) LOCAL 30.0.0.3 LOCAL +-----------o-+ +-----------o-+ +-----------o-+ | br-p1 | | br-p2 | | br-p3 | +------o------+ +------o------+ +------o------+ p1-0 | | p2-0 | p3-0 p0-1 | | p0-2 | p0-3 +--o------------------------o-------------------------o--+ | br0 | +--------------------------------------------------------+ GRE tunnel ports: No Bridge Name Packet-Type Remote bridge & ports ----------------------------------------------------------------------- 1020 br-in1 gre-12 legacy-l2 br-in2 2010 (ptap) 1021 br-in1 gre-12_l3 legacy-l3 same 1030 br-in1 gre-13 legacy-l2 br-in3 3010 (l2) 2010 br-in2 gre-21 ptap br-in1 1020 (l2), 1021 (l3) 2030 br-in2 gre-23 ptap br-in3 3020 (l2), 3021 (l3) 3010 br-in1 gre-31 legacy-l2 br-in1 1030 (l2) 3020 br-in1 gre-32 legacy-l2 br-in2 2010 (ptap) 3021 br-in1 gre-32_l3 legacy-l3 same Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
2017-06-23 16:48:34 +00:00
m4_include([tests/packet-type-aware.at])
m4_include([tests/nsh.at])
userspace: Improved packet drop statistics. Currently OVS maintains explicit packet drop/error counters only on port level. Packets that are dropped as part of normal OpenFlow processing are counted in flow stats of “drop” flows or as table misses in table stats. These can only be interpreted by controllers that know the semantics of the configured OpenFlow pipeline. Without that knowledge, it is impossible for an OVS user to obtain e.g. the total number of packets dropped due to OpenFlow rules. Furthermore, there are numerous other reasons for which packets can be dropped by OVS slow path that are not related to the OpenFlow pipeline. The generated datapath flow entries include a drop action to avoid further expensive upcalls to the slow path, but subsequent packets dropped by the datapath are not accounted anywhere. Finally, the datapath itself drops packets in certain error situations. Also, these drops are today not accounted for.This makes it difficult for OVS users to monitor packet drop in an OVS instance and to alert a management system in case of a unexpected increase of such drops. Also OVS trouble-shooters face difficulties in analysing packet drops. With this patch we implement following changes to address the issues mentioned above. 1. Identify and account all the silent packet drop scenarios 2. Display these drops in ovs-appctl coverage/show Co-authored-by: Rohith Basavaraja <rohith.basavaraja@gmail.com> Co-authored-by: Keshav Gupta <keshugupta1@gmail.com> Signed-off-by: Anju Thomas <anju.thomas@ericsson.com> Signed-off-by: Rohith Basavaraja <rohith.basavaraja@gmail.com> Signed-off-by: Keshav Gupta <keshugupta1@gmail.com> Acked-by: Eelco Chaudron <echaudro@redhat.com Acked-by: Ben Pfaff <blp@ovn.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2019-12-18 05:48:12 +01:00
m4_include([tests/drop-stats.at])
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])