9 FILE_LICENCE ( GPL2_OR_LATER );
11 #include <gpxe/infiniband.h>
13 /** IPoIB MAC address length */
16 /** An IPoIB MAC address */
20 * MSB indicates support for IPoIB "connected mode". Lower 24
26 } __attribute__ (( packed ));
28 /** IPoIB link-layer header length */
31 /** IPoIB link-layer header */
33 /** Network-layer protocol */
35 /** Reserved, must be zero */
37 /** Reserved, must be zero */
41 * We use these fields internally to represent the
42 * peer addresses using a lookup key. There simply
43 * isn't enough room in the IPoIB header to store
44 * literal source or destination MAC addresses.
47 /** Destination address key */
49 /** Source address key */
51 } __attribute__ (( packed )) peer;
52 } __attribute__ (( packed )) u;
53 } __attribute__ (( packed ));
55 extern const char * ipoib_ntoa ( const void *ll_addr );
56 extern void ipoib_link_state_changed ( struct ib_device *ibdev );
57 extern int ipoib_probe ( struct ib_device *ibdev );
58 extern void ipoib_remove ( struct ib_device *ibdev );
59 extern struct net_device * alloc_ipoibdev ( size_t priv_size );
61 #endif /* _GPXE_IPOIB_H */