Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41907/?format=api
http://patchwork.dpdk.org/api/patches/41907/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180629015508.26599-8-dg@adax.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20180629015508.26599-8-dg@adax.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180629015508.26599-8-dg@adax.com", "date": "2018-06-29T01:55:05", "name": "[v2,07/10] kni: update kni test for rte_kni_free", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "c65d694014113140da7e88a7e256c270b89a4590", "submitter": { "id": 1040, "url": "http://patchwork.dpdk.org/api/people/1040/?format=api", "name": "Dan Gora", "email": "dg@adax.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180629015508.26599-8-dg@adax.com/mbox/", "series": [ { "id": 305, "url": "http://patchwork.dpdk.org/api/series/305/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=305", "date": "2018-06-29T01:54:59", "name": "[v2,01/10] kni: remove unused variables from struct kni_dev", "version": 2, "mbox": "http://patchwork.dpdk.org/series/305/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/41907/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/41907/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 197B81B571;\n\tFri, 29 Jun 2018 03:56:08 +0200 (CEST)", "from mail-oi0-f49.google.com (mail-oi0-f49.google.com\n\t[209.85.218.49]) by dpdk.org (Postfix) with ESMTP id 38E591B550\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 03:55:58 +0200 (CEST)", "by mail-oi0-f49.google.com with SMTP id 21-v6so7039696oip.8\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 18:55:58 -0700 (PDT)", "from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net.\n\t[172.11.198.60]) by smtp.gmail.com with ESMTPSA id\n\tn3-v6sm3941288otk.38.2018.06.28.18.55.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 18:55:56 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=tgYS8jjwdQq+l5ch4bOFMmfEqsoOSUE+XJwad7xwZKw=;\n\tb=Nncoq+B/eFE4XMcf551D7N7oq53gikw1Azvqr0Am0mw7GS4fZFoajGyu2D66JLftra\n\tzHqs3lFaQET0wG4Gg06ULPs8XnzAP7Qv7QQ405RV+E9xUCD7mzZwNP87CjQEX3q/I+H7\n\tEHhMnvQFmgdzkq13f08JOoc63/+tkHusau07ZrlDXnRkeKtjy6UYldYq0WwQPw/4//yQ\n\tFcTH+YekojnqknWOq+LDUj3VPo+wq27Tng+HN4cQDW/CtnG6b3KUs1qKNz6rZvOpDf8p\n\tfvb7J4G3leX0/ewe+sR7iCa6+w87TzQZg9uv2T+CsxIhPUeueECqkMZL4FysktsXQZsL\n\t0YVw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=tgYS8jjwdQq+l5ch4bOFMmfEqsoOSUE+XJwad7xwZKw=;\n\tb=PJRzW7Na4UGRB8CUMTvYlIBJJspMqFwE0sCMLU7Xp1qnpyNHpoYTJ/zWh2egmjFDjW\n\tvrSVtpa4isLDSh/QNT5GES35dwStPVFOiTOfCYaxmKbay7TzmgQKhUoNKT5T1onJP454\n\toPW3mahArGzDep25fpRjPtCIWCOVsCICXZGjrwO949ex+WjviMUwt1Im+Y1IP2yUrigI\n\tUd6wS6PTnFDIRGjVwO8daXsVDVwTp1UVzSlYC1w5ewdGFVvtDmsH/BHY4Ryxyym1xqmu\n\tdZnMeMKPfDxIkZWbMT9WkvxICZgeoDoo9nE7dU3A6+8bJ2fP3PwYmoKAk1UZpiS91E+0\n\tPdYg==", "X-Gm-Message-State": "APt69E0rKP5pWAu8BIQe/r/eMApt0X7JaiiGBhYgRrPnwSNc2EqEGYvz\n\tBxFyjjNwNL47/fexGbz2bjI=", "X-Google-Smtp-Source": "AAOMgpeEfxbjEQgmyhQknMMZxAyA7axnIygfMpr2zAA1ZtjQa4UjSbwqtbRH5/vHdx4xtRmWQvr0Dg==", "X-Received": "by 2002:aca:402:: with SMTP id\n\t2-v6mr6826387oie.134.1530237357442; \n\tThu, 28 Jun 2018 18:55:57 -0700 (PDT)", "From": "Dan Gora <dg@adax.com>", "To": "ferruh.yigit@intel.com", "Cc": "dev@dpdk.org,\n\tDan Gora <dg@adax.com>", "Date": "Thu, 28 Jun 2018 18:55:05 -0700", "Message-Id": "<20180629015508.26599-8-dg@adax.com>", "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f", "In-Reply-To": "<20180629015508.26599-1-dg@adax.com>", "References": "<20180628224513.18391-1-dg@adax.com>\n\t<20180629015508.26599-1-dg@adax.com>", "Subject": "[dpdk-dev] [PATCH v2 07/10] kni: update kni test for rte_kni_free", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add support for testing rte_kni_free() function.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n test/test/test_kni.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)", "diff": "diff --git a/test/test/test_kni.c b/test/test/test_kni.c\nindex 56773c8a2..ec051c07e 100644\n--- a/test/test/test_kni.c\n+++ b/test/test/test_kni.c\n@@ -427,6 +427,12 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)\n \t\tgoto fail_kni;\n \t}\n \n+\t/* test of freeing an unreleased kni device */\n+\tif (rte_kni_free(kni) == 0) {\n+\t\tprintf(\"should not be able to free an unreleased kni device\\n\");\n+\t\treturn -1;\n+\t}\n+\n \tif (rte_kni_release(kni) < 0) {\n \t\tprintf(\"fail to release kni\\n\");\n \t\treturn -1;\n@@ -439,6 +445,12 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)\n \t\treturn -1;\n \t}\n \n+\t/* test of freeing a released kni device */\n+\tif (rte_kni_free(kni) != 0) {\n+\t\tprintf(\"failed to free a released kni device\\n\");\n+\t\treturn -1;\n+\t}\n+\n \t/* test of reusing memzone */\n \tkni = rte_kni_alloc(mp, &conf, &ops);\n \tif (!kni) {\n@@ -598,6 +610,14 @@ test_kni(void)\n \t\tgoto fail;\n \t}\n \n+\t/* test of freeing NULL kni context */\n+\tret = rte_kni_free(NULL);\n+\tif (ret == 0) {\n+\t\tret = -1;\n+\t\tprintf(\"unexpectedly freed kni successfully\\n\");\n+\t\tgoto fail;\n+\t}\n+\n \t/* test of handling request on NULL device pointer */\n \tret = rte_kni_handle_request(NULL);\n \tif (ret == 0) {\n", "prefixes": [ "v2", "07/10" ] }{ "id": 41907, "url": "