From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdomresearch-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=Sh/NmBikMxr0cbXQ9KS6bXFrafGgHhwSh8hImxSkdV4=; b=T2crwfhJFfuWilEB2UxtWGF7H8LFAiSgCG1R1//zBr8tCRzdCP15Kf52IpSjjXX1t6 qtPB9kCZu3vvm27RDYdO+Xw4UrcQLi8KMJ5PCS4BRhfkvZ0pnmAtVg9U71384tCdrRMh Ixdz2ot6ANsKaQfHM7eZ/izYW2HlMJJFol27m96rXbBLyGItBWyOBM4XeI54Ius0GlJW waNuEC6NYp2GLb0EvgmOM/JGa+It9o0BVN704+9SBH755lo63uvDG4B3Js9Z46NENn/u 6J5A52vllRO5gv2G+sJJd3qKpSUp99f9zw24zjVLMWS02EEQIVoXaguyy5sKEh/oZENJ MQrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Sh/NmBikMxr0cbXQ9KS6bXFrafGgHhwSh8hImxSkdV4=; b=JRZZhZeQog4OHUu2/rKmOVtGYuuwHbSU9tNaJkfoC+6h8/QM9614pNDNBc7YqViEM7 +52UkZO0K5SACZaDRgcH1UF1FHXORnsbBLbNUpIcKA40GZ/yxPOJ/5s3q7YowzHiSpC+ 1AOZaIQwJwhMttUxFEMvOxBBTxnzFniniI8X7+zok4bWat8V0WMjjRxLziV90jd1OZzi Dpqd+Xixymb9HfEmse1iShzSrIsBRxMdhU8tYfsYWW6esf3fXtz+F4n9sAi/GBo2Ilto ij/zCpEkeijh5tJOFKDxC4UqG6bVlWOTGUXIKRTLdfOQmrA14v8Qe+ju7U9hwpmSY10z /QXQ== X-Gm-Message-State: APf1xPDK7h3FfJrG6PqrXsIyHpAG0PUfgBFEBzNTq+rrQUOvH/WlV8sX Vun9a/KxoxdHddcEG29XT/NhvyuB X-Google-Smtp-Source: AH8x225qmxep25tnDo5QgnLtiOzuG1RxjTADBmy4hSS/nV8kM0u/7uAQBrtFehk/xcB7PaJSIJ8s8A== X-Received: by 10.25.123.18 with SMTP id w18mr1153624lfc.104.1519178605668; Tue, 20 Feb 2018 18:03:25 -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) From: Sergey Alekseev To: dev@dpdk.org Date: Wed, 21 Feb 2018 09:03:19 +0700 Message-Id: <1519178599-3661-1-git-send-email-sergey.alekseev@vdomresearch.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] ip_frag: fix hash key usage 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: Wed, 21 Feb 2018 02:03:26 -0000 --- 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