From patchwork Fri Apr 9 12:56:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 418173 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1545927jai; Fri, 9 Apr 2021 05:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTCCjcA4lk36aXcIvn63IdM7iJp+2Gn8qz2m2dQ+hXsaNzPQoNRSTYp6QbHFSy0vUGkFH4 X-Received: by 2002:a17:906:dc90:: with SMTP id cs16mr15542395ejc.368.1617973078689; Fri, 09 Apr 2021 05:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617973078; cv=none; d=google.com; s=arc-20160816; b=PGIEY1vDjY/Dof9jrbJ6EBk1GrFJpACwlrQzvC/fHuOPW9G7TGK/xikKC4L9cjdhOw X+IUffHiiuVt1KTD6CvrjpnPqicICfKOkh50wAtNecpz3rWzUzY12bSM0R8UTT9f473M 279cfWXxnVrNc0Z29GTzYifK2yHT9NCplRcrXquKVcUP5IP7NolWyd/EwAvGNuV4oSyW bmTFMJJ+9l6biPzfKjJrPOihIVLB38CHgx+H8ysDPkXlUHIize03pJCpmio1fUgAmBvL GkHX59MO1lcT5j+ViFKyB/6TxS1Hc7+LaxzZv9cUv/Q8yPAZDwUslU9WWIVMfoGtq/VE 7W5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=ZNAaeOvJxE8TbRUG98rPAq8kW72/q1rnbqpnU0jiIyw=; b=HEbeqK2qb1uw5JB+q4WF/Wj6cJot1iITwLC9ojjZqhA9HeGwasLih052SISwWZML0v Mtu8uXkckpe5gIOCtfOqj02DF/JIbkgCEyuGYsiqK/G85wVGEu+GMGWTVW/c/a+n9YkN 9jHCGpPpbXl9i9+ySNdip+88h7DZZ5pI8HBhMnCPa1lrlbhI7b17CmVRFnPzq6BrSjiX ujxQYk8fsY8B6vhICKNnN3yhS4MZBgTRdSGWkc6E+RQHwareooOJX05+hzHfBOhmsuVr gb/iF58AchbX/SL27iWnqHF1SMQ13MRLbsojwEp/36Nohu2+BnUorZly8nd3AxR4ktHH c7Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id hp16si2031859ejc.157.2021.04.09.05.57.58; Fri, 09 Apr 2021 05:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AFF3A4068B; Fri, 9 Apr 2021 14:57:57 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id CA86C4014D for ; Fri, 9 Apr 2021 14:57:55 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9F62D1A137C; Fri, 9 Apr 2021 14:57:55 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0A4A51A137B; Fri, 9 Apr 2021 14:57:54 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 87746402AE; Fri, 9 Apr 2021 14:57:51 +0200 (CEST) From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Gagandeep Singh Date: Fri, 9 Apr 2021 18:26:21 +0530 Message-Id: <20210409125621.24921-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210223061307.22765-1-hemant.agrawal@nxp.com> References: <20210223061307.22765-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2] l2fwd-crypto: align private data size to cache size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Gagandeep Singh L2fwd-crypto is passing 24b private data size while packet pool creation. This patch aligns that private data size to cache line size for better performance results. Signed-off-by: Gagandeep Singh --- examples/l2fwd-crypto/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 Acked-by: Akhil Goyal diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index a96cb94cc4..0ee3e1470a 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -2691,7 +2691,8 @@ main(int argc, char **argv) /* create the mbuf pool */ l2fwd_pktmbuf_pool = rte_pktmbuf_pool_create("mbuf_pool", NB_MBUF, 512, - sizeof(struct rte_crypto_op), + RTE_ALIGN(sizeof(struct rte_crypto_op), + RTE_CACHE_LINE_SIZE), RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); if (l2fwd_pktmbuf_pool == NULL) rte_exit(EXIT_FAILURE, "Cannot create mbuf pool\n");