Re: [dpdk-dev] [PATCH] event/sw: fix get of single xstat value

2017-10-16 Thread Jerin Jacob
-Original Message- > Date: Tue, 10 Oct 2017 16:47:57 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.com, Harry van Haaren > , bruce.richard...@intel.com > Subject: [PATCH] event/sw: fix get of single xstat value > X-Mailer: git-send-email 2.7.4 > > Thi

[dpdk-dev] [PATCH] event/sw: fix get of single xstat value

2017-10-10 Thread Harry van Haaren
This commit allows the xstats_get() API to return just a single value based on its ID. Previously, the "ret_n_lt_stats" value set to 1 ensured a check to take place that the array was larger than the available xstats. The xstats_get() API allows retriving of individual stats - hence this check sho