[PATCH libnl v2 3/5] obj_ops: add new oo_hash_attrs_get to get hash key attributes of any object

David Ahern dsa at cumulusnetworks.com
Sat Jun 18 15:30:07 PDT 2016


From: Roopa Prabhu <roopa at cumulusnetworks.com>

This callback supports querying of hash key attributes of an object.
This will be used by caches (like the route cache) to decide on search
attributes during cache inclusion depending on netlink message flags.

Signed-off-by: Roopa Prabhu <roopa at cumulusnetworks.com>
---
 include/netlink-private/object-api.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/netlink-private/object-api.h b/include/netlink-private/object-api.h
index a5ecaa1..6f53d27 100644
--- a/include/netlink-private/object-api.h
+++ b/include/netlink-private/object-api.h
@@ -368,6 +368,11 @@ struct nl_object_ops
 	 * Get key attributes by family function
 	 */
 	uint32_t   (*oo_id_attrs_get)(struct nl_object *);
+
+	/**
+	 * Get attributes used in hash key
+	 */
+	uint32_t   (*oo_hash_attrs_get)(struct nl_object *);
 };
 
 /** @} */
-- 
2.1.4




More information about the libnl mailing list