IB/sa: Route SA pathrecord query through netlink
authorKaike Wan <kaike.wan@intel.com>
Fri, 14 Aug 2015 12:52:09 +0000 (08:52 -0400)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:26 +0000 (18:12 -0400)
commit2ca546b92a024d07adedd15b4c262b1c2c0786ec
tree4dadb779ffe3128b953fdf5c483637b8be794e63
parent5d2657708ec25b9fb3dd174443b1f647babcbe62
IB/sa: Route SA pathrecord query through netlink

This patch routes a SA pathrecord query to netlink first and processes the
response appropriately. If a failure is returned, the request will be sent
through IB. The decision whether to route the request to netlink first is
determined by the presence of a listener for the local service netlink
multicast group. If the user-space local service netlink multicast group
listener is not present, the request will be sent through IB, just like
what is currently being done.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: John Fleck <john.fleck@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c