• Ira Weiny's avatar
    IB/mad: Split IB SMI handling from MAD Recv handler · e11ae8aa
    Ira Weiny authored
    Make a helper function to process Directed Route SMPs to be called by the IB
    MAD Recv Handler, ib_mad_recv_done_handler.
    
    This cleans up the MAD receive handler code a bit and allows for us to better
    share the SMP processing code between IB and OPA SMPs.
    
    IB and OPA SMPs share the same processing algorithm but have different header
    formats and permissive LID detection.  Therefore this and subsequent patches
    split the common processing code from the IB specific code in anticipation of
    sharing those algorithms with the OPA code.
    Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    e11ae8aa
mad.c 88.8 KB