All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hash: fix broken compatability with 2.0
@ 2015-09-22 23:12 Stephen Hemminger
  2015-10-21 13:48 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2015-09-22 23:12 UTC (permalink / raw)
  To: bruce.richardson; +Cc: dev

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 <stephen@networkplumber.org>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hash: fix broken compatability with 2.0
  2015-09-22 23:12 [PATCH] hash: fix broken compatability with 2.0 Stephen Hemminger
@ 2015-10-21 13:48 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2015-10-21 13:48 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

2015-09-22 16:12, Stephen Hemminger:
> 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 <stephen@networkplumber.org>

This rollback would be only useful for a 2.1 release.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-21 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-22 23:12 [PATCH] hash: fix broken compatability with 2.0 Stephen Hemminger
2015-10-21 13:48 ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.