Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #41 from mherrb/master
Browse files Browse the repository at this point in the history
Make packet-journey build with DPDK-stable 17.05.2
  • Loading branch information
fatih-acar authored Oct 2, 2017
2 parents ff30f3d + 9c37668 commit 17edbcf
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#include <errno.h>
#include <getopt.h>

#include <rte_version.h>
#include <rte_common.h>
#include <rte_byteorder.h>
#include <rte_log.h>
Expand Down
2 changes: 1 addition & 1 deletion app/acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extern struct acl_parm acl_parm_config;
extern struct rte_acl_ctx* ipv4_acx[NB_SOCKETS];
extern struct rte_acl_ctx* ipv6_acx[NB_SOCKETS];

#if RTE_VER_MINOR > 1 && RTE_VER_MAJOR == 2
#if RTE_VER_MONTH > 1 && RTE_VER_YEAR == 2
/*
* That effectively defines order of IPV4VLAN classifications:
* - PROTO
Expand Down
9 changes: 9 additions & 0 deletions app/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include <poll.h>
#include <signal.h>

#include <rte_version.h>
#include <rte_common.h>
#include <rte_log.h>
#include <rte_lcore.h>
Expand Down Expand Up @@ -190,7 +191,11 @@ cmd_loglevel_parsed(void* parsed_result,
__rte_unused void* data)
{
struct cmd_loglevel_result* res = parsed_result;
#if RTE_VERSION >= RTE_VERSION_NUM(17,5,0,0)
rte_log_set_global_level(res->level);
#else
rte_set_log_level(res->level);
#endif
}

cmdline_parse_token_string_t cmd_loglevel_loglevel =
Expand Down Expand Up @@ -221,7 +226,11 @@ cmd_logtype_parsed(void* parsed_result,
__rte_unused void* data)
{
struct cmd_logtype_result* res = parsed_result;
#if RTE_VERSION >= RTE_VERSION_NUM(17,5,0,0)
rte_log_set_level(res->type, res->enable ? RTE_LOG_DEBUG : 0);
#else
rte_set_log_type(res->type, res->enable);
#endif
}

cmdline_parse_token_string_t cmd_logtype_logtype =
Expand Down
1 change: 1 addition & 0 deletions app/cmdline_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <rte_version.h>
#include <rte_common.h>
#include <rte_byteorder.h>
#include <rte_debug.h>
Expand Down
4 changes: 4 additions & 0 deletions app/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ extern struct lpm_stats_t lpm6_stats[NB_SOCKETS];

typedef uint8_t portid_t;

#if RTE_VERSION >= RTE_VERSION_NUM(17,5,0,0)
typedef uint32_t lpm6_neigh;
#else
#ifdef LPM6_16BIT
typedef uint16_t lpm6_neigh;
#else
typedef uint8_t lpm6_neigh;
#endif
#endif

#endif
1 change: 1 addition & 0 deletions app/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include <string.h>
#include <getopt.h>

#include <rte_version.h>
#include <rte_string_fns.h>
#include <rte_mempool.h>
#include <rte_ethdev.h>
Expand Down
1 change: 1 addition & 0 deletions app/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#include <arpa/inet.h>
#include <spawn.h>

#include <rte_version.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_log.h>
Expand Down
1 change: 1 addition & 0 deletions app/kni.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include <unistd.h>
#include <signal.h>

#include <rte_version.h>
#include <rte_common.h>
#include <rte_log.h>
#include <rte_memory.h>
Expand Down
1 change: 1 addition & 0 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#include <sys/prctl.h>
#include <unistd.h>

#include <rte_version.h>
#include <rte_common.h>
#include <rte_vect.h>
#include <rte_byteorder.h>
Expand Down

0 comments on commit 17edbcf

Please sign in to comment.