Skip to content

Commit

Permalink
Move lib/ofp-actions.h to include/openvswitch directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Warren <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Ben Warren authored and blp committed Apr 14, 2016
1 parent 1b62572 commit b598f21
Show file tree
Hide file tree
Showing 32 changed files with 116 additions and 122 deletions.
1 change: 1 addition & 0 deletions include/openvswitch/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ openvswitchinclude_HEADERS = \
include/openvswitch/match.h \
include/openvswitch/meta-flow.h \
include/openvswitch/ofpbuf.h \
include/openvswitch/ofp-actions.h \
include/openvswitch/ofp-errors.h \
include/openvswitch/ofp-msgs.h \
include/openvswitch/ofp-parse.h \
Expand Down
8 changes: 4 additions & 4 deletions lib/ofp-actions.h → include/openvswitch/ofp-actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* limitations under the License.
*/

#ifndef OFP_ACTIONS_H
#define OFP_ACTIONS_H 1
#ifndef OPENVSWITCH_OFP_ACTIONS_H
#define OPENVSWITCH_OFP_ACTIONS_H 1

#include <stddef.h>
#include <stdint.h>
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-util.h"
#include "openflow/openflow.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/types.h"

Expand Down
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/odp-util.c \
lib/odp-util.h \
lib/ofp-actions.c \
lib/ofp-actions.h \
lib/ofp-errors.c \
lib/ofp-msgs.c \
lib/ofp-parse.c \
Expand Down
10 changes: 5 additions & 5 deletions lib/bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
#include <inttypes.h>

#include "colors.h"
#include "openvswitch/dynamic-string.h"
#include "multipath.h"
#include "openvswitch/meta-flow.h"
#include "nx-match.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-actions.h"
#include "openvswitch/ofp-util.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(bundle);
Expand Down
8 changes: 4 additions & 4 deletions lib/learn.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

#include "byte-order.h"
#include "colors.h"
#include "nx-match.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/match.h"
#include "openvswitch/meta-flow.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-errors.h"
#include "unaligned.h"


Expand Down
2 changes: 1 addition & 1 deletion lib/learning-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "flow.h"
#include "hmap.h"
#include "mac-learning.h"
#include "ofp-actions.h"
#include "ofp-print.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-util.h"
Expand Down
8 changes: 4 additions & 4 deletions lib/multipath.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
#include <sys/types.h>
#include <netinet/in.h>
#include "colors.h"
#include "openvswitch/dynamic-string.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofp-errors.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-util.h"
#include "packets.h"

/* Checks that 'mp' is valid on flow. Returns 0 if it is valid, otherwise an
Expand Down
10 changes: 5 additions & 5 deletions lib/nx-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@

#include "classifier.h"
#include "colors.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "ofp-actions.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "openvswitch/vlog.h"
#include "packets.h"
#include "shash.h"
#include "tun-metadata.h"
#include "unaligned.h"
#include "util.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(nx_match);

Expand Down
10 changes: 5 additions & 5 deletions lib/ofp-actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
#include <config.h>
#include <netinet/in.h>

#include "ofp-actions.h"
#include "bundle.h"
#include "byte-order.h"
#include "colors.h"
#include "compiler.h"
#include "dummy.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "learn.h"
#include "openvswitch/meta-flow.h"
#include "multipath.h"
#include "nx-match.h"
#include "odp-netlink.h"
#include "ofp-prop.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "unaligned.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(ofp_actions);

Expand Down
12 changes: 6 additions & 6 deletions lib/ofp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
#include <netinet/in.h>

#include "byte-order.h"
#include "openvswitch/dynamic-string.h"
#include "learn.h"
#include "openvswitch/meta-flow.h"
#include "multipath.h"
#include "netdev.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "openvswitch/vconn.h"
#include "ovs-thread.h"
#include "packets.h"
#include "simap.h"
#include "socket-util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vconn.h"

/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/ofp-print.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
#include "multipath.h"
#include "netdev.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "openflow/openflow.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#include "netdev.h"
#include "nx-match.h"
#include "id-pool.h"
#include "ofp-actions.h"
#include "ofp-prop.h"
#include "openflow/netronome-ext.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-util.h"
Expand Down
21 changes: 10 additions & 11 deletions ofproto/bond.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,30 @@
#include <stdlib.h>
#include <math.h>

#include "openvswitch/ofp-util.h"
#include "ofp-actions.h"
#include "openvswitch/ofpbuf.h"
#include "ofproto/ofproto-provider.h"
#include "ofproto/ofproto-dpif.h"
#include "ofproto/ofproto-dpif-rid.h"
#include "connectivity.h"
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "dp-packet.h"
#include "flow.h"
#include "hmap.h"
#include "lacp.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "odp-util.h"
#include "ofproto/ofproto-dpif.h"
#include "ofproto/ofproto-dpif-rid.h"
#include "ofproto/ofproto-provider.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/list.h"
#include "openvswitch/match.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "packets.h"
#include "dp-packet.h"
#include "poll-loop.h"
#include "seq.h"
#include "openvswitch/match.h"
#include "shash.h"
#include "timeval.h"
#include "unixctl.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(bond);

Expand Down
5 changes: 2 additions & 3 deletions ofproto/bundles.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@

#include <config.h>

#include "bundles.h"
#include "coverage.h"
#include "fail-open.h"
#include "in-band.h"
#include "odp-util.h"
#include "ofp-actions.h"
#include "ofproto-provider.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
Expand All @@ -38,8 +39,6 @@
#include "stream.h"
#include "timeval.h"

#include "bundles.h"

VLOG_DEFINE_THIS_MODULE(bundles);

static struct ofp_bundle *
Expand Down
9 changes: 3 additions & 6 deletions ofproto/connmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
*/

#include <config.h>

#include "connmgr.h"

#include <errno.h>
#include <stdlib.h>

#include "bundles.h"
#include "connmgr.h"
#include "coverage.h"
#include "fail-open.h"
#include "in-band.h"
#include "odp-util.h"
#include "ofp-actions.h"
#include "ofproto-provider.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
Expand All @@ -42,8 +41,6 @@
#include "stream.h"
#include "timeval.h"

#include "bundles.h"

VLOG_DEFINE_THIS_MODULE(connmgr);
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);

Expand Down
12 changes: 6 additions & 6 deletions ofproto/fail-open.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
*/

#include <config.h>
#include "fail-open.h"
#include <inttypes.h>
#include <stdlib.h>
#include "classifier.h"
#include "connmgr.h"
#include "dp-packet.h"
#include "fail-open.h"
#include "flow.h"
#include "mac-learning.h"
#include "odp-util.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-actions.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"
#include "ofproto.h"
#include "ofproto-provider.h"
#include "pktbuf.h"
#include "dp-packet.h"
#include "poll-loop.h"
#include "rconn.h"
#include "timeval.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(fail_open);

Expand Down
8 changes: 4 additions & 4 deletions ofproto/in-band.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

#include <config.h>
#include "in-band.h"
#include <arpa/inet.h>
#include <errno.h>
#include <inttypes.h>
Expand All @@ -26,18 +25,19 @@
#include "classifier.h"
#include "dhcp.h"
#include "flow.h"
#include "in-band.h"
#include "netdev.h"
#include "netlink.h"
#include "odp-util.h"
#include "ofp-actions.h"
#include "ofproto.h"
#include "openvswitch/ofpbuf.h"
#include "ofproto-provider.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "packets.h"
#include "poll-loop.h"
#include "timeval.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(in_band);

Expand Down
4 changes: 2 additions & 2 deletions ofproto/ofproto-dpif-rid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <stdint.h>

#include "cmap.h"
#include "openvswitch/list.h"
#include "ofp-actions.h"
#include "ofproto-dpif-mirror.h"
#include "openvswitch/list.h"
#include "openvswitch/ofp-actions.h"
#include "ovs-thread.h"
#include "uuid.h"

Expand Down
Loading

0 comments on commit b598f21

Please sign in to comment.