From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5007AFB07 for ; Mon, 27 Mar 2017 13:26:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490614002; x=1522150002; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=FGdCQLN/zj7PZO0KXJ6u4sd7umnc3y4lyBJAhSTAftU=; b=ekceBhHQeLW414eZGKS5QZ0gfQDWo4j59vmybUXi9fMQxtlKFsESgKu8 S6re1UH35hvaGKsKclsBccY1QdSfQg==; Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2017 04:26:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,231,1486454400"; d="scan'208";a="79709465" Received: from silpixa00381631.ir.intel.com (HELO silpixa00381631.ger.corp.intel.com) ([10.237.222.122]) by orsmga005.jf.intel.com with ESMTP; 27 Mar 2017 04:26:40 -0700 From: Pablo de Lara To: declan.doherty@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Mon, 27 Mar 2017 12:26:06 +0100 Message-Id: <1490613966-74180-10-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490613966-74180-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1488557592-46193-1-git-send-email-pablo.de.lara.guarch@intel.com> <1490613966-74180-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2 9/9] app/crypto-perf: reorg options structure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 11:26:42 -0000 Reorganize options structure, to have all the parameters used in a single run in the first bytes of the structure, so all fit in a single cache line. Signed-off-by: Pablo de Lara --- app/test-crypto-perf/cperf_options.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/test-crypto-perf/cperf_options.h b/app/test-crypto-perf/cperf_options.h index 24699ed..b928c58 100644 --- a/app/test-crypto-perf/cperf_options.h +++ b/app/test-crypto-perf/cperf_options.h @@ -58,20 +58,14 @@ struct cperf_options { uint32_t pool_sz; uint32_t total_ops; - uint32_t test_buffer_size; uint32_t segments_nb; - - char device_type[RTE_CRYPTODEV_NAME_LEN]; - enum cperf_op_type op_type; + uint32_t test_buffer_size; uint32_t sessionless:1; uint32_t out_of_place:1; uint32_t silent:1; uint32_t csv:1; - char *test_file; - char *test_name; - enum rte_crypto_cipher_algorithm cipher_algo; enum rte_crypto_cipher_operation cipher_op; @@ -85,6 +79,12 @@ struct cperf_options { uint16_t auth_digest_sz; uint16_t auth_aad_sz; + char device_type[RTE_CRYPTODEV_NAME_LEN]; + enum cperf_op_type op_type; + + char *test_file; + char *test_name; + uint32_t buffer_size_list[MAX_LIST]; uint8_t buffer_size_count; uint32_t max_buffer_size; -- 2.7.4