diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-09-19 17:35:53 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-09-21 02:12:06 +0100 |
commit | 26a50c3a11f7858753c643dce7076f2e7349465d (patch) | |
tree | 80afb2c000f1d8b381f681a4d96d9fb12ffd85f7 /src/drivers/net/ipoib.c | |
parent | 118a0ca55aac1ef66efc8d6756e9b9a892c7a3d2 (diff) | |
download | ipxe-26a50c3a11f7858753c643dce7076f2e7349465d.tar.gz |
[infiniband] Add the notion of an Ethernet queue pair type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/ipoib.c')
-rw-r--r-- | src/drivers/net/ipoib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c index 52ac5f03..09c89bdc 100644 --- a/src/drivers/net/ipoib.c +++ b/src/drivers/net/ipoib.c @@ -485,6 +485,7 @@ static void ipoib_complete_recv ( struct ib_device *ibdev __unused, struct ipoib_mac ll_src; struct ipoib_peer *src; + /* Record errors */ if ( rc != 0 ) { netdev_rx_err ( netdev, iobuf, rc ); return; @@ -499,6 +500,12 @@ static void ipoib_complete_recv ( struct ib_device *ibdev __unused, return; } ipoib_hdr = iobuf->data; + if ( ! av ) { + DBGC ( ipoib, "IPoIB %p received packet without address " + "vector\n", ipoib ); + netdev_rx_err ( netdev, iobuf, -ENOTTY ); + return; + } /* Parse source address */ if ( av->gid_present ) { |