Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53004/?format=api
http://patches.dpdk.org/api/patches/53004/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190423154357.29877-4-bruce.richardson@intel.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": "<20190423154357.29877-4-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190423154357.29877-4-bruce.richardson@intel.com", "date": "2019-04-23T15:43:57", "name": "[v2,3/3] crypto/aesni_gcm: add check for build dependency", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "4f82a5164b091e4cd4be68cc8da83ae377c393be", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.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/20190423154357.29877-4-bruce.richardson@intel.com/mbox/", "series": [ { "id": 4429, "url": "http://patches.dpdk.org/api/series/4429/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4429", "date": "2019-04-23T15:43:54", "name": "improve IPsec_MB dependency checks", "version": 2, "mbox": "http://patches.dpdk.org/series/4429/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/53004/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/53004/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 A0E721B454;\n\tTue, 23 Apr 2019 17:44:20 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id ABC841B445\n\tfor <dev@dpdk.org>; Tue, 23 Apr 2019 17:44:14 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Apr 2019 08:44:14 -0700", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.222.236])\n\tby orsmga004.jf.intel.com with ESMTP; 23 Apr 2019 08:44:13 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.60,386,1549958400\"; d=\"scan'208\";a=\"293854421\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "pablo.de.lara.guarch@intel.com,\n\tdev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Date": "Tue, 23 Apr 2019 16:43:57 +0100", "Message-Id": "<20190423154357.29877-4-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190423154357.29877-1-bruce.richardson@intel.com>", "References": "<20190423154357.29877-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 3/3] crypto/aesni_gcm: add check for build\n\tdependency", "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": "The aesni_mb driver has a check in its Makefile for the correct version of\nthe IPsec_MB library, but this check was missed for the aesni_gcm driver.\nAdd this check to the makefile, removing an unnecessary assignment in the\nprocess.\n\nSuggested-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/crypto/aesni_gcm/Makefile | 19 ++++++++++++++++---\n 1 file changed, 16 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/crypto/aesni_gcm/Makefile b/drivers/crypto/aesni_gcm/Makefile\nindex 9241ad762..39eff3db0 100644\n--- a/drivers/crypto/aesni_gcm/Makefile\n+++ b/drivers/crypto/aesni_gcm/Makefile\n@@ -23,11 +23,24 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring\n LDLIBS += -lrte_cryptodev\n LDLIBS += -lrte_bus_vdev\n \n+IMB_HDR = $(shell echo '\\#include <intel-ipsec-mb.h>' | \\\n+\t$(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \\\n+\thead -n1 | cut -d'\"' -f2)\n+\n+# Detect library version\n+IMB_VERSION = $(shell grep -e \"IMB_VERSION_STR\" $(IMB_HDR) | cut -d'\"' -f2)\n+IMB_VERSION_NUM = $(shell grep -e \"IMB_VERSION_NUM\" $(IMB_HDR) | cut -d' ' -f3)\n+\n+ifeq ($(IMB_VERSION),)\n+$(error \"IPSec_MB version >= 0.52 is required\")\n+endif\n+\n+ifeq ($(shell expr $(IMB_VERSION_NUM) \\< 0x3400), 1)\n+$(error \"IPSec_MB version >= 0.52 is required\")\n+endif\n+\n # library source files\n SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd.c\n SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd_ops.c\n \n-# export include files\n-SYMLINK-y-include +=\n-\n include $(RTE_SDK)/mk/rte.lib.mk\n", "prefixes": [ "v2", "3/3" ] }{ "id": 53004, "url": "