diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2016-06-18 22:30:07 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-07-08 10:02:07 (GMT) |
commit | 95e778f1498bffbc174b6c0c8fd16eae2a7afbf6 (patch) | |
tree | fd9e33008bb4b6616bc8d469525f83913d7ed3c2 | |
parent | 1db12c9e3208c98332cf169eb689a985d77c9a05 (diff) | |
download | libnl-95e778f1498bffbc174b6c0c8fd16eae2a7afbf6.zip libnl-95e778f1498bffbc174b6c0c8fd16eae2a7afbf6.tar.gz libnl-95e778f1498bffbc174b6c0c8fd16eae2a7afbf6.tar.bz2 |
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 <roopa@cumulusnetworks.com>
-rw-r--r-- | include/netlink-private/object-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 *); }; /** @} */ |