From: Roman Zhukov Date: Sat, 24 Mar 2018 06:42:23 +0000 (+0000) Subject: net/sfc: fix type of opaque pointer in perf profile handler X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5076ad03912e49fc4fa991bcff3f5188ccbfeb9d;p=dpdk.git net/sfc: fix type of opaque pointer in perf profile handler The 'opaque' pointer in handler function is the last argument of sfc_kvargs_process() function and it is pointer to the adapter 'evq_flags' that has a uint32_t type. So 'value' must be pointer to uint32_t. Fixes: c22d3c508e0c ("net/sfc: support parameter to choose performance profile") Cc: stable@dpdk.org Signed-off-by: Roman Zhukov Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_ev.c b/drivers/net/sfc/sfc_ev.c index 273a92ccb2..8a5030b7a5 100644 --- a/drivers/net/sfc/sfc_ev.c +++ b/drivers/net/sfc/sfc_ev.c @@ -821,7 +821,7 @@ static int sfc_kvarg_perf_profile_handler(__rte_unused const char *key, const char *value_str, void *opaque) { - uint64_t *value = opaque; + uint32_t *value = opaque; if (strcasecmp(value_str, SFC_KVARG_PERF_PROFILE_THROUGHPUT) == 0) *value = EFX_EVQ_FLAGS_TYPE_THROUGHPUT;