IB/mad: Create a generic helper for DR SMP Recv processing
authorIra Weiny <ira.weiny@intel.com>
Sat, 6 Jun 2015 18:38:26 +0000 (14:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:16 +0000 (14:49 -0400)
commit86f0e67a21508b3e6020d53ef92a73081ed7eae1
tree6741fabfc028ae7a10fb9bf52534751e0d7e100d
parent92f1505604be05a01851203a5759ad9ed33c8d91
IB/mad: Create a generic helper for DR SMP Recv processing

IB and OPA SMPs share the same processing algorithm but have different header
formats and permissive LID detection.

Add a helper function which is generic to processing DR SMP Recv messages which
can be used by both IB and OPA SMP code.

Use this function in the current IB function smi_handle_dr_smp_recv.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/smi.c