[infiniband] Provide a general mechanism for path record lookups

Generalise out the path record lookup code from IPoIB.
This commit is contained in:
Michael Brown
2009-07-07 02:01:21 +01:00
parent 1d8c85d112
commit d6b47871de
4 changed files with 247 additions and 108 deletions

View File

@@ -145,6 +145,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_icmp ( ERRFILE_NET | 0x00190000 )
#define ERRFILE_ib_qset ( ERRFILE_NET | 0x001a0000 )
#define ERRFILE_ib_gma ( ERRFILE_NET | 0x001b0000 )
#define ERRFILE_ib_pathrec ( ERRFILE_NET | 0x001c0000 )
#define ERRFILE_image ( ERRFILE_IMAGE | 0x00000000 )
#define ERRFILE_elf ( ERRFILE_IMAGE | 0x00010000 )

View File

@@ -0,0 +1,17 @@
#ifndef _GPXE_IB_PATHREC_H
#define _GPXE_IB_PATHREC_H
/** @file
*
* Infiniband path records
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <gpxe/infiniband.h>
extern int ib_resolve_path ( struct ib_device *ibdev,
struct ib_address_vector *av );
#endif /* _GPXE_IB_PATHREC_H */