From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by dpdk.org (Postfix) with ESMTP id A89EE5936 for ; Fri, 7 Mar 2014 19:12:58 +0100 (CET) Received: by mail-pd0-f169.google.com with SMTP id fp1so4345694pdb.14 for ; Fri, 07 Mar 2014 10:14:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject :references:content-disposition; bh=t86tI60DYa0hSWRcnIRguhLDdflI9zr5BShXxvDeEis=; b=J/fuQ935QGPepsdjj1zJ7mS/1Um6zFbt7ouBi4DFaoMmM3YAXunORslVrkxZArC5/G WRqE0vNPcYzhMw5Gu5DFECiWlI4dgBlRaiIZHXZrbAhvhWGlZprNzUJ6gvqWZrb3aRCB akamW77P3WvsOZKavPSOY+TM5IfLgySz1zRJHEIBRKJi9XqrEXwgabPpLmV3BA4KfmPR byJ4jqP8nQvZYlj4L+RrBL63T+haml4zENIUR40jo2uW4I00KqC02IP5lwLzuWe/pCiL mQ/HZ58/Q8GPDLKN0MgPLq+epiGay5eipCby7/TDzEQ9oAMlUEaQ+1r9H8rUc26knwBs tcxw== X-Gm-Message-State: ALoCoQlNno//oABQDLyQ7KlL70RIX/Sk7CiiyAfoYCCc4dgyd8+h45Cim7su3FL2www0V58uSLkb X-Received: by 10.68.35.129 with SMTP id h1mr23568902pbj.163.1394216067175; Fri, 07 Mar 2014 10:14:27 -0800 (PST) Received: from localhost (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id it4sm39813476pbc.39.2014.03.07.10.14.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 07 Mar 2014 10:14:26 -0800 (PST) Message-Id: <20140307181425.176731410@vyatta.com> User-Agent: quilt/0.60-1 Date: Fri, 07 Mar 2014 10:13:38 -0800 From: Stephen Hemminger To: "Venkatesan, Venky" References: <20140307181335.024904493@vyatta.com> Content-Disposition: inline; filename=jhash2-const.patch Cc: dev@dpdk.org, Stephen Hemminger Subject: [dpdk-dev] [PATCH 3/6] rte_jhash: make arg to rte_jhash2 const 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: Fri, 07 Mar 2014 18:12:59 -0000 The argument to rte_jhash2() is not changed. Signed-off-by: Stephen Hemminger diff --git a/lib/librte_hash/rte_jhash.h b/lib/librte_hash/rte_jhash.h index e137d13..ae91bf7 100644 --- a/lib/librte_hash/rte_jhash.h +++ b/lib/librte_hash/rte_jhash.h @@ -149,7 +149,7 @@ rte_jhash(const void *key, uint32_t length, uint32_t initval) * Calculated hash value. */ static inline uint32_t -rte_jhash2(uint32_t *k, uint32_t length, uint32_t initval) +rte_jhash2(const uint32_t *k, uint32_t length, uint32_t initval) { uint32_t a, b, c, len;