summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2018-09-26 10:31:12 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:48 +0200
commit9ba102f6b0453e1a8f13b5940fa6268824c68471 (patch)
treef8849b0c1ad9e14fcab0865368cad19bb24961a1 /drivers/net/netvsc/hn_ethdev.c
parent4e31ee26ed510442ddacb753a31c79327aeb0fec (diff)
downloaddpdk-9ba102f6b0453e1a8f13b5940fa6268824c68471.zip
dpdk-9ba102f6b0453e1a8f13b5940fa6268824c68471.tar.gz
dpdk-9ba102f6b0453e1a8f13b5940fa6268824c68471.tar.xz
net/netvsc: check return from kvargs process
Should check return value from processing latency value. Coverity issue: 322104 Fixes: a25d39a3eb69 ("net/netvsc: allow tuning latency with devargs") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 3092066..8e728d6 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -167,6 +167,7 @@ static int hn_parse_args(const struct rte_eth_dev *dev)
NULL
};
struct rte_kvargs *kvlist;
+ int ret;
if (!devargs)
return 0;
@@ -180,9 +181,12 @@ static int hn_parse_args(const struct rte_eth_dev *dev)
return -EINVAL;
}
- rte_kvargs_process(kvlist, "latency", hn_set_latency, hv);
+ ret = rte_kvargs_process(kvlist, "latency", hn_set_latency, hv);
+ if (ret)
+ PMD_DRV_LOG(ERR, "Unable to process latency arg\n");
+
rte_kvargs_free(kvlist);
- return 0;
+ return ret;
}
/* Update link status.