IB/mad: Create a generic helper for DR SMP Send processing
authorIra Weiny <ira.weiny@intel.com>
Sat, 6 Jun 2015 18:38:25 +0000 (14:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:16 +0000 (14:49 -0400)
commit92f1505604be05a01851203a5759ad9ed33c8d91
tree7e2ebf73db67263c2a3782a5771589c6fc77185b
parente11ae8aa0ccd7823f9b22ce29a46a8ddc583a458
IB/mad: Create a generic helper for DR SMP Send 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 Send messages which
can be used by both IB and OPA SMP code.

Use this function in the current IB function smi_handle_dr_smp_send.

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