summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorNikhil Rao <nikhil.rao@intel.com>2019-03-28 11:59:03 +0530
committerThomas Monjalon <thomas@monjalon.net>2019-03-28 21:07:48 +0100
commitdb9f4430c26de505b3f9987ea4604d1ab5e5b64f (patch)
tree93549e5dde96a8866b9366f77897c881b98f0ec6 /app
parent90fefe78bfe0da46c92cc925be2f5c1dffc49711 (diff)
downloaddpdk-next-eventdev-db9f4430c26de505b3f9987ea4604d1ab5e5b64f.zip
dpdk-next-eventdev-db9f4430c26de505b3f9987ea4604d1ab5e5b64f.tar.gz
dpdk-next-eventdev-db9f4430c26de505b3f9987ea4604d1ab5e5b64f.tar.xz
service: fix parameter type for attribute
The type of value parameter to rte_service_attr_get should be uint64_t *, since the attributes are of type uint64_t. Fixes: 4d55194d76a4 ("service: add attribute get function") Signed-off-by: Nikhil Rao <nikhil.rao@intel.com> Reviewed-by: Gage Eads <gage.eads@intel.com> Reviewed-by: Rami Rosen <ramirose@gmail.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_service_cores.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_service_cores.c b/app/test/test_service_cores.c
index ec31882..82bb2ce 100644
--- a/app/test/test_service_cores.c
+++ b/app/test/test_service_cores.c
@@ -259,7 +259,7 @@ service_attr_get(void)
rte_service_set_stats_enable(id, 1);
uint32_t attr_id = UINT32_MAX;
- uint32_t attr_value = 0xdead;
+ uint64_t attr_value = 0xdead;
/* check error return values */
TEST_ASSERT_EQUAL(-EINVAL, rte_service_attr_get(id, attr_id,
&attr_value),