From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by dpdk.org (Postfix) with ESMTP id 885138DAE for ; Wed, 2 Dec 2015 04:24:07 +0100 (CET) Received: by pacdm15 with SMTP id dm15so25959744pac.3 for ; Tue, 01 Dec 2015 19:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pcI0X0F3TQLBIxlU6KiDMmE0NB9NZA3UXu37lZhWngc=; b=13wSaaZtiJt7pTBW4HRePgNKV/nEgPqDeQ42wRHyBd3u4p7K7JeY2KohY9us5yqs4B lCU7SFTtzuO/41GkVmc1Z8kVhNaRdXtfT5hOu4cS7pu2nSp/KklAoapCBGurpXIdlzWj KlsT51520RCONO/njvHNwIvjjohY6m+/LFfSmqYLkEgXLBEWQTzDC4IdtQ9YzgXgcVrI EF1QBp+lEpUjt8s8XiN50Eo04Do2hOhbukH17LjXZsGA6falrBQnxg8a+5BrdM5hCa6O IU8xxSMHRNkRBfhQtckT5kOwIvLxjI+74XCFtoyITR2ALKNedvrBJV2qZCi1xlE90sbD xGWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pcI0X0F3TQLBIxlU6KiDMmE0NB9NZA3UXu37lZhWngc=; b=MkKcB+kjDRwPTgO2C3jEMRglq8MON3PZjFg+biBnkWhRR6NfLTJ3rcV+9PzLagMraH mnbUtCDpLaWoagRFafDg2ejmvzra0hXbJfL0nSmeEXjZNcLvcpcQU1KbY2XbwumcAqqK 3l25B4JDW3sGLIUhEmQTUctUszVetA0P6VrXZNAyBthkJ7eWdqkJOIJQTT6f5ljCcBVy 9X8RZKNI0qJ/6SvSCsqFcE8LeYt86auIyM6W3nG7MxBa8MPwQBX9qFMPQWPHUromyLGE YzCFW5NnD3oFF3kVtowoHB5dOUmiEL4ykvQKJWq/Pw6thcpPsqr/w0xUXFbgdRjsuc+h c7bw== X-Gm-Message-State: ALoCoQnj9qmv23K6EaHhThcRwfcTKtPm+xjo65oWx9KfSCsNv7JfSy2voyjUDNfSZ6NUUg1EB3HG X-Received: by 10.66.158.129 with SMTP id wu1mr1320421pab.146.1449026646966; Tue, 01 Dec 2015 19:24:06 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id n88sm713752pfb.26.2015.12.01.19.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 19:24:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Tue, 1 Dec 2015 19:24:12 -0800 Message-Id: <1449026652-7320-4-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449026652-7320-1-git-send-email-stephen@networkplumber.org> References: <1449026652-7320-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 3/3] qat: use memset instead of bzero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 03:24:08 -0000 Signed-off-by: Stephen Hemminger --- examples/dpdk_qat/crypto.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/dpdk_qat/crypto.c b/examples/dpdk_qat/crypto.c index c03ea78..8954bf8 100644 --- a/examples/dpdk_qat/crypto.c +++ b/examples/dpdk_qat/crypto.c @@ -307,7 +307,7 @@ getCoreAffinity(Cpa32U *coreAffinity, const CpaInstanceHandle instanceHandle) Cpa16U i = 0; CpaStatus status = CPA_STATUS_SUCCESS; - bzero(&info, sizeof(CpaInstanceInfo2)); + memset(&info, 0, sizeof(CpaInstanceInfo2)); status = cpaCyInstanceGetInfo2(instanceHandle, &info); if (CPA_STATUS_SUCCESS != status) { @@ -380,7 +380,7 @@ initCySymSession(const int pkt_cipher_alg, CpaBoolean isCrypto = CPA_TRUE, isHmac = CPA_TRUE; CpaCySymSessionSetupData sessionSetupData; - bzero(&sessionSetupData, sizeof(CpaCySymSessionSetupData)); + memset(&sessionSetupData, 0, sizeof(CpaCySymSessionSetupData)); /* Assumption: key length is set to each algorithm's max length */ switch (pkt_cipher_alg) { @@ -781,7 +781,7 @@ crypto_encrypt(struct rte_mbuf *rte_buff, enum cipher_alg c, enum hash_alg h) lcore_id = rte_lcore_id(); - bzero(opData, sizeof(CpaCySymDpOpData)); + memset(opData, 0, sizeof(CpaCySymDpOpData)); opData->srcBuffer = opData->dstBuffer = PACKET_DATA_START_PHYS(rte_buff); opData->srcBufferLen = opData->dstBufferLen = rte_buff->data_len; @@ -856,7 +856,7 @@ crypto_decrypt(struct rte_mbuf *rte_buff, enum cipher_alg c, enum hash_alg h) lcore_id = rte_lcore_id(); - bzero(opData, sizeof(CpaCySymDpOpData)); + memset(opData, 0, sizeof(CpaCySymDpOpData)); opData->dstBuffer = opData->srcBuffer = PACKET_DATA_START_PHYS(rte_buff); opData->dstBufferLen = opData->srcBufferLen = rte_buff->data_len; -- 2.1.4