From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Alekseev Subject: [PATCH] ip_frag: fix hash key usage Date: Wed, 21 Feb 2018 09:03:19 +0700 Message-ID: <1519178599-3661-1-git-send-email-sergey.alekseev@vdomresearch.com> To: dev@dpdk.org Return-path: Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by dpdk.org (Postfix) with ESMTP id 73BD52C57 for ; Wed, 21 Feb 2018 03:03:26 +0100 (CET) Received: by mail-lf0-f67.google.com with SMTP id t79so171443lfe.3 for ; Tue, 20 Feb 2018 18:03:26 -0800 (PST) Received: from sergey-ubuntu.tsk.vdombox.ru (gw-vdom-reserch.ll-tmk.zsttk.ru. [81.1.215.114]) by smtp.gmail.com with ESMTPSA id r2sm2259622ljb.30.2018.02.20.18.03.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Feb 2018 18:03:25 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --- lib/librte_ip_frag/ip_frag_internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ip_frag/ip_frag_internal.c b/lib/librte_ip_frag/ip_frag_internal.c index 7397aa6..2cfa56b 100644 --- a/lib/librte_ip_frag/ip_frag_internal.c +++ b/lib/librte_ip_frag/ip_frag_internal.c @@ -61,7 +61,7 @@ ipv4_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) uint32_t v; const uint32_t *p; - p = (const uint32_t *)&key->src_dst; + p = (const uint32_t *) key->src_dst; #ifdef RTE_ARCH_X86 v = rte_hash_crc_4byte(p[0], PRIME_VALUE); @@ -82,7 +82,7 @@ ipv6_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) uint32_t v; const uint32_t *p; - p = (const uint32_t *) &key->src_dst; + p = (const uint32_t *) key->src_dst; #ifdef RTE_ARCH_X86 v = rte_hash_crc_4byte(p[0], PRIME_VALUE); -- 2.7.4