[From nobody Sun May 29 05:38:44 2016
Received: from zmta01.collab.prod.int.phx2.redhat.com (LHLO
 zmta01.collab.prod.int.phx2.redhat.com) (10.5.81.8) by
 zmail21.collab.prod.int.phx2.redhat.com with LMTP; Mon, 2 Nov 2015 17:13:10
 -0500 (EST)
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
 (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by
 zmta01.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id D84A61854EF
 for &lt;thaller@mail.corp.redhat.com&gt;; Mon,  2 Nov 2015 17:13:10 -0500 (EST)
Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com
 [10.5.110.28]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4)
 with ESMTP id tA2MDADq006279 (version=TLSv1/SSLv3
 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for
 &lt;thaller@redhat.com&gt;; Mon, 2 Nov 2015 17:13:10 -0500
Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com
 [209.85.220.45]) by mx1.redhat.com (Postfix) with ESMTPS id 3B9428F4E5 for
 &lt;thaller@redhat.com&gt;; Mon,  2 Nov 2015 22:13:10 +0000 (UTC)
Received: by pasz6 with SMTP id z6so160586349pas.2 for
 &lt;thaller@redhat.com&gt;; Mon, 02 Nov 2015 14:13:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=cumulusnetworks.com; s=google; h=from:to:cc:subject:date:message-id;
 bh=sQ+v/Vc6malYNFgTgMZi/FNmtvtidcudNGh5agu5OoQ=;
 b=XI7f0naPma+HmmpDOQKbzHUrcXBGh0BNZb3QJznNQk/crjK8k+yNnmJVQnA5Yw+FLg
 xLdBgkv2YvASMQ/2u53wTfA8ZYiEXsaFRk5/n+wNOx1f2C+Urd8RxXUAPXZ5GnTBP1OU
 7lLROvSXs1H5iEkj/3xhZ6+cGcv0AOBDC7INU=
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=sQ+v/Vc6malYNFgTgMZi/FNmtvtidcudNGh5agu5OoQ=;
 b=dSJthm7YNZtSseCZyN/1uxOFH8cNRx3/6XcjihzRc03nJxadRRflrKvTS2cGUjA60s
 HdpTVXRI6cA6hYe1UcKDapQqTE4KePNhgQ2ZKgJveR4rvZRscI0y+4JGKkpFc9biSF0i
 Fi8y6gqLgYAVZrmeh9/xE2Wcov4+l29CClOtQbBR4SeU4JGeUPl2ASOg6Snkb6yXaqED
 5fQ3ERDmpSQFWuLxtebItT0TlAPvCOPQUVeHzCmAEzSNdwY36D37i/uTU9C62CS5u2cP
 Z2GVeVcMHyisGtiZUGUW1E91/DeFDJnDz36wrxvb+VXb7ok3K7AXiBDJNwsqTR8VjWM+ Ve0A==
X-Gm-Message-State: ALoCoQkT4gw4d3tESR2c1gURLcAfenpXlINX4PQa6m4mUFdGk9arCav7dGMGLUB4PHA4BTFcVELF
X-Received: by 10.68.226.161 with SMTP id
 rt1mr29457552pbc.98.1446501939102; Mon, 02 Nov 2015 14:05:39 -0800 (PST)
Received: from hydra-01.cumulusnetworks.com ([216.129.126.126]) by
 smtp.googlemail.com with ESMTPSA id bz1sm25892966pab.20.2015.11.02.14.05.38
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02
 Nov 2015 14:05:38 -0800 (PST)
From: Roopa Prabhu &lt;roopa@cumulusnetworks.com&gt;
X-Google-Original-From: Roopa Prabhu
To: libnl@lists.infradead.org
Cc: thaller@redhat.com, roopa@cumulusnetworks.com
Subject: [PATCH 4/6] obj_ops: add new oo_hash_attrs_get to get hash key
 attributes of any object
Date: Mon,  2 Nov 2015 14:05:27 -0800
Message-Id: &lt;1446501929-32003-5-git-send-email-roopa@cumulusnetworks.com&gt;
X-RedHat-Spam-Score: 2.08 **
 (ANY_BOUNCE_MESSAGE, BAYES_50, BOUNCE_MESSAGE, DCC_REPUT_13_19, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DSN_NO_MIMEVERSION, RCVD_IN_DNSWL_LOW,
 RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED)
 209.85.220.45 mail-pa0-f45.google.com 209.85.220.45 mail-pa0-f45.google.com
 &lt;&gt;
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Scanned-By: MIMEDefang 2.75 on 10.5.110.28
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable

From: Roopa Prabhu &lt;roopa@cumulusnetworks.com&gt;

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 &lt;roopa@cumulusnetworks.com&gt;
---
 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 aaade6c..4fc876b 100644
--- a/include/netlink-private/object-api.h
+++ b/include/netlink-private/object-api.h
@@ -366,6 +366,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 *);
 };
=20
 /** @} */
--=20
1.7.10.4

]