From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0073.outbound.protection.outlook.com [104.47.34.73]) by dpdk.org (Postfix) with ESMTP id 645451B1B8 for ; Mon, 16 Oct 2017 14:04:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6EFehCfzXAoHAC6Yk4y4+XQP+NZK66kXu9zH+nAPJAI=; b=TV9O7HBO0lcsCL//Mlss3St/fAUPy9zizwcxH3tFYDR/bZyay9hkuxI675SzAy7bEnZQG32jgAx/Lp0cSMIupaeVXC2R+t9zAx6nk8oTHQaqIX/o7k1aOsQpvzCyd60wEKBjkUynLOp9UCUdBPO6im6X6udPdCclERpvw+0jDd4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (14.140.2.178) by CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 16 Oct 2017 12:03:59 +0000 Date: Mon, 16 Oct 2017 17:33:45 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, bruce.richardson@intel.com Message-ID: <20171016120344.GA30329@jerin> References: <1507650477-74678-1-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507650477-74678-1-git-send-email-harry.van.haaren@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0109.INDPRD01.PROD.OUTLOOK.COM (10.174.208.25) To CY1PR07MB2524.namprd07.prod.outlook.com (10.167.16.15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 769a7085-a38f-4f96-a8a9-08d5148dfd2c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 3:S4YaRx68yJpRgZYyRvmoyrHtYUq2dA87c0yXADbWKzzzd4xuf4O1ZKtX8QAX1bkamFxFYJ3ae1k+TvGFmtHG4RSxpkm7hjaIS7Qf8wPkpCZxyxnrLUNEK/ZVD1owCsd/dzntVCwbEmTHWHkxfSjdGQ3PYQHyn5luS5XQrC1a8FWH2IjNViKqgRMnGXMVIk3+173gL+nxlZOPMB0d5X0tgzgUL1OjJiLaEKhE9tYwZkCjkablyn0hvHbQAu6VNF9O; 25:H5s2MWq/Q9Mx7LlIDdkCu4b4Aa+VVcmU5RAh+dT4m2mKDe/b21aXj0BzsNfWDiB4U0vtlnPAJazbiMGZrIsUUX4upx78wicmLL9/Eo/0bxpa/pt3Wrcwth2NVhhW3WprkqB6xf5EoEs/Mm5HiWgdo2Ph5ESP1fHlcwVQG5ml8N56HfY0i8rA0ZhfazPHZj2e4aZR9cEn2lnwEXzaURZ7+LBsj/rs/AziUbNDNbDwGIbTEeoM9qcURUUdxAH+VzjB+IHOpGWj6Ueb0LWyhVkgbvcMbCli/BoAlGd35eKf71MuLyvVqm6ldIazgTQXfWJY2TlHo9+YHIG2dEgzxPObkecVkxK2IzXUBKBsXEIv9G4=; 31:FO7W6/2GIJ5gr3SRmNnrAVzAuRKbvrRsgiAx2ute2Ww2CbH+1AAnEJTG66fCILnjPWoZ8JVTvebaNr41Q7eVpxD5i6Jc8pEu2IavwHpavRGjB3H/+Qa61SGNk8ZzoObMd8JkFZ/Y1KIp1Q83rbM28yueqIXPzvStQEdtv3Q/+DSGkOVayUA9OrbWL/qKzXb2ZUyZ46ityHRRY3W8R7RtX6RfygBpV1J566XZBPFyrNI= X-MS-TrafficTypeDiagnostic: CY1PR07MB2524: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 20:fG9dmMUqrQjba31rfrzFzLlpn5e3xXgpTbdjgHiXnKz+655HPxLt4MfjKqehgmvotTy7GKhKKeQrFwD1ZYaZ1DB9pRP7RnyWQGr995x+QqmYkbuprDSrRL0Geo7F72BZPh0oHH0s9qT+vp3luYRZOdDIopJ03GNjlhN/kOeSxQeDspyUjRLD8p0cXP1ohrWxHPMmMx0Q+gbboTp0WFpxQm4FYHsMfDlVTmcZ7gnmglkCiaM525vYxBCWqrw74mTZyHWARHkQQCkVluzwftJ8a+SfABFGb7oMRn9AvUAVm+t87z70QoCOxsS1F2vAArUzBJvcn2as1Qn1C476AuyZmHF0wftUvu+5nC0j7q9B8/xiDTPUXkW6dsIXWycq5aHqWmx6ON9dtLlSv/dWPHhbl4Die5JxI2vdpkW+61P4gV6CW90k5/L5BzvYJSASwbbkgE40R7OXnvibJbGT5lSRUG8G9Sp1ES94XfDmxquJPI20gc+Kel/dtrFdkK9IGx3TTjOrvDQrhr5ZLRNISSmx2XtXrscCZDAY1cd4MnX31SDfWbQb9XHL3ctZKAKnm0Yy9AG9QwJGMwIyjKJaj5pPBYtM1mCdLJszWHP1lmgSq/s=; 4:yP0MB63y2ie5u+ESTDHPzOrfm3mKDjlLS3xqr5FY4zT2EaaCXr7y19vpqCKLW7rsnp8uihAclL5yrY3aB3dVk7P0UQwcXfXZWfnRnkOvr+pnbEzJNskBWsuI18tdnSXSNC4uEZ0Q1LhwlrxhTEKjwJc0fF/xBX7u+Kcv6+hp83OahnR0OFW/R1oPYaQnpTtJTg37n5agzcwB2LkpfCTbp9nmuOk30a7FkQU09akDBjA65t1PKu24tSpEht/EsF0MGHDVQLUt020X0KIMBKIra0RUkZrJwnC5ISqXQCOIFQM= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR07MB2524; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR07MB2524; X-Forefront-PRVS: 0462918D61 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(13464003)(199003)(189002)(53936002)(47776003)(4326008)(2906002)(6246003)(66066001)(6496005)(81156014)(81166006)(8676002)(8936002)(55016002)(33656002)(6666003)(7736002)(305945005)(229853002)(478600001)(101416001)(25786009)(72206003)(9686003)(5660300001)(33716001)(42882006)(6916009)(105586002)(2950100002)(50986999)(76176999)(54356999)(106356001)(316002)(16586007)(50466002)(16526018)(97736004)(58126008)(68736007)(189998001)(3846002)(83506001)(23726003)(5009440100003)(1076002)(6116002)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2524; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2524; 23:CwGjr11rF2OpQIS1F0V41CvrjOf9/EVCFvIj2G+tL?= =?us-ascii?Q?IiNAKUO6yXDRY8m3zq/vldBtwEw48q6gz7VYEzuxXgNBbJ19Zs+v3XYIuOQE?= =?us-ascii?Q?rymbjnnIVTxlPnYpG3yf8UoelkAxj/tQ3ELheNoCi5cUIEgP4xC0z8XYDlSQ?= =?us-ascii?Q?HBekQI1wmt0HVdQwXZ3JaZluSTlgwzefgNx5N4vl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w5uUsHJaHXLLsjkG4jtkQyQ1FxWi8J7lnjXG/Qd48fzFuK4DFdDK1HS0X7yYWIeNeoKE5VlI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2017 12:03:59.2987 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2524 Subject: Re: [dpdk-dev] [PATCH] event/sw: fix get of single xstat value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2017 12:04:04 -0000 -----Original Message----- > Date: Tue, 10 Oct 2017 16:47:57 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, Harry van Haaren > , bruce.richardson@intel.com > Subject: [PATCH] event/sw: fix get of single xstat value > X-Mailer: git-send-email 2.7.4 > > 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 should be removed - by setting "ret_n_lt_stats" to zero. > > Fixes: c1ad03df7ad5 ("event/sw: support xstats") > Cc: bruce.richardson@intel.com > > Signed-off-by: Harry van Haaren Applied to dpdk-next-eventdev/master. Thanks. > --- > drivers/event/sw/sw_evdev_xstats.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/event/sw/sw_evdev_xstats.c b/drivers/event/sw/sw_evdev_xstats.c > index 8cb6d88..61a5c33 100644 > --- a/drivers/event/sw/sw_evdev_xstats.c > +++ b/drivers/event/sw/sw_evdev_xstats.c > @@ -538,7 +538,7 @@ sw_xstats_get(const struct rte_eventdev *dev, > { > struct sw_evdev *sw = sw_pmd_priv(dev); > const uint32_t reset = 0; > - const uint32_t ret_n_lt_stats = 1; > + const uint32_t ret_n_lt_stats = 0; > return sw_xstats_update(sw, mode, queue_port_id, ids, values, n, > reset, ret_n_lt_stats); > } > -- > 2.7.4 >