diff options
author | Michael Brown | 2007-09-14 12:10:25 +0200 |
---|---|---|
committer | Michael Brown | 2007-09-14 12:10:25 +0200 |
commit | 08e8dfd801afd35f2f006520b1df78d05de1921a (patch) | |
tree | d47a323a629f25f2a8ce377f673b44a19b5430bf /src/include/gpxe/infiniband.h | |
parent | Proof-of-concept to manually parse completion event (diff) | |
download | ipxe-08e8dfd801afd35f2f006520b1df78d05de1921a.tar.gz ipxe-08e8dfd801afd35f2f006520b1df78d05de1921a.tar.xz ipxe-08e8dfd801afd35f2f006520b1df78d05de1921a.zip |
Now handling TX completions in our poll loop.
Diffstat (limited to 'src/include/gpxe/infiniband.h')
-rw-r--r-- | src/include/gpxe/infiniband.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h index 11cec189..9f126b49 100644 --- a/src/include/gpxe/infiniband.h +++ b/src/include/gpxe/infiniband.h @@ -10,10 +10,6 @@ #include <stdint.h> #include <gpxe/netdevice.h> -/** Infiniband hardware address length */ -#define IB_ALEN 20 -#define IB_HLEN 24 - /** An Infiniband Global Identifier */ struct ib_gid { uint8_t bytes[16]; @@ -40,6 +36,9 @@ struct ib_global_route_header { struct ib_gid dgid; } __attribute__ (( packed )); +/** Infiniband MAC address length */ +#define IB_ALEN 20 + /** An Infiniband MAC address */ struct ib_mac { /** Queue pair number @@ -51,15 +50,11 @@ struct ib_mac { struct ib_gid gid; } __attribute__ (( packed )); -/** An Infiniband header - * - * This data structure doesn't represent the on-wire format, but does - * contain all the information required by the driver to construct the - * packet. - */ +/** Infiniband link-layer header length */ +#define IB_HLEN 4 + +/** An Infiniband link-layer header */ struct ibhdr { - /** Peer address */ - uint8_t peer[IB_ALEN]; /** Network-layer protocol */ uint16_t proto; /** Reserved, must be zero */ |