mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[infiniband] Add the notion of an Ethernet queue pair type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
118a0ca55a
commit
26a50c3a11
@ -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 ) {
|
||||
|
@ -135,6 +135,7 @@ enum ib_queue_pair_type {
|
||||
IB_QPT_GSI,
|
||||
IB_QPT_UD,
|
||||
IB_QPT_RC,
|
||||
IB_QPT_ETH,
|
||||
};
|
||||
|
||||
/** An Infiniband Queue Pair */
|
||||
|
@ -483,7 +483,7 @@ void ib_complete_send ( struct ib_device *ibdev, struct ib_queue_pair *qp,
|
||||
*
|
||||
* @v ibdev Infiniband device
|
||||
* @v qp Queue pair
|
||||
* @v av Address vector
|
||||
* @v av Address vector, or NULL
|
||||
* @v iobuf I/O buffer
|
||||
* @v rc Completion status code
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user