Skip to content

Commit

Permalink
Merge pull request #530 from noironetworks/ovs-lib-includes
Browse files Browse the repository at this point in the history
Update OVS lib includes
  • Loading branch information
mchalla authored May 15, 2024
2 parents a752795 + f2d2cae commit 0402fb3
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion agent-ovs/lib/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/AdvertManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "ovs-ofputil.h"

// OVS lib
#include <lib/util.h>
#include <openvswitch/lib/util.h>
#include <openvswitch/match.h>

using std::string;
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/FlowExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "ovs-ofputil.h"

// OVS lib
#include <lib/util.h>
#include <openvswitch/lib/util.h>
extern "C" {
#include <openvswitch/ofp-msgs.h>
#include <openvswitch/match.h>
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/FlowReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ovs-shim.h"
#include "ovs-ofputil.h"

#include <lib/util.h>
#include <openvswitch/lib/util.h>
extern "C" {
#include <openvswitch/ofp-msgs.h>
}
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/InterfaceStatsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "ovs-ofputil.h"

#include <lib/util.h>
#include <openvswitch/lib/util.h>
extern "C" {
#include <openvswitch/ofp-msgs.h>
#include <openvswitch/ofp-port.h>
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/NatStatsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "FlowConstants.h"

#include "ovs-ofputil.h"
#include <lib/util.h>
#include <openvswitch/lib/util.h>
extern "C" {
#include <openvswitch/ofp-msgs.h>
}
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/OvsdbConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#endif

extern "C" {
#include <lib/dirs.h>
#include <openvswitch/lib/dirs.h>
}

#include "ovs/include/OvsdbConnection.h"
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/PacketInHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// OVS lib
#include "ovs-shim.h"
#include "ovs-ofputil.h"
#include <lib/util.h>
#include <openvswitch/lib/util.h>

#include <openvswitch/ofp-msgs.h>
#include <openvswitch/match.h>
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/PolicyStatsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "ovs-ofputil.h"

#include <lib/util.h>
#include <openvswitch/lib/util.h>

extern "C" {
#include <openvswitch/ofp-msgs.h>
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/PortMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


// OVS lib
#include <lib/util.h>
#include <openvswitch/lib/util.h>
extern "C" {
#include <openvswitch/ofp-msgs.h>
#include <openvswitch/ofp-port.h>
Expand Down
6 changes: 3 additions & 3 deletions agent-ovs/ovs/SwitchConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
#include <unistd.h>

#include "ovs-ofputil.h"
#include <lib/util.h>
#include <openvswitch/lib/util.h>
#include <openvswitch/poll-loop.h>
#define HAVE_STRUCT_MMSGHDR_MSG_LEN
#define HAVE_SENDMMSG

extern "C" {
#include <lib/dirs.h>
#include <lib/socket-util.h>
#include <openvswitch/lib/dirs.h>
#include <openvswitch/lib/socket-util.h>
#include <openvswitch/vconn.h>
#include <openvswitch/ofp-msgs.h>
#include <openvswitch/ofp-packet.h>
Expand Down
4 changes: 2 additions & 2 deletions agent-ovs/ovs/ovs-shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <openvswitch/ofp-actions.h>
#include <openvswitch/ofp-port.h>
#include <openvswitch/meta-flow.h>
#include <lib/byte-order.h>
#include <lib/dp-packet.h>
#include <openvswitch/lib/byte-order.h>
#include <openvswitch/lib/dp-packet.h>
#include <openvswitch/ofp-msgs.h>

void format_action(const struct ofpact* acts, size_t ofpacts_len,
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/test/ContractStatsManager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <opflexagent/logging.h>
#include <opflexagent/test/ModbFixture.h>
#include "ovs-ofputil.h"
#include <lib/util.h>
#include <openvswitch/lib/util.h>
#include "IntFlowManager.h"
#include "ContractStatsManager.h"
#include "TableState.h"
Expand Down

0 comments on commit 0402fb3

Please sign in to comment.