Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/65955/?format=api
http://patches.dpdk.org/api/patches/65955/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1582185727-6749-16-git-send-email-lbartosik@marvell.com/", "project": { "id": 1, "url": "http://patches.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": "<1582185727-6749-16-git-send-email-lbartosik@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1582185727-6749-16-git-send-email-lbartosik@marvell.com", "date": "2020-02-20T08:02:07", "name": "[v4,15/15] examples/ipsec-secgw: reserve crypto queues in event mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e902cc594016e528132ad7b9188d1f6724d89ab2", "submitter": { "id": 1305, "url": "http://patches.dpdk.org/api/people/1305/?format=api", "name": "Lukas Bartosik [C]", "email": "lbartosik@marvell.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1582185727-6749-16-git-send-email-lbartosik@marvell.com/mbox/", "series": [ { "id": 8627, "url": "http://patches.dpdk.org/api/series/8627/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8627", "date": "2020-02-20T08:01:52", "name": "add eventmode to ipsec-secgw", "version": 4, "mbox": "http://patches.dpdk.org/series/8627/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/65955/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/65955/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 B9233A0555;\n\tThu, 20 Feb 2020 09:05:08 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 45A4C1BFFA;\n\tThu, 20 Feb 2020 09:03:05 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 6EA211C013\n for <dev@dpdk.org>; Thu, 20 Feb 2020 09:03:02 +0100 (CET)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 01K81JMv016880; Thu, 20 Feb 2020 00:03:01 -0800", "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0a-0016f401.pphosted.com with ESMTP id 2y8ubhefm4-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 20 Feb 2020 00:03:01 -0800", "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Feb\n 2020 00:03:00 -0800", "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 20 Feb 2020 00:03:00 -0800", "from luke.marvell.com (unknown [10.95.130.24])\n by maili.marvell.com (Postfix) with ESMTP id 70A9E3F7040;\n Thu, 20 Feb 2020 00:02:57 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0818; bh=SWljHSTI8EyiKAcZJT39xoB6mPI5oEE/qi3K1cbUkFo=;\n b=xIUrjmYHjceEbY7K3hFcS2dfDJb7DrWnniAtGQnL8uknnW9asZGqpsivlyjNfazKoSHH\n IUrhY3LlpR6ieHarO96UE9ssWcDHC3gGI5eIZxVKRb3ED/OmufQGS2mzvgohpjxwyfjJ\n gZjSUmyCFRyotKivCqyhYW0nM557JiVu50JuUJDhq5sL+i7bGOT3KHtJf8sU0ALp4FbG\n LOrzOc+XyRxttTspnkiQ5ncaWOtVn8SpA8N8d73TxGNJN1p7dWt3HS5zx2PwJb7ivQgi\n 6TZ0PtFqC2IiaQ9DPk9JqCcbx3DciyQzkP1NJ7cVSR7+EozGIRW5SU9bOJJLXaALoTOc Bw==", "From": "Lukasz Bartosik <lbartosik@marvell.com>", "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Thomas Monjalon <thomas@monjalon.net>", "CC": "Jerin Jacob <jerinj@marvell.com>, Narayana Prasad <pathreya@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>, Anoob Joseph <anoobj@marvell.com>,\n Archana Muniganti <marchana@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>, Vamsi Attunuru <vattunuru@marvell.com>,\n \"Konstantin Ananyev\" <konstantin.ananyev@intel.com>, <dev@dpdk.org>", "Date": "Thu, 20 Feb 2020 09:02:07 +0100", "Message-ID": "<1582185727-6749-16-git-send-email-lbartosik@marvell.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1582185727-6749-1-git-send-email-lbartosik@marvell.com>", "References": "<1580824721-21527-1-git-send-email-lbartosik@marvell.com>\n <1582185727-6749-1-git-send-email-lbartosik@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-02-20_02:2020-02-19,\n 2020-02-20 signatures=0", "Subject": "[dpdk-dev] [PATCH v4 15/15] examples/ipsec-secgw: reserve crypto\n\tqueues in event mode", "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": "Reserve minimum number of crypto queues equal to number of ports.\nThis is to fulfill inline protocol offload requirements.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Lukasz Bartosik <lbartosik@marvell.com>\n---\n examples/ipsec-secgw/ipsec-secgw.c | 14 ++++++++++++--\n 1 file changed, 12 insertions(+), 2 deletions(-)", "diff": "diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex 341e7b4..982d00b 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -1919,7 +1919,7 @@ check_cryptodev_mask(uint8_t cdev_id)\n }\n \n static uint16_t\n-cryptodevs_init(void)\n+cryptodevs_init(uint16_t req_queue_num)\n {\n \tstruct rte_cryptodev_config dev_conf;\n \tstruct rte_cryptodev_qp_conf qp_conf;\n@@ -1982,6 +1982,7 @@ cryptodevs_init(void)\n \t\t\ti++;\n \t\t}\n \n+\t\tqp = RTE_MIN(max_nb_qps, RTE_MAX(req_queue_num, qp));\n \t\tif (qp == 0)\n \t\t\tcontinue;\n \n@@ -2726,7 +2727,16 @@ main(int32_t argc, char **argv)\n \n \tsess_sz = max_session_size();\n \n-\tnb_crypto_qp = cryptodevs_init();\n+\t/*\n+\t * In event mode request minimum number of crypto queues\n+\t * to be reserved equal to number of ports.\n+\t */\n+\tif (eh_conf->mode == EH_PKT_TRANSFER_MODE_EVENT)\n+\t\tnb_crypto_qp = rte_eth_dev_count_avail();\n+\telse\n+\t\tnb_crypto_qp = 0;\n+\n+\tnb_crypto_qp = cryptodevs_init(nb_crypto_qp);\n \n \tif (nb_bufs_in_pool == 0) {\n \t\tRTE_ETH_FOREACH_DEV(portid) {\n", "prefixes": [ "v4", "15/15" ] }{ "id": 65955, "url": "