IB/mad: Create a generic helper for DR forwarding checks
authorIra Weiny <ira.weiny@intel.com>
Sat, 6 Jun 2015 18:38:27 +0000 (14:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:16 +0000 (14:49 -0400)
commit29869eafa6d757edbec17a9a7add1e34b968ae2c
treef9c6a9b60c697d12748d7cdd69bed5d2e8305575
parent86f0e67a21508b3e6020d53ef92a73081ed7eae1
IB/mad: Create a generic helper for DR forwarding checks

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 the DR forwarding checks which
can be used by both IB and OPA SMP code.

Use this function in the current IB function smi_check_forward_dr_smp.

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