]> git.ipfire.org Git - people/ms/linux.git/commit
IB/mad cleanup: Generalize processing of MAD data
authorIra Weiny <ira.weiny@intel.com>
Sat, 6 Jun 2015 18:38:23 +0000 (14:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:16 +0000 (14:49 -0400)
commit83a1d2288952db16150a09f3d40284ffc11fc063
tree9a2ad749c9cfd476585a5caa9a40034cb3e2855e
parentd94bd2667a78ecbc64296588a8272e97a61dbafd
IB/mad cleanup: Generalize processing of MAD data

ib_find_send_mad only needs access to the MAD header not the full IB MAD.
Change the local variable to ib_mad_hdr and change the corresponding cast.

This allows for clean usage of this function with both IB and OPA MADs because
OPA MADs carry the same header as IB MADs.

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