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

json: Move from lib to include/openvswitch.

To easily allow both in- and out-of-tree building of the Python
wrapper for the OVS JSON parser (e.g. w/ pip), move json.h to
include/openvswitch. This also requires moving lib/{hmap,shash}.h.

Both hmap.h and shash.h were #include-ing "util.h" even though the
headers themselves did not use anything from there, but rather from
include/openvswitch/util.h. Fixing that required including util.h
in several C files mostly due to OVS_NOT_REACHED and things like
xmalloc.

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Terry Wilson 2016-07-12 16:37:34 -05:00 committed by Ben Pfaff
parent ab39371d68
commit ee89ea7b47
141 changed files with 193 additions and 156 deletions

View File

@ -2,8 +2,10 @@ openvswitchincludedir = $(includedir)/openvswitch
openvswitchinclude_HEADERS = \
include/openvswitch/compiler.h \
include/openvswitch/dynamic-string.h \
include/openvswitch/hmap.h \
include/openvswitch/flow.h \
include/openvswitch/geneve.h \
include/openvswitch/json.h \
include/openvswitch/list.h \
include/openvswitch/netdev.h \
include/openvswitch/match.h \
@ -17,6 +19,7 @@ openvswitchinclude_HEADERS = \
include/openvswitch/ofp-prop.h \
include/openvswitch/ofp-util.h \
include/openvswitch/packets.h \
include/openvswitch/shash.h \
include/openvswitch/thread.h \
include/openvswitch/token-bucket.h \
include/openvswitch/tun-metadata.h \

View File

@ -19,7 +19,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include "util.h"
#include "openvswitch/util.h"
#ifdef __cplusplus
extern "C" {

View File

@ -30,7 +30,8 @@
* "should" be unique).
*/
#include "shash.h"
#include <stdio.h>
#include "openvswitch/shash.h"
#ifdef __cplusplus
extern "C" {

View File

@ -17,8 +17,8 @@
#ifndef SHASH_H
#define SHASH_H 1
#include "hmap.h"
#include "util.h"
#include "openvswitch/hmap.h"
#include "openvswitch/util.h"
#ifdef __cplusplus
extern "C" {

View File

@ -94,7 +94,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/hindex.c \
lib/hindex.h \
lib/hmap.c \
lib/hmap.h \
lib/hmapx.c \
lib/hmapx.h \
lib/id-pool.c \
@ -102,7 +101,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/jhash.c \
lib/jhash.h \
lib/json.c \
lib/json.h \
lib/jsonrpc.c \
lib/jsonrpc.h \
lib/lacp.c \
@ -219,7 +217,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/sha1.c \
lib/sha1.h \
lib/shash.c \
lib/shash.h \
lib/simap.c \
lib/simap.h \
lib/smap.c \

View File

@ -29,7 +29,7 @@
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "odp-util.h"

View File

@ -31,6 +31,7 @@
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(bundle);

View File

@ -27,7 +27,7 @@
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev.h"
#include "ovs-atomic.h"
#include "packets.h"
@ -38,6 +38,7 @@
#include "timeval.h"
#include "unixctl.h"
#include "openvswitch/vlog.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(cfm);

View File

@ -18,7 +18,7 @@
#include <stdint.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/types.h"
#include "packets.h"

View File

@ -28,12 +28,12 @@
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "json.h"
#include "openvswitch/json.h"
#include "openvswitch/vlog.h"
#include "ovsdb-data.h"
#include "ovsdb-idl.h"
#include "ovsdb-idl-provider.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "string.h"
#include "table.h"

View File

@ -19,7 +19,7 @@
#include "compiler.h"
#include "openvswitch/dynamic-string.h"
#include "shash.h"
#include "openvswitch/shash.h"
struct ctl_context;
struct option;

View File

@ -42,7 +42,7 @@
#include "openvswitch/ofpbuf.h"
#include "ovs-numa.h"
#include "packets.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "smap.h"
#include "sset.h"

View File

@ -62,7 +62,7 @@
#include "pvector.h"
#include "random.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "timeval.h"
#include "tnl-neigh-cache.h"

View File

@ -49,7 +49,7 @@
#include "packets.h"
#include "poll-loop.h"
#include "random.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "timeval.h"
#include "unaligned.h"

View File

@ -40,7 +40,7 @@
#include "poll-loop.h"
#include "route-table.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "timeval.h"
#include "tnl-neigh-cache.h"

View File

@ -20,7 +20,7 @@
#include <errno.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "random.h"

View File

@ -25,7 +25,7 @@
#include <unistd.h>
#include "ovs-thread.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "signals.h"
#include "socket-util.h"

View File

@ -39,6 +39,7 @@
#include "odp-util.h"
#include "random.h"
#include "unaligned.h"
#include "util.h"
COVERAGE_DEFINE(flow_extract);
COVERAGE_DEFINE(miniflow_malloc);

View File

@ -15,7 +15,7 @@
*/
#include <config.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include <stdint.h>
#include <string.h>
#include "coverage.h"

View File

@ -17,7 +17,7 @@
#ifndef HMAPX_H
#define HMAPX_H
#include "hmap.h"
#include "openvswitch/hmap.h"
struct hmapx_node {
struct hmap_node hmap_node;

View File

@ -17,7 +17,7 @@
#include <config.h>
#include "id-pool.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "hash.h"
struct id_node {

View File

@ -16,7 +16,7 @@
#include <config.h>
#include "json.h"
#include "openvswitch/json.h"
#include <ctype.h>
#include <errno.h>
@ -26,7 +26,7 @@
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "unicode.h"
#include "util.h"

View File

@ -23,7 +23,7 @@
#include "byteq.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "json.h"
#include "openvswitch/json.h"
#include "openvswitch/list.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-thread.h"

View File

@ -21,17 +21,18 @@
#include "connectivity.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "dp-packet.h"
#include "ovs-atomic.h"
#include "packets.h"
#include "poll-loop.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "timer.h"
#include "timeval.h"
#include "unixctl.h"
#include "openvswitch/vlog.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(lacp);

View File

@ -27,7 +27,7 @@
#include "classifier.h"
#include "dp-packet.h"
#include "flow.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "mac-learning.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-actions.h"
@ -41,7 +41,7 @@
#include "openvswitch/vlog.h"
#include "poll-loop.h"
#include "rconn.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "timeval.h"

View File

@ -26,7 +26,7 @@
#include "coverage.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "ovs-thread.h"
#include "timeval.h"
#include "util.h"

View File

@ -19,7 +19,7 @@
#include <time.h>
#include "heap.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "ovs-thread.h"

View File

@ -21,7 +21,7 @@
#include <time.h>
#include "dp-packet.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "ovs-thread.h"

View File

@ -30,7 +30,7 @@
#include "ovs-thread.h"
#include "packets.h"
#include "random.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "socket-util.h"
#include "tun-metadata.h"
#include "unaligned.h"

View File

@ -29,6 +29,7 @@
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-util.h"
#include "packets.h"
#include "util.h"
/* Checks that 'mp' is valid on flow. Returns 0 if it is valid, otherwise an
* OFPERR_*. */

View File

@ -57,7 +57,7 @@
#include "ovs-thread.h"
#include "packets.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "socket-util.h"
#include "svec.h"
#include "util.h"

View File

@ -48,7 +48,7 @@
#include "ovs-thread.h"
#include "ovs-rcu.h"
#include "packets.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "smap.h"
#include "sset.h"
#include "unaligned.h"

View File

@ -36,7 +36,7 @@
#include "packets.h"
#include "pcap-file.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "stream.h"
#include "unaligned.h"

View File

@ -55,7 +55,7 @@
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev-provider.h"
#include "netdev-vport.h"
#include "netlink-notifier.h"
@ -67,12 +67,13 @@
#include "packets.h"
#include "poll-loop.h"
#include "rtnetlink.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "socket-util.h"
#include "sset.h"
#include "timer.h"
#include "unaligned.h"
#include "openvswitch/vlog.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(netdev_linux);

View File

@ -25,7 +25,7 @@
#include "ovs-numa.h"
#include "packets.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "smap.h"
#ifdef __cplusplus

View File

@ -27,7 +27,7 @@
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "svec.h"
#include "openvswitch/vlog.h"
#include "odp-netlink.h"

View File

@ -47,7 +47,7 @@
#include "packets.h"
#include "poll-loop.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "smap.h"
#include "sset.h"
#include "svec.h"

View File

@ -21,7 +21,7 @@
#include "compiler.h"
#include "ct-dpif.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/ofpbuf.h"
#include "timeval.h"
#include "unixctl.h"

View File

@ -25,7 +25,7 @@
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netlink.h"
#include "netlink-protocol.h"
#include "odp-netlink.h"

View File

@ -27,6 +27,7 @@
#include "timeval.h"
#include "unaligned.h"
#include "openvswitch/vlog.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(netlink);

View File

@ -22,7 +22,7 @@
#include "classifier.h"
#include "colors.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
@ -32,7 +32,7 @@
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "packets.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "tun-metadata.h"
#include "unaligned.h"
#include "util.h"

View File

@ -23,7 +23,7 @@
#include <string.h>
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "odp-netlink.h"
#include "openflow/openflow.h"
#include "util.h"

View File

@ -22,7 +22,7 @@
#include "colors.h"
#include "compiler.h"
#include "dummy.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "learn.h"
#include "multipath.h"
#include "nx-match.h"

View File

@ -17,7 +17,7 @@
#include <config.h>
#include "byte-order.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
@ -25,6 +25,7 @@
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovs-thread.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(ofp_msgs);

View File

@ -38,6 +38,7 @@
#include "packets.h"
#include "simap.h"
#include "socket-util.h"
#include "util.h"
/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
*

View File

@ -49,6 +49,7 @@
#include "random.h"
#include "tun-metadata.h"
#include "unaligned.h"
#include "util.h"
#include "uuid.h"
VLOG_DEFINE_THIS_MODULE(ofp_util);

View File

@ -21,7 +21,7 @@
#include <stdint.h>
#include "dp-packet.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "lldp/lldpd.h"
#include "ovs-atomic.h"

View File

@ -28,7 +28,7 @@
#endif /* __linux__ */
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "openvswitch/vlog.h"

View File

@ -24,6 +24,7 @@
#include "poll-loop.h"
#include "seq.h"
#include "timeval.h"
#include "util.h"
#include "openvswitch/vlog.h"
VLOG_DEFINE_THIS_MODULE(ovs_rcu);

View File

@ -27,11 +27,12 @@
#include "ovs-thread.h"
#include "ovsdb-error.h"
#include "ovsdb-parser.h"
#include "json.h"
#include "shash.h"
#include "openvswitch/json.h"
#include "openvswitch/shash.h"
#include "smap.h"
#include "sort.h"
#include "unicode.h"
#include "util.h"
static struct json *
wrap_json(const char *name, struct json *wrapped)

View File

@ -19,7 +19,7 @@
#include <stdlib.h>
#include "compiler.h"
#include "ovsdb-types.h"
#include "shash.h"
#include "openvswitch/shash.h"
struct ds;
struct ovsdb_symbol_table;

View File

@ -21,7 +21,7 @@
#include "backtrace.h"
#include "openvswitch/dynamic-string.h"
#include "json.h"
#include "openvswitch/json.h"
#include "util.h"
#include "openvswitch/vlog.h"

View File

@ -16,12 +16,12 @@
#ifndef OVSDB_IDL_PROVIDER_H
#define OVSDB_IDL_PROVIDER_H 1
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovsdb-idl.h"
#include "ovsdb-map-op.h"
#include "ovsdb-types.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "uuid.h"
struct ovsdb_idl_row {

View File

@ -26,7 +26,7 @@
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "json.h"
#include "openvswitch/json.h"
#include "jsonrpc.h"
#include "ovsdb/ovsdb.h"
#include "ovsdb/table.h"
@ -35,7 +35,7 @@
#include "ovsdb-idl-provider.h"
#include "ovsdb-parser.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "sset.h"
#include "util.h"
#include "openvswitch/vlog.h"

View File

@ -17,7 +17,7 @@
#include <config.h>
#include "ovsdb-map-op.h"
#include "util.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "hash.h"
/* Map Operation: a Partial Map Update */

View File

@ -18,7 +18,7 @@
#include <stdbool.h>
#include "compiler.h"
#include "json.h"
#include "openvswitch/json.h"
#include "sset.h"
#include "util.h"

View File

@ -21,11 +21,12 @@
#include <limits.h>
#include "openvswitch/dynamic-string.h"
#include "json.h"
#include "openvswitch/json.h"
#include "ovs-thread.h"
#include "ovsdb-data.h"
#include "ovsdb-error.h"
#include "ovsdb-parser.h"
#include "util.h"
const struct ovsdb_type ovsdb_type_integer =
OVSDB_TYPE_SCALAR_INITIALIZER(OVSDB_BASE_INTEGER_INIT);

View File

@ -26,7 +26,7 @@
#include "csum.h"
#include "crc32c.h"
#include "flow.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/dynamic-string.h"
#include "ovs-thread.h"
#include "odp-util.h"

View File

@ -25,10 +25,11 @@
#include "compiler.h"
#include "dp-packet.h"
#include "flow.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "packets.h"
#include "timeval.h"
#include "unaligned.h"
#include "util.h"
#include "openvswitch/vlog.h"
VLOG_DEFINE_THIS_MODULE(pcap);

View File

@ -28,7 +28,7 @@
#include <asm/unistd.h>
#include "openvswitch/dynamic-string.h"
#include "perf-counter.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "util.h"
static struct shash perf_counters = SHASH_INITIALIZER(&perf_counters);

View File

@ -30,7 +30,7 @@
#include "socket-util.h"
#include "timeval.h"
#include "openvswitch/vlog.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "hash.h"
VLOG_DEFINE_THIS_MODULE(poll_loop);

View File

@ -20,6 +20,7 @@
#include <stdlib.h>
#include "poll-loop.h"
#include "util.h"
#include "openvswitch/vlog.h"
VLOG_DEFINE_THIS_MODULE(reconnect);

View File

@ -33,7 +33,7 @@
#include "rstp.h"
#include <stdbool.h>
#include <stdint.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "packets.h"

View File

@ -22,7 +22,7 @@
#include "coverage.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "latch.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"

View File

@ -15,7 +15,7 @@
*/
#include <config.h>
#include "shash.h"
#include "openvswitch/shash.h"
#include "hash.h"
static struct shash_node *shash_find__(const struct shash *,

View File

@ -17,7 +17,7 @@
#ifndef SIMAP_H
#define SIMAP_H 1
#include "hmap.h"
#include "openvswitch/hmap.h"
#ifdef __cplusplus
extern "C" {

View File

@ -18,7 +18,7 @@
#include <strings.h>
#include "hash.h"
#include "json.h"
#include "openvswitch/json.h"
#include "packets.h"
#include "uuid.h"

View File

@ -17,7 +17,7 @@
#include <netinet/in.h>
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
struct json;
struct uuid;

View File

@ -17,7 +17,7 @@
#ifndef SSET_H
#define SSET_H
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "util.h"
#ifdef __cplusplus

View File

@ -39,7 +39,7 @@
#include "openflow/openflow.h"
#include "packets.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "socket-util.h"
#include "util.h"
#include "stream-provider.h"

View File

@ -19,7 +19,7 @@
#include "table.h"
#include "openvswitch/dynamic-string.h"
#include "json.h"
#include "openvswitch/json.h"
#include "ovsdb-data.h"
#include "ovsdb-error.h"
#include "timeval.h"

View File

@ -30,7 +30,7 @@
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "ovs-rcu.h"
#include "ovs-thread.h"
#include "signals.h"

View File

@ -20,7 +20,7 @@
#include "bitmap.h"
#include "compiler.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/match.h"
#include "nx-match.h"
#include "odp-netlink.h"
@ -29,6 +29,7 @@
#include "ovs-rcu.h"
#include "packets.h"
#include "tun-metadata.h"
#include "util.h"
struct tun_meta_entry {
struct hmap_node node; /* In struct tun_table's key_hmap. */

View File

@ -21,11 +21,11 @@
#include "coverage.h"
#include "dirs.h"
#include "openvswitch/dynamic-string.h"
#include "json.h"
#include "openvswitch/json.h"
#include "jsonrpc.h"
#include "openvswitch/list.h"
#include "poll-loop.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "stream.h"
#include "stream-provider.h"
#include "svec.h"

View File

@ -25,6 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "compiler.h"
#include "util.h"
#include "openvswitch/util.h"
extern char *program_name;

View File

@ -27,7 +27,7 @@
#include "coverage.h"
#include "dp-packet.h"
#include "flow.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "lacp.h"
#include "netdev.h"
#include "odp-util.h"
@ -44,9 +44,10 @@
#include "packets.h"
#include "poll-loop.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "timeval.h"
#include "unixctl.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(bond);

View File

@ -34,7 +34,7 @@
#include "poll-loop.h"
#include "pktbuf.h"
#include "rconn.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "stream.h"
#include "timeval.h"

View File

@ -36,10 +36,11 @@
#include "poll-loop.h"
#include "pktbuf.h"
#include "rconn.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "stream.h"
#include "timeval.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(connmgr);
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);

View File

@ -18,7 +18,7 @@
#define CONNMGR_H 1
#include "classifier.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "openvswitch/match.h"
#include "openvswitch/ofp-util.h"

View File

@ -21,7 +21,7 @@
#include "collectors.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev.h"
#include "openvswitch/list.h"
#include "openvswitch/ofpbuf.h"

View File

@ -18,7 +18,7 @@
#include <errno.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "hmapx.h"
#include "ofproto.h"
#include "vlan-bitmap.h"

View File

@ -25,7 +25,7 @@
#include "guarded-list.h"
#include "hash.h"
#include "heap.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "latch.h"
#include "openvswitch/ofpbuf.h"
#include "ofproto-dpif.h"

View File

@ -26,7 +26,7 @@
#include "compiler.h"
#include "dpif.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev.h"
#include "netlink.h"
#include "openvswitch/ofpbuf.h"

View File

@ -59,6 +59,7 @@
#include "tnl-neigh-cache.h"
#include "tnl-ports.h"
#include "tunnel.h"
#include "util.h"
COVERAGE_DEFINE(xlate_actions);
COVERAGE_DEFINE(xlate_actions_oversize);

View File

@ -68,6 +68,7 @@
#include "tunnel.h"
#include "unaligned.h"
#include "unixctl.h"
#include "util.h"
#include "vlan-bitmap.h"
VLOG_DEFINE_THIS_MODULE(ofproto_dpif);

View File

@ -46,7 +46,7 @@
#include "ovs-atomic.h"
#include "ovs-rcu.h"
#include "ovs-thread.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "timeval.h"

View File

@ -31,7 +31,7 @@
#include "coverage.h"
#include "dp-packet.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev.h"
#include "nx-match.h"
#include "ofproto.h"
@ -54,7 +54,7 @@
#include "poll-loop.h"
#include "random.h"
#include "seq.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "smap.h"
#include "sset.h"
@ -62,6 +62,7 @@
#include "tun-metadata.h"
#include "unaligned.h"
#include "unixctl.h"
#include "util.h"
VLOG_DEFINE_THIS_MODULE(ofproto);

View File

@ -23,7 +23,7 @@
#include <stdlib.h>
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "poll-loop.h"

View File

@ -24,7 +24,7 @@
#include "openvswitch/dynamic-string.h"
#include "fat-rwlock.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "netdev.h"
#include "odp-util.h"
#include "openvswitch/ofpbuf.h"

View File

@ -16,7 +16,7 @@
#include <config.h>
#include "binding.h"
#include "lib/shash.h"
#include "openvswitch/shash.h"
#include "lib/smap.h"
#include "lib/util.h"
#include "openvswitch/vlog.h"

View File

@ -18,8 +18,8 @@
#include "vtep.h"
#include "lib/hash.h"
#include "lib/hmap.h"
#include "lib/shash.h"
#include "openvswitch/hmap.h"
#include "openvswitch/shash.h"
#include "lib/smap.h"
#include "lib/sset.h"
#include "lib/util.h"

View File

@ -19,11 +19,11 @@
#include "lport.h"
#include "lib/bitmap.h"
#include "lib/hmap.h"
#include "lib/poll-loop.h"
#include "lib/sset.h"
#include "lib/util.h"
#include "lib/vswitch-idl.h"
#include "openvswitch/hmap.h"
#include "openvswitch/vlog.h"
#include "ovn/lib/ovn-sb-idl.h"
#include "ovn-controller.h"

View File

@ -24,6 +24,7 @@
#include "openvswitch/vlog.h"
#include "ovn/lib/ovn-sb-idl.h"
#include "ovn-controller.h"
#include "lib/util.h"
VLOG_DEFINE_THIS_MODULE(chassis);

View File

@ -17,7 +17,7 @@
#define OVN_LPORT_H 1
#include <stdint.h>
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "uuid.h"
struct ovsdb_idl;

View File

@ -20,10 +20,10 @@
#include "flow.h"
#include "hash.h"
#include "hindex.h"
#include "hmap.h"
#include "ofctrl.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/hmap.h"
#include "openvswitch/list.h"
#include "openvswitch/match.h"
#include "openvswitch/ofp-actions.h"

View File

@ -32,7 +32,7 @@
#include "openvswitch/dynamic-string.h"
#include "encaps.h"
#include "fatal-signal.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "lflow.h"
#include "lib/vswitch-idl.h"
#include "lport.h"

View File

@ -19,9 +19,9 @@
#include "hash.h"
#include "lflow.h"
#include "lib/hmap.h"
#include "lib/vswitch-idl.h"
#include "lport.h"
#include "openvswitch/hmap.h"
#include "openvswitch/vlog.h"
#include "ovn-controller.h"

View File

@ -28,10 +28,11 @@
#include "ovn/lib/ovn-sb-idl.h"
#include "ovn/lib/ovn-util.h"
#include "physical.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
#include "smap.h"
#include "sset.h"
#include "util.h"
#include "vswitch-idl.h"
VLOG_DEFINE_THIS_MODULE(physical);

View File

@ -24,7 +24,7 @@
#include "ovn-dhcp.h"
#include "expr.h"
#include "hash.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "lex.h"
#include "logical-fields.h"
#include "nx-match.h"
@ -32,7 +32,7 @@
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "shash.h"
#include "openvswitch/shash.h"
#include "simap.h"
/* Context maintained during actions_parse(). */

View File

@ -20,7 +20,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "compiler.h"
#include "hmap.h"
#include "openvswitch/hmap.h"
#include "openvswitch/dynamic-string.h"
#include "util.h"

Some files were not shown because too many files have changed in this diff Show More