Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/63787/?format=api
http://patchwork.dpdk.org/api/patches/63787/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20191212091435.4398-1-savinay.dharmappa@intel.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": "<20191212091435.4398-1-savinay.dharmappa@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191212091435.4398-1-savinay.dharmappa@intel.com", "date": "2019-12-12T09:14:34", "name": "[v1] examples/ipsec-secgw: return on encountering algo as NULL", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fac72647121e5cf5a40f45800734048a6031ec86", "submitter": { "id": 1535, "url": "http://patchwork.dpdk.org/api/people/1535/?format=api", "name": "Savinay Dharmappa", "email": "savinay.dharmappa@intel.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20191212091435.4398-1-savinay.dharmappa@intel.com/mbox/", "series": [ { "id": 7809, "url": "http://patchwork.dpdk.org/api/series/7809/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=7809", "date": "2019-12-12T09:14:34", "name": "[v1] examples/ipsec-secgw: return on encountering algo as NULL", "version": 1, "mbox": "http://patchwork.dpdk.org/series/7809/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/63787/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/63787/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 46F99A04F2;\n\tThu, 12 Dec 2019 10:14:46 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0BF332BD3;\n\tThu, 12 Dec 2019 10:14:45 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id 374B92BC8\n for <dev@dpdk.org>; Thu, 12 Dec 2019 10:14:42 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 12 Dec 2019 01:14:42 -0800", "from silpixa00390850.ir.intel.com (HELO\n silpixa00390850.ger.corp.intel.com) ([10.237.222.84])\n by orsmga007.jf.intel.com with ESMTP; 12 Dec 2019 01:14:41 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.69,305,1571727600\"; d=\"scan'208\";a=\"203875309\"", "From": "Savinay Dharmappa <savinay.dharmappa@intel.com>", "To": "dev@dpdk.org", "Cc": "konstantin.ananyev@intel.com", "Date": "Thu, 12 Dec 2019 09:14:34 +0000", "Message-Id": "<20191212091435.4398-1-savinay.dharmappa@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH v1] examples/ipsec-secgw: return on encountering\n\talgo as NULL", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "if algo is NULL set the status to error and return.\n\nSigned-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>\n---\n examples/ipsec-secgw/sa.c | 9 +++++++++\n 1 file changed, 9 insertions(+)", "diff": "diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c\nindex 7f046e3ed..c75a5a15f 100644\n--- a/examples/ipsec-secgw/sa.c\n+++ b/examples/ipsec-secgw/sa.c\n@@ -314,6 +314,9 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens,\n \t\t\tAPP_CHECK(algo != NULL, status, \"unrecognized \"\n \t\t\t\t\"input \\\"%s\\\"\", tokens[ti]);\n \n+\t\t\tif (status->status < 0)\n+\t\t\t\treturn;\n+\n \t\t\trule->cipher_algo = algo->algo;\n \t\t\trule->block_size = algo->block_size;\n \t\t\trule->iv_len = algo->iv_len;\n@@ -378,6 +381,9 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens,\n \t\t\tAPP_CHECK(algo != NULL, status, \"unrecognized \"\n \t\t\t\t\"input \\\"%s\\\"\", tokens[ti]);\n \n+\t\t\tif (status->status < 0)\n+\t\t\t\treturn;\n+\n \t\t\trule->auth_algo = algo->algo;\n \t\t\trule->auth_key_len = algo->key_len;\n \t\t\trule->digest_len = algo->digest_len;\n@@ -433,6 +439,9 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens,\n \t\t\tAPP_CHECK(algo != NULL, status, \"unrecognized \"\n \t\t\t\t\"input \\\"%s\\\"\", tokens[ti]);\n \n+\t\t\tif (status->status < 0)\n+\t\t\t\treturn;\n+\n \t\t\trule->aead_algo = algo->algo;\n \t\t\trule->cipher_key_len = algo->key_len;\n \t\t\trule->digest_len = algo->digest_len;\n", "prefixes": [ "v1" ] }{ "id": 63787, "url": "