diff options
| author | Michael Brown | 2007-09-17 06:12:47 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-09-17 06:12:47 +0200 |
| commit | 440e7926fbfc419115a85b61d3c740f640b68756 (patch) | |
| tree | 11a589b8725f87cde01e8fe639e0ecdd744bf7ca /src/include | |
| parent | IPoIB code separated out to ipoib.c. (diff) | |
| download | ipxe-440e7926fbfc419115a85b61d3c740f640b68756.tar.gz ipxe-440e7926fbfc419115a85b61d3c740f640b68756.tar.xz ipxe-440e7926fbfc419115a85b61d3c740f640b68756.zip | |
Dead code removal
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/infiniband.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h index e9e0121dc..236b27272 100644 --- a/src/include/gpxe/infiniband.h +++ b/src/include/gpxe/infiniband.h @@ -10,42 +10,6 @@ #include <stdint.h> #include <gpxe/device.h> - - -#if 0 -/** Infiniband MAC address length */ -#define IB_ALEN 20 - -/** An Infiniband MAC address */ -struct ib_mac { - /** Queue pair number - * - * MSB must be zero; QPNs are only 24-bit. - */ - uint32_t qpn; - /** Port GID */ - struct ib_gid gid; -} __attribute__ (( packed )); - -/** Infiniband link-layer header length */ -#define IB_HLEN 4 - -/** An Infiniband link-layer header */ -struct ibhdr { - /** Network-layer protocol */ - uint16_t proto; - /** Reserved, must be zero */ - uint16_t reserved; -} __attribute__ (( packed )); -#endif - - - - - - - - /** An Infiniband Global Identifier */ struct ib_gid { uint8_t bytes[16]; @@ -511,31 +475,4 @@ union ib_mad { struct ib_mad_port_info port_info; } __attribute__ (( packed )); - - - -#if 0 - -extern struct ll_protocol infiniband_protocol; - -extern const char * ib_ntoa ( const void *ll_addr ); - -/** - * Allocate Infiniband device - * - * @v priv_size Size of driver private data - * @ret netdev Network device, or NULL - */ -static inline struct net_device * alloc_ibdev ( size_t priv_size ) { - struct net_device *netdev; - - netdev = alloc_netdev ( priv_size ); - if ( netdev ) { - netdev->ll_protocol = &infiniband_protocol; - } - return netdev; -} - -#endif - #endif /* _GPXE_INFINIBAND_H */ |
