mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +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:
parent
ab39371d68
commit
ee89ea7b47
@ -2,8 +2,10 @@ openvswitchincludedir = $(includedir)/openvswitch
|
|||||||
openvswitchinclude_HEADERS = \
|
openvswitchinclude_HEADERS = \
|
||||||
include/openvswitch/compiler.h \
|
include/openvswitch/compiler.h \
|
||||||
include/openvswitch/dynamic-string.h \
|
include/openvswitch/dynamic-string.h \
|
||||||
|
include/openvswitch/hmap.h \
|
||||||
include/openvswitch/flow.h \
|
include/openvswitch/flow.h \
|
||||||
include/openvswitch/geneve.h \
|
include/openvswitch/geneve.h \
|
||||||
|
include/openvswitch/json.h \
|
||||||
include/openvswitch/list.h \
|
include/openvswitch/list.h \
|
||||||
include/openvswitch/netdev.h \
|
include/openvswitch/netdev.h \
|
||||||
include/openvswitch/match.h \
|
include/openvswitch/match.h \
|
||||||
@ -17,6 +19,7 @@ openvswitchinclude_HEADERS = \
|
|||||||
include/openvswitch/ofp-prop.h \
|
include/openvswitch/ofp-prop.h \
|
||||||
include/openvswitch/ofp-util.h \
|
include/openvswitch/ofp-util.h \
|
||||||
include/openvswitch/packets.h \
|
include/openvswitch/packets.h \
|
||||||
|
include/openvswitch/shash.h \
|
||||||
include/openvswitch/thread.h \
|
include/openvswitch/thread.h \
|
||||||
include/openvswitch/token-bucket.h \
|
include/openvswitch/token-bucket.h \
|
||||||
include/openvswitch/tun-metadata.h \
|
include/openvswitch/tun-metadata.h \
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "util.h"
|
#include "openvswitch/util.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
@ -30,7 +30,8 @@
|
|||||||
* "should" be unique).
|
* "should" be unique).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "shash.h"
|
#include <stdio.h>
|
||||||
|
#include "openvswitch/shash.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
@ -17,8 +17,8 @@
|
|||||||
#ifndef SHASH_H
|
#ifndef SHASH_H
|
||||||
#define SHASH_H 1
|
#define SHASH_H 1
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "util.h"
|
#include "openvswitch/util.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
@ -94,7 +94,6 @@ lib_libopenvswitch_la_SOURCES = \
|
|||||||
lib/hindex.c \
|
lib/hindex.c \
|
||||||
lib/hindex.h \
|
lib/hindex.h \
|
||||||
lib/hmap.c \
|
lib/hmap.c \
|
||||||
lib/hmap.h \
|
|
||||||
lib/hmapx.c \
|
lib/hmapx.c \
|
||||||
lib/hmapx.h \
|
lib/hmapx.h \
|
||||||
lib/id-pool.c \
|
lib/id-pool.c \
|
||||||
@ -102,7 +101,6 @@ lib_libopenvswitch_la_SOURCES = \
|
|||||||
lib/jhash.c \
|
lib/jhash.c \
|
||||||
lib/jhash.h \
|
lib/jhash.h \
|
||||||
lib/json.c \
|
lib/json.c \
|
||||||
lib/json.h \
|
|
||||||
lib/jsonrpc.c \
|
lib/jsonrpc.c \
|
||||||
lib/jsonrpc.h \
|
lib/jsonrpc.h \
|
||||||
lib/lacp.c \
|
lib/lacp.c \
|
||||||
@ -219,7 +217,6 @@ lib_libopenvswitch_la_SOURCES = \
|
|||||||
lib/sha1.c \
|
lib/sha1.c \
|
||||||
lib/sha1.h \
|
lib/sha1.h \
|
||||||
lib/shash.c \
|
lib/shash.c \
|
||||||
lib/shash.h \
|
|
||||||
lib/simap.c \
|
lib/simap.c \
|
||||||
lib/simap.h \
|
lib/simap.h \
|
||||||
lib/smap.c \
|
lib/smap.c \
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "odp-util.h"
|
#include "odp-util.h"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "openvswitch/ofp-util.h"
|
#include "openvswitch/ofp-util.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(bundle);
|
VLOG_DEFINE_THIS_MODULE(bundle);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
@ -38,6 +38,7 @@
|
|||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(cfm);
|
VLOG_DEFINE_THIS_MODULE(cfm);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/types.h"
|
#include "openvswitch/types.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
|
|
||||||
|
@ -28,12 +28,12 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "ovsdb-data.h"
|
#include "ovsdb-data.h"
|
||||||
#include "ovsdb-idl.h"
|
#include "ovsdb-idl.h"
|
||||||
#include "ovsdb-idl-provider.h"
|
#include "ovsdb-idl-provider.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
|
|
||||||
struct ctl_context;
|
struct ctl_context;
|
||||||
struct option;
|
struct option;
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "ovs-numa.h"
|
#include "ovs-numa.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
#include "pvector.h"
|
#include "pvector.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "tnl-neigh-cache.h"
|
#include "tnl-neigh-cache.h"
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "route-table.h"
|
#include "route-table.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "tnl-neigh-cache.h"
|
#include "tnl-neigh-cache.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include "odp-util.h"
|
#include "odp-util.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
COVERAGE_DEFINE(flow_extract);
|
COVERAGE_DEFINE(flow_extract);
|
||||||
COVERAGE_DEFINE(miniflow_malloc);
|
COVERAGE_DEFINE(miniflow_malloc);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#ifndef HMAPX_H
|
#ifndef HMAPX_H
|
||||||
#define HMAPX_H
|
#define HMAPX_H
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
|
|
||||||
struct hmapx_node {
|
struct hmapx_node {
|
||||||
struct hmap_node hmap_node;
|
struct hmap_node hmap_node;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "id-pool.h"
|
#include "id-pool.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
struct id_node {
|
struct id_node {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "byteq.h"
|
#include "byteq.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
|
@ -21,17 +21,18 @@
|
|||||||
#include "connectivity.h"
|
#include "connectivity.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(lacp);
|
VLOG_DEFINE_THIS_MODULE(lacp);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "classifier.h"
|
#include "classifier.h"
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "mac-learning.h"
|
#include "mac-learning.h"
|
||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "openvswitch/ofp-actions.h"
|
#include "openvswitch/ofp-actions.h"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "rconn.h"
|
#include "rconn.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "heap.h"
|
#include "heap.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "tun-metadata.h"
|
#include "tun-metadata.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "openvswitch/ofp-errors.h"
|
#include "openvswitch/ofp-errors.h"
|
||||||
#include "openvswitch/ofp-util.h"
|
#include "openvswitch/ofp-util.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
/* Checks that 'mp' is valid on flow. Returns 0 if it is valid, otherwise an
|
/* Checks that 'mp' is valid on flow. Returns 0 if it is valid, otherwise an
|
||||||
* OFPERR_*. */
|
* OFPERR_*. */
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "svec.h"
|
#include "svec.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "ovs-rcu.h"
|
#include "ovs-rcu.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "pcap-file.h"
|
#include "pcap-file.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev-provider.h"
|
#include "netdev-provider.h"
|
||||||
#include "netdev-vport.h"
|
#include "netdev-vport.h"
|
||||||
#include "netlink-notifier.h"
|
#include "netlink-notifier.h"
|
||||||
@ -67,12 +67,13 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "rtnetlink.h"
|
#include "rtnetlink.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(netdev_linux);
|
VLOG_DEFINE_THIS_MODULE(netdev_linux);
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "ovs-numa.h"
|
#include "ovs-numa.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "svec.h"
|
#include "svec.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "odp-netlink.h"
|
#include "odp-netlink.h"
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "svec.h"
|
#include "svec.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "ct-dpif.h"
|
#include "ct-dpif.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netlink.h"
|
#include "netlink.h"
|
||||||
#include "netlink-protocol.h"
|
#include "netlink-protocol.h"
|
||||||
#include "odp-netlink.h"
|
#include "odp-netlink.h"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(netlink);
|
VLOG_DEFINE_THIS_MODULE(netlink);
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "classifier.h"
|
#include "classifier.h"
|
||||||
#include "colors.h"
|
#include "colors.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openflow/nicira-ext.h"
|
#include "openflow/nicira-ext.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "openvswitch/meta-flow.h"
|
#include "openvswitch/meta-flow.h"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "tun-metadata.h"
|
#include "tun-metadata.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "odp-netlink.h"
|
#include "odp-netlink.h"
|
||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "colors.h"
|
#include "colors.h"
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "dummy.h"
|
#include "dummy.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "learn.h"
|
#include "learn.h"
|
||||||
#include "multipath.h"
|
#include "multipath.h"
|
||||||
#include "nx-match.h"
|
#include "nx-match.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "byte-order.h"
|
#include "byte-order.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openflow/nicira-ext.h"
|
#include "openflow/nicira-ext.h"
|
||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
@ -25,6 +25,7 @@
|
|||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(ofp_msgs);
|
VLOG_DEFINE_THIS_MODULE(ofp_msgs);
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
|
/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
|
||||||
*
|
*
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "tun-metadata.h"
|
#include "tun-metadata.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
#include "util.h"
|
||||||
#include "uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(ofp_util);
|
VLOG_DEFINE_THIS_MODULE(ofp_util);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "lldp/lldpd.h"
|
#include "lldp/lldpd.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#endif /* __linux__ */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
#include "util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(ovs_rcu);
|
VLOG_DEFINE_THIS_MODULE(ovs_rcu);
|
||||||
|
@ -27,11 +27,12 @@
|
|||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "ovsdb-error.h"
|
#include "ovsdb-error.h"
|
||||||
#include "ovsdb-parser.h"
|
#include "ovsdb-parser.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sort.h"
|
#include "sort.h"
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
static struct json *
|
static struct json *
|
||||||
wrap_json(const char *name, struct json *wrapped)
|
wrap_json(const char *name, struct json *wrapped)
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "ovsdb-types.h"
|
#include "ovsdb-types.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
|
|
||||||
struct ds;
|
struct ds;
|
||||||
struct ovsdb_symbol_table;
|
struct ovsdb_symbol_table;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "backtrace.h"
|
#include "backtrace.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
#ifndef OVSDB_IDL_PROVIDER_H
|
#ifndef OVSDB_IDL_PROVIDER_H
|
||||||
#define OVSDB_IDL_PROVIDER_H 1
|
#define OVSDB_IDL_PROVIDER_H 1
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovsdb-idl.h"
|
#include "ovsdb-idl.h"
|
||||||
#include "ovsdb-map-op.h"
|
#include "ovsdb-map-op.h"
|
||||||
#include "ovsdb-types.h"
|
#include "ovsdb-types.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
struct ovsdb_idl_row {
|
struct ovsdb_idl_row {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "jsonrpc.h"
|
#include "jsonrpc.h"
|
||||||
#include "ovsdb/ovsdb.h"
|
#include "ovsdb/ovsdb.h"
|
||||||
#include "ovsdb/table.h"
|
#include "ovsdb/table.h"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
#include "ovsdb-idl-provider.h"
|
#include "ovsdb-idl-provider.h"
|
||||||
#include "ovsdb-parser.h"
|
#include "ovsdb-parser.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "ovsdb-map-op.h"
|
#include "ovsdb-map-op.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
/* Map Operation: a Partial Map Update */
|
/* Map Operation: a Partial Map Update */
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
@ -21,11 +21,12 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "ovsdb-data.h"
|
#include "ovsdb-data.h"
|
||||||
#include "ovsdb-error.h"
|
#include "ovsdb-error.h"
|
||||||
#include "ovsdb-parser.h"
|
#include "ovsdb-parser.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
const struct ovsdb_type ovsdb_type_integer =
|
const struct ovsdb_type ovsdb_type_integer =
|
||||||
OVSDB_TYPE_SCALAR_INITIALIZER(OVSDB_BASE_INTEGER_INIT);
|
OVSDB_TYPE_SCALAR_INITIALIZER(OVSDB_BASE_INTEGER_INIT);
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "csum.h"
|
#include "csum.h"
|
||||||
#include "crc32c.h"
|
#include "crc32c.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "odp-util.h"
|
#include "odp-util.h"
|
||||||
|
@ -25,10 +25,11 @@
|
|||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
#include "util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(pcap);
|
VLOG_DEFINE_THIS_MODULE(pcap);
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "perf-counter.h"
|
#include "perf-counter.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
static struct shash perf_counters = SHASH_INITIALIZER(&perf_counters);
|
static struct shash perf_counters = SHASH_INITIALIZER(&perf_counters);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(poll_loop);
|
VLOG_DEFINE_THIS_MODULE(poll_loop);
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
|
#include "util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(reconnect);
|
VLOG_DEFINE_THIS_MODULE(reconnect);
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "rstp.h"
|
#include "rstp.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "latch.h"
|
#include "latch.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
static struct shash_node *shash_find__(const struct shash *,
|
static struct shash_node *shash_find__(const struct shash *,
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#ifndef SIMAP_H
|
#ifndef SIMAP_H
|
||||||
#define SIMAP_H 1
|
#define SIMAP_H 1
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
|
|
||||||
struct json;
|
struct json;
|
||||||
struct uuid;
|
struct uuid;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#ifndef SSET_H
|
#ifndef SSET_H
|
||||||
#define SSET_H
|
#define SSET_H
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "stream-provider.h"
|
#include "stream-provider.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include "table.h"
|
#include "table.h"
|
||||||
|
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "ovsdb-data.h"
|
#include "ovsdb-data.h"
|
||||||
#include "ovsdb-error.h"
|
#include "ovsdb-error.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "ovs-rcu.h"
|
#include "ovs-rcu.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "bitmap.h"
|
#include "bitmap.h"
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/match.h"
|
#include "openvswitch/match.h"
|
||||||
#include "nx-match.h"
|
#include "nx-match.h"
|
||||||
#include "odp-netlink.h"
|
#include "odp-netlink.h"
|
||||||
@ -29,6 +29,7 @@
|
|||||||
#include "ovs-rcu.h"
|
#include "ovs-rcu.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "tun-metadata.h"
|
#include "tun-metadata.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
struct tun_meta_entry {
|
struct tun_meta_entry {
|
||||||
struct hmap_node node; /* In struct tun_table's key_hmap. */
|
struct hmap_node node; /* In struct tun_table's key_hmap. */
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "dirs.h"
|
#include "dirs.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "json.h"
|
#include "openvswitch/json.h"
|
||||||
#include "jsonrpc.h"
|
#include "jsonrpc.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "stream-provider.h"
|
#include "stream-provider.h"
|
||||||
#include "svec.h"
|
#include "svec.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
|
#include "util.h"
|
||||||
#include "openvswitch/util.h"
|
#include "openvswitch/util.h"
|
||||||
|
|
||||||
extern char *program_name;
|
extern char *program_name;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "lacp.h"
|
#include "lacp.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "odp-util.h"
|
#include "odp-util.h"
|
||||||
@ -44,9 +44,10 @@
|
|||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(bond);
|
VLOG_DEFINE_THIS_MODULE(bond);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "pktbuf.h"
|
#include "pktbuf.h"
|
||||||
#include "rconn.h"
|
#include "rconn.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
@ -36,10 +36,11 @@
|
|||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "pktbuf.h"
|
#include "pktbuf.h"
|
||||||
#include "rconn.h"
|
#include "rconn.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(connmgr);
|
VLOG_DEFINE_THIS_MODULE(connmgr);
|
||||||
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
|
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#define CONNMGR_H 1
|
#define CONNMGR_H 1
|
||||||
|
|
||||||
#include "classifier.h"
|
#include "classifier.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "openvswitch/match.h"
|
#include "openvswitch/match.h"
|
||||||
#include "openvswitch/ofp-util.h"
|
#include "openvswitch/ofp-util.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "collectors.h"
|
#include "collectors.h"
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "hmapx.h"
|
#include "hmapx.h"
|
||||||
#include "ofproto.h"
|
#include "ofproto.h"
|
||||||
#include "vlan-bitmap.h"
|
#include "vlan-bitmap.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "guarded-list.h"
|
#include "guarded-list.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "heap.h"
|
#include "heap.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "latch.h"
|
#include "latch.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "ofproto-dpif.h"
|
#include "ofproto-dpif.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "dpif.h"
|
#include "dpif.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "netlink.h"
|
#include "netlink.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
#include "tnl-neigh-cache.h"
|
#include "tnl-neigh-cache.h"
|
||||||
#include "tnl-ports.h"
|
#include "tnl-ports.h"
|
||||||
#include "tunnel.h"
|
#include "tunnel.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
COVERAGE_DEFINE(xlate_actions);
|
COVERAGE_DEFINE(xlate_actions);
|
||||||
COVERAGE_DEFINE(xlate_actions_oversize);
|
COVERAGE_DEFINE(xlate_actions_oversize);
|
||||||
|
@ -68,6 +68,7 @@
|
|||||||
#include "tunnel.h"
|
#include "tunnel.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
|
#include "util.h"
|
||||||
#include "vlan-bitmap.h"
|
#include "vlan-bitmap.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(ofproto_dpif);
|
VLOG_DEFINE_THIS_MODULE(ofproto_dpif);
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#include "ovs-atomic.h"
|
#include "ovs-atomic.h"
|
||||||
#include "ovs-rcu.h"
|
#include "ovs-rcu.h"
|
||||||
#include "ovs-thread.h"
|
#include "ovs-thread.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "coverage.h"
|
#include "coverage.h"
|
||||||
#include "dp-packet.h"
|
#include "dp-packet.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "nx-match.h"
|
#include "nx-match.h"
|
||||||
#include "ofproto.h"
|
#include "ofproto.h"
|
||||||
@ -54,7 +54,7 @@
|
|||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "seq.h"
|
#include "seq.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
@ -62,6 +62,7 @@
|
|||||||
#include "tun-metadata.h"
|
#include "tun-metadata.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
#include "unixctl.h"
|
#include "unixctl.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(ofproto);
|
VLOG_DEFINE_THIS_MODULE(ofproto);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "poll-loop.h"
|
#include "poll-loop.h"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "fat-rwlock.h"
|
#include "fat-rwlock.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "netdev.h"
|
#include "netdev.h"
|
||||||
#include "odp-util.h"
|
#include "odp-util.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "binding.h"
|
#include "binding.h"
|
||||||
|
|
||||||
#include "lib/shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "lib/smap.h"
|
#include "lib/smap.h"
|
||||||
#include "lib/util.h"
|
#include "lib/util.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
#include "vtep.h"
|
#include "vtep.h"
|
||||||
|
|
||||||
#include "lib/hash.h"
|
#include "lib/hash.h"
|
||||||
#include "lib/hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "lib/shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "lib/smap.h"
|
#include "lib/smap.h"
|
||||||
#include "lib/sset.h"
|
#include "lib/sset.h"
|
||||||
#include "lib/util.h"
|
#include "lib/util.h"
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
#include "lport.h"
|
#include "lport.h"
|
||||||
|
|
||||||
#include "lib/bitmap.h"
|
#include "lib/bitmap.h"
|
||||||
#include "lib/hmap.h"
|
|
||||||
#include "lib/poll-loop.h"
|
#include "lib/poll-loop.h"
|
||||||
#include "lib/sset.h"
|
#include "lib/sset.h"
|
||||||
#include "lib/util.h"
|
#include "lib/util.h"
|
||||||
#include "lib/vswitch-idl.h"
|
#include "lib/vswitch-idl.h"
|
||||||
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "ovn/lib/ovn-sb-idl.h"
|
#include "ovn/lib/ovn-sb-idl.h"
|
||||||
#include "ovn-controller.h"
|
#include "ovn-controller.h"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "ovn/lib/ovn-sb-idl.h"
|
#include "ovn/lib/ovn-sb-idl.h"
|
||||||
#include "ovn-controller.h"
|
#include "ovn-controller.h"
|
||||||
|
#include "lib/util.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(chassis);
|
VLOG_DEFINE_THIS_MODULE(chassis);
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#define OVN_LPORT_H 1
|
#define OVN_LPORT_H 1
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "uuid.h"
|
#include "uuid.h"
|
||||||
|
|
||||||
struct ovsdb_idl;
|
struct ovsdb_idl;
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
#include "flow.h"
|
#include "flow.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hindex.h"
|
#include "hindex.h"
|
||||||
#include "hmap.h"
|
|
||||||
#include "ofctrl.h"
|
#include "ofctrl.h"
|
||||||
#include "openflow/openflow.h"
|
#include "openflow/openflow.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/list.h"
|
#include "openvswitch/list.h"
|
||||||
#include "openvswitch/match.h"
|
#include "openvswitch/match.h"
|
||||||
#include "openvswitch/ofp-actions.h"
|
#include "openvswitch/ofp-actions.h"
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "encaps.h"
|
#include "encaps.h"
|
||||||
#include "fatal-signal.h"
|
#include "fatal-signal.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "lflow.h"
|
#include "lflow.h"
|
||||||
#include "lib/vswitch-idl.h"
|
#include "lib/vswitch-idl.h"
|
||||||
#include "lport.h"
|
#include "lport.h"
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "lflow.h"
|
#include "lflow.h"
|
||||||
#include "lib/hmap.h"
|
|
||||||
#include "lib/vswitch-idl.h"
|
#include "lib/vswitch-idl.h"
|
||||||
#include "lport.h"
|
#include "lport.h"
|
||||||
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/vlog.h"
|
#include "openvswitch/vlog.h"
|
||||||
#include "ovn-controller.h"
|
#include "ovn-controller.h"
|
||||||
|
|
||||||
|
@ -28,10 +28,11 @@
|
|||||||
#include "ovn/lib/ovn-sb-idl.h"
|
#include "ovn/lib/ovn-sb-idl.h"
|
||||||
#include "ovn/lib/ovn-util.h"
|
#include "ovn/lib/ovn-util.h"
|
||||||
#include "physical.h"
|
#include "physical.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
#include "smap.h"
|
#include "smap.h"
|
||||||
#include "sset.h"
|
#include "sset.h"
|
||||||
|
#include "util.h"
|
||||||
#include "vswitch-idl.h"
|
#include "vswitch-idl.h"
|
||||||
|
|
||||||
VLOG_DEFINE_THIS_MODULE(physical);
|
VLOG_DEFINE_THIS_MODULE(physical);
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "ovn-dhcp.h"
|
#include "ovn-dhcp.h"
|
||||||
#include "expr.h"
|
#include "expr.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "lex.h"
|
#include "lex.h"
|
||||||
#include "logical-fields.h"
|
#include "logical-fields.h"
|
||||||
#include "nx-match.h"
|
#include "nx-match.h"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
#include "openvswitch/ofp-actions.h"
|
#include "openvswitch/ofp-actions.h"
|
||||||
#include "openvswitch/ofpbuf.h"
|
#include "openvswitch/ofpbuf.h"
|
||||||
#include "packets.h"
|
#include "packets.h"
|
||||||
#include "shash.h"
|
#include "openvswitch/shash.h"
|
||||||
#include "simap.h"
|
#include "simap.h"
|
||||||
|
|
||||||
/* Context maintained during actions_parse(). */
|
/* Context maintained during actions_parse(). */
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
#include "hmap.h"
|
#include "openvswitch/hmap.h"
|
||||||
#include "openvswitch/dynamic-string.h"
|
#include "openvswitch/dynamic-string.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user