diff options
author | Zoltan Kiss <zoltan.kiss@linaro.org> | 2016-03-04 14:38:19 +0000 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2016-04-05 17:55:41 +0100 |
commit | d6a65ae823d0a8c04839ec2dd439f1cb50257ca8 (patch) | |
tree | 57f06185de264958c0e98f6aa4272216185f7306 | |
parent | 412f029f46eea07dfc39b2e24cab840e53c484b8 (diff) |
netdev-odp: fix platform init type
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Reviewed-by: Ciprian Barbu <ciprian.barbu@enea.com>
-rw-r--r-- | lib/netdev-odp.c | 2 | ||||
-rw-r--r-- | lib/netdev-odp.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c index 50a2bcaa2..1aea7aaa6 100644 --- a/lib/netdev-odp.c +++ b/lib/netdev-odp.c @@ -58,7 +58,7 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 20); static odp_pool_t struct_pool; int odp_initialized = 0; -const char *platform_params = NULL; +const odp_platform_init_t *platform_params = NULL; struct netdev_odp { struct netdev up; diff --git a/lib/netdev-odp.h b/lib/netdev-odp.h index dcf159a65..ce2079adf 100644 --- a/lib/netdev-odp.h +++ b/lib/netdev-odp.h @@ -4,13 +4,14 @@ #include <config.h> extern int odp_initialized; -extern const char *platform_params; #ifdef ODP_NETDEV #include <odp.h> #include <odp/helper/eth.h> #include <odp/helper/ip.h> +extern const odp_platform_init_t *platform_params; + /* This function is not exported, we need another way to deal with creating a packet from an dp_packet */ extern void odp_packet_parse(odp_packet_t pkt, size_t len, size_t l2_offset); |