mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[infiniband] Add the notion of an Ethernet queue pair type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -485,6 +485,7 @@ static void ipoib_complete_recv ( struct ib_device *ibdev __unused,
|
|||||||
struct ipoib_mac ll_src;
|
struct ipoib_mac ll_src;
|
||||||
struct ipoib_peer *src;
|
struct ipoib_peer *src;
|
||||||
|
|
||||||
|
/* Record errors */
|
||||||
if ( rc != 0 ) {
|
if ( rc != 0 ) {
|
||||||
netdev_rx_err ( netdev, iobuf, rc );
|
netdev_rx_err ( netdev, iobuf, rc );
|
||||||
return;
|
return;
|
||||||
@@ -499,6 +500,12 @@ static void ipoib_complete_recv ( struct ib_device *ibdev __unused,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ipoib_hdr = iobuf->data;
|
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 */
|
/* Parse source address */
|
||||||
if ( av->gid_present ) {
|
if ( av->gid_present ) {
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ enum ib_queue_pair_type {
|
|||||||
IB_QPT_GSI,
|
IB_QPT_GSI,
|
||||||
IB_QPT_UD,
|
IB_QPT_UD,
|
||||||
IB_QPT_RC,
|
IB_QPT_RC,
|
||||||
|
IB_QPT_ETH,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** An Infiniband Queue Pair */
|
/** 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 ibdev Infiniband device
|
||||||
* @v qp Queue pair
|
* @v qp Queue pair
|
||||||
* @v av Address vector
|
* @v av Address vector, or NULL
|
||||||
* @v iobuf I/O buffer
|
* @v iobuf I/O buffer
|
||||||
* @v rc Completion status code
|
* @v rc Completion status code
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user