From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id 6039D56B7 for ; Wed, 23 Sep 2015 01:12:07 +0200 (CEST) Received: by pacex6 with SMTP id ex6so22057623pac.0 for ; Tue, 22 Sep 2015 16:12:06 -0700 (PDT) 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; bh=rzCk4cmog2srnf1pOv14/w8Qn+XVvyfRQyCrmUF0Dx0=; b=kVj/q18nrwx6Ev2HJ87Ik+tdXWeJzqFYlCNebeBKTnNrCKeV8lpU1y5rajqgM19vqt 1+AhpoHCdI4RMdaTTHT0fTVyBh9ds0m9OP0NHQeAa9KO0woqs21ufqHV176BHJuNF8gp tsEe0XvyuVdgrG4JBxpe1nOOC3ZtiFYcvZ7Jcu5yBzsBwB+0WpiXmnojbTADGEMHBrxL k4nWwaPVyqGcIEZpEfCnx9b5+4fPN6nFXh651jiopxHDQr1+KfV9LBtb2HZ3HXjay0Ei CogKm/rz7ag6SSfN5dtyEQE6VKALcm16OTB/gbv5dya8yyjW27X3DRBaHnU06OLtxhjQ uubA== X-Gm-Message-State: ALoCoQnvziq5Qq0bbmdRaeBbT/KE9wE04B+6pV8ECFok+2XWADGvNX8GRxPQDkcCI6y86rOPBHLW X-Received: by 10.66.147.74 with SMTP id ti10mr4789890pab.88.1442963526511; Tue, 22 Sep 2015 16:12:06 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id xi1sm4203215pac.48.2015.09.22.16.12.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Sep 2015 16:12:05 -0700 (PDT) From: Stephen Hemminger To: bruce.richardson@intel.com Date: Tue, 22 Sep 2015 16:12:17 -0700 Message-Id: <1442963537-9795-1-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] hash: fix broken compatability with 2.0 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: Tue, 22 Sep 2015 23:12:07 -0000 Version 2.1 must retain source code compatability with 2.0, all structure fields should be retained. If a field is no longer used it should have been marked as deprecated. Fixes: 661e75ef8cac ("hash: rename unused field") Signed-off-by: Stephen Hemminger --- lib/librte_hash/rte_hash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_hash.h b/lib/librte_hash/rte_hash.h index 175c0bb..47d6e4d 100644 --- a/lib/librte_hash/rte_hash.h +++ b/lib/librte_hash/rte_hash.h @@ -69,7 +69,8 @@ typedef uint32_t (*rte_hash_function)(const void *key, uint32_t key_len, struct rte_hash_parameters { const char *name; /**< Name of the hash. */ uint32_t entries; /**< Total hash table entries. */ - uint32_t reserved; /**< Unused field. Should be set to 0 */ + uint32_t num_buckets /**< Unused in current algorithm */ + __attribute__((deprecated)); uint32_t key_len; /**< Length of hash key. */ rte_hash_function hash_func; /**< Primary Hash function used to calculate hash. */ uint32_t hash_func_init_val; /**< Init value used by hash_func. */ -- 2.1.4