From 95e778f1498bffbc174b6c0c8fd16eae2a7afbf6 Mon Sep 17 00:00:00 2001 From: Roopa Prabhu Date: Sat, 18 Jun 2016 15:30:07 -0700 Subject: [PATCH] obj_ops: add new oo_hash_attrs_get to get hash key attributes of any object 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 --- 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.40.0