From patchwork Fri Oct 14 08:49:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elo, Matias \(Nokia - FI/Espoo\)" X-Patchwork-Id: 77648 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp196960qge; Fri, 14 Oct 2016 01:51:29 -0700 (PDT) X-Received: by 10.55.42.68 with SMTP id q65mr12489645qkh.210.1476435089698; Fri, 14 Oct 2016 01:51:29 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b124si8841849qke.101.2016.10.14.01.51.29; Fri, 14 Oct 2016 01:51:29 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id E4DB561B85; Fri, 14 Oct 2016 08:51:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3388760A34; Fri, 14 Oct 2016 08:50:08 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D54A461B92; Fri, 14 Oct 2016 08:49:59 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0130.outbound.protection.outlook.com [104.47.0.130]) by lists.linaro.org (Postfix) with ESMTPS id 8670960A28 for ; Fri, 14 Oct 2016 08:49:30 +0000 (UTC) Received: from HE1PR0701CA0058.eurprd07.prod.outlook.com (10.168.191.26) by VI1PR0701MB2271.eurprd07.prod.outlook.com (10.169.137.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.5; Fri, 14 Oct 2016 08:49:28 +0000 Received: from AM1FFO11OLC005.protection.gbl (2a01:111:f400:7e00::162) by HE1PR0701CA0058.outlook.office365.com (2603:10a6:3:9e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.5 via Frontend Transport; Fri, 14 Oct 2016 08:49:28 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.241 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.241; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.241) by AM1FFO11OLC005.mail.protection.outlook.com (10.174.64.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Fri, 14 Oct 2016 08:49:27 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u9E8nCQi005825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Oct 2016 11:49:12 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u9E8nCVo005806 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 14 Oct 2016 11:49:12 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo To: Date: Fri, 14 Oct 2016 11:49:11 +0300 Message-ID: <1476434952-8282-5-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476434952-8282-1-git-send-email-matias.elo@nokia.com> References: <1476434952-8282-1-git-send-email-matias.elo@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(5003940100001)(76176999)(97736004)(19580405001)(7846002)(11100500001)(50986999)(19580395003)(2351001)(92566002)(189998001)(77096005)(106466001)(33646002)(305945005)(47776003)(36756003)(107886002)(229853001)(8936002)(50226002)(5660300001)(626004)(50466002)(356003)(68736007)(42882006)(81156014)(2906002)(8676002)(87936001)(48376002)(450100001)(110136003)(6916009)(2950100002)(586003)(81166006)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0701MB2271; H:fihe3nok0735.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11OLC005; 1:Mz6PMwF/y6feHfdRvYXvMf7qt7YPirms8BwyWBPNFizo9HdK1sQktSOnQ5LrgYLvCd5+ul5LAHsVQ/G7xlrfk4oqbhG3ErwiTfdHMTZEtHYf83jEDKMXdEpkFboGBJNv8PNUZmpKZCP3CtU9XuUhlhwYZ/deIpTqqgB35nOngneyqx0AJp/PcZLH3gemyukKtK+2x8oJZBo3p+tlr206Ti42Y6CjuBLIAy7WzuV0XivQhXUFGERGZiNL0MkXPvfCgIiMrA8eCRYLM7uvRRRD3WUEh3LTATJcLCjC++LZlSogyRVwqeT/dJRDL8IiJ74QVTYUTtX9DNilH7DUv8xQHpF+KFxPwWkgvGW+4YHjxj2EypEjF+mDAglT5ZDjVYH85kyjwtzH+qFqbzmt9VfBjGjaHzK6ezA9WnMCA0IUge6qP7ntP8XlFD/p55JGNsa5ENxYFsU8xhVLGs6teD28Ay2nouMrYuPOnQ7MPOElb8ao/SBCT31xY/YoLI/YVOue MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 9d7e10fe-aa9b-4f60-f762-08d3f40f0198 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2271; 2:1VcZ9PbcD0IGn9nnv+5JAbb0eSMLYyYTJJ/F5dz1WIzGYtX/TWcXXd54wAzADUNABGZquXH6dI8F4XKvdvZ3HAbs7xc3ooxTixDZT5YEJcVjQykgNTJHq9y5dnfwke9fkwpCHwpYQ5fWvtnIEfDD5DC2egul1SWVX+5TyRpsRvku4clDentkzIKtdF1EmoCnfwRosGvgG62u4nOXfpKv8A==; 3:hREB6xS/AzzvyjMFd0DKN8J++Mb5ZXHxuWATb7FwFP0/uubp51EnWtZe6BL2f387yEWUfEjendZSuMZWarPvI2wlOOiTW4mQY89hNGjOoC/ULgDBemMV/iM/HkXz0uQ5ZEARNjf/2/oCcB8UcccDAEY8dW5QliIqnqtlqkFm9ab70MjpMCGfausb7CAQQVWXS/KzekWsEsUtArVxv26Z7XPq84aGPkRcO3DRd53jZdEktalpWb+pGKM+mpJt/Oy3wKIXe8mhm8kJ22qhIH7g6tPyqldW1/8NzVTNciQoVxg= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:VI1PR0701MB2271; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2271; 25:BK3a89FJTD87vn5quvRgng0NBGmlin5x+k6t3gDwYuyNCmIXwHcvVhJXO9ZEbHEpj2zyHTuvzUTTjfWjoJqNxRMgpjxvTU8wsI9F06WAwc+Kzr3KbI6ri/jQT+8GFlv6DaOioK3TDnAE6p5yDAkhNN7roKrR9iX1hVcWo5k3KLnS2oZtZJvc3OV67Wka0m7Xnr+MMvbFGBEZ1ElzV0pJ9MdNRT4KcHGATl2me2Jzx6gbmpfonsQqBDlxM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Kqgo5hQ9ZTNFMVKc1fL0PKy+U5aka3OLFeGeZsBjC/tSwhu5tamVb5NzrMDLeMyVuWyT52Ie6LaJlImRyKcd4/GAMoEmDHn0k63ereAPyAVpL9aTxLqNXllmwRNaHawpzqKG+dqlvntozD2bD/pqbu90kpqu9fg1zq9WzG99McC+cA2bZKArhQHD2ZNknrq0qwwqNNqOLlHRO4lJ6nNSl42ird1ClTJ/AGOy4PzviGYyGqFg8XSlCRa1DE2/fha/bqigCSCPxwcXl1mfe+mPP2n2qBsKe5j5Z3MLyzUqqEVCZnEwlY+m7v2IOsPyqu3tsMwC8041GbHXJzdbIr1Dh4kLFq4CMkjTI3mAkOBgnqEGpqwHZW34xJ2X1g9LFywgop2bl9X2vaWZss= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597)(22766785571888); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(5005006)(8121501046)(13016025)(10201501046)(3002001)(6055026); SRVR:VI1PR0701MB2271; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0701MB2271; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2271; 4:+wKJDUoa14pLaU167hcYBvudH4hFjZyUHOBjcpeP58OlWK9XYbNl0w+rhxshv5eS7hjT+SDZPhrLQ3IT0o7DCHs8KuXVfQqO/EjJiVpVZs9l/yDucCU4/Qv6o67945OnGKrXBYGNECR6xvzP50t2pZ+zp6p5Pw/ciJRgEaTvMFKEgpQLdW5g52VH0xjIdsyRmiwIQEvW2EvcvJ1BoFUXwleey/3iUJvGKNZ6hTqjoZqlv5mcATv/wn/VsGhjqdxWucNcY3IBkAPhWdZDTlNEljoBdeXdWvhil3p3pjiOqE9MJiCcTcc4UfqSL/u8v4zDkhZKGcbS/usdC4TcNZt8LCwGx5p68OaAWT3DJRYzTRLDCKZ4m5MyvkJVmisywGPMArYArcR4xoL0FmDXBPGPeS2frh2EduvgAWy1jFDlXvaWSxfhsosVnzhS9vyY8lOusp1clDBdcihOV96Q7hZAa9SqRtot0rzE951r2ccohDqnHMDtckbPhx16yvx1tafNDMzESEvahQ09TKETBu8MR2r8YYzqd9fy9etKGcnU1H4= X-Forefront-PRVS: 0095BCF226 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0701MB2271; 23:bL/v6GlVy3MtqNNO9w0SDGW6I0uLYlodtAwXa+d?= =?us-ascii?Q?FmiXGICQgf5vwHbZMA1+EdvLIouodH1nRKerRlBAWy9v96Et1CfS8rdx202/?= =?us-ascii?Q?fSxgAfsggRdLNHmQI/x98FXbopSchBu1rRH6VUGbwssGDWT7aaK9pyVJICda?= =?us-ascii?Q?+9SPdrW0Q8qMNXuQCb1u7qjR6loTa5Ye/wqG4GfYL8jYwk6BSBtGWGSSHzD/?= =?us-ascii?Q?gaj3bph2LVza7CJ0RieSGXvnNvmnC8re80VQjSciXDq4Qkvico5iKyLN/3Xc?= =?us-ascii?Q?+drQrmbeFAkE84XFwj/VCx9zWzgdfmpky5c38cos8ZYTkz30Gft29AyiF00z?= =?us-ascii?Q?842vxpGQWW8LLlzXm4sn6ECET8hOc13/cvEsr4ZVN9+LT96d2dW+NOdRkR2c?= =?us-ascii?Q?MDniNfs8+avxi/BPFpn9XyBP3s4bxlvkfTjtrZ8Y1ahqds7HOnbla0qH4gW7?= =?us-ascii?Q?VJdZ7Y6d0qDYjUqxmkBhVKiw2UcRbtXuoxIULTotIrIBfrAtpOlkUv/VX2J2?= =?us-ascii?Q?Y6sG11wAyjuCzuJvUSN0Te15tUbXSBW94u5SOiiEJEeBQ36s8+J7A0+2VCeq?= =?us-ascii?Q?QvBJ6mpI7e18vF0QZfyZ6ABCDCC0k6EIAOGAFFUzrMhbqPB+RuPVCSTKfXSa?= =?us-ascii?Q?f4KrtqCuc1+JFuyC9ezjl5jNMf6XhfZyLT7eejT3YvFZgQ3fmmIAu0/mmZCb?= =?us-ascii?Q?TYhdvFJRjOguQ62D7H9Cl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uzZs1mh3bZJ+AthW2Mv8lg==; 24:yGs0Tx3KEt/4Lnwb8jmmwoFPC2AC6PITGY/4I8vczfqFqv/RYpqHQ9rDJMxeN8dCbXNoa74RO/1FZFqOFliP2gt5/vUXeW4QSKhfAj6L9r0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2271; 7:bAuxtNJ1cyHizwXBAS51fIRrhcnla/lh9fRkpJG24EYtLTIigMpMQ+TcYqVKPKPbqZ8UV39O7yFtKF3pg2G+M33FKPoEE9ym2Q7Sygl4lPYLeszlDNuEu4yAj1EsAB1CiVhBsd+LayealTgcSeGcNYgKvia4YGpm44a8r+pgi1o4/R3a39yQ2HUgqfoQJn/FiW5p3KcMGPmhyS5BuBDqXDcCY0WKQ47/4y954qzw3+vqnqe8thu7J8i+G7GeeBXhnYEdjsbUXA76LUcaeC+CZKaKSUXJxDyTKSKB8LA6FWbsSt6GgiCg1MTiU+gzW7OsMdAKc/Vwr37UX9fXgQg8l6/HZ/05GrIsF5YCz/qLiGA= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2016 08:49:27.2868 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2271 X-Topics: Classification patch Subject: [lng-odp] [API-NEXT PATCH 4/5] linux-gen: classification: fix creating cos with no name X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Previously trying to create a class-of-service with no name (=NULL) caused a segfault. Fix this and test it in the validation suite. Signed-off-by: Matias Elo --- platform/linux-generic/odp_classification.c | 11 ++++++++--- .../validation/api/classification/odp_classification_basic.c | 4 +--- 2 files changed, 9 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index ea223bf..5d7125b 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -178,9 +178,14 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) for (i = 0; i < ODP_COS_MAX_ENTRY; i++) { LOCK(&cos_tbl->cos_entry[i].s.lock); if (0 == cos_tbl->cos_entry[i].s.valid) { - strncpy(cos_tbl->cos_entry[i].s.name, name, - ODP_COS_NAME_LEN - 1); - cos_tbl->cos_entry[i].s.name[ODP_COS_NAME_LEN - 1] = 0; + char *cos_name = cos_tbl->cos_entry[i].s.name; + + if (name == NULL) { + cos_name[0] = 0; + } else { + strncpy(cos_name, name, ODP_COS_NAME_LEN - 1); + cos_name[ODP_COS_NAME_LEN - 1] = 0; + } for (j = 0; j < ODP_PMR_PER_COS_MAX; j++) { cos_tbl->cos_entry[i].s.pmr[j] = NULL; cos_tbl->cos_entry[i].s.linked_cos[j] = NULL; diff --git a/test/common_plat/validation/api/classification/odp_classification_basic.c b/test/common_plat/validation/api/classification/odp_classification_basic.c index 372377d..9817287 100644 --- a/test/common_plat/validation/api/classification/odp_classification_basic.c +++ b/test/common_plat/validation/api/classification/odp_classification_basic.c @@ -16,7 +16,6 @@ void classification_test_create_cos(void) odp_cls_cos_param_t cls_param; odp_pool_t pool; odp_queue_t queue; - char cosname[ODP_COS_NAME_LEN]; pool = pool_create("cls_basic_pool"); CU_ASSERT_FATAL(pool != ODP_POOL_INVALID); @@ -24,13 +23,12 @@ void classification_test_create_cos(void) queue = queue_create("cls_basic_queue", true); CU_ASSERT_FATAL(queue != ODP_QUEUE_INVALID); - sprintf(cosname, "ClassOfService"); odp_cls_cos_param_init(&cls_param); cls_param.pool = pool; cls_param.queue = queue; cls_param.drop_policy = ODP_COS_DROP_POOL; - cos = odp_cls_cos_create(cosname, &cls_param); + cos = odp_cls_cos_create(NULL, &cls_param); CU_ASSERT(odp_cos_to_u64(cos) != odp_cos_to_u64(ODP_COS_INVALID)); odp_cos_destroy(cos); odp_pool_destroy(pool);