|
@@ -831,10 +831,10 @@ static int hermon_alloc_qpn ( struct ib_device *ibdev,
|
831
|
831
|
port_offset = ( ibdev->port - HERMON_PORT_BASE );
|
832
|
832
|
|
833
|
833
|
switch ( qp->type ) {
|
834
|
|
- case IB_QPT_SMA:
|
|
834
|
+ case IB_QPT_SMI:
|
835
|
835
|
qp->qpn = ( hermon->special_qpn_base + port_offset );
|
836
|
836
|
return 0;
|
837
|
|
- case IB_QPT_GMA:
|
|
837
|
+ case IB_QPT_GSI:
|
838
|
838
|
qp->qpn = ( hermon->special_qpn_base + 2 + port_offset );
|
839
|
839
|
return 0;
|
840
|
840
|
case IB_QPT_UD:
|
|
@@ -892,15 +892,15 @@ static unsigned int hermon_rate ( struct ib_address_vector *av ) {
|
892
|
892
|
*/
|
893
|
893
|
static unsigned int hermon_sched_queue ( struct ib_device *ibdev,
|
894
|
894
|
struct ib_queue_pair *qp ) {
|
895
|
|
- return ( ( ( qp->type == IB_QPT_SMA ) ?
|
|
895
|
+ return ( ( ( qp->type == IB_QPT_SMI ) ?
|
896
|
896
|
HERMON_SCHED_QP0 : HERMON_SCHED_DEFAULT ) |
|
897
|
897
|
( ( ibdev->port - 1 ) << 6 ) );
|
898
|
898
|
}
|
899
|
899
|
|
900
|
900
|
/** Queue pair transport service type map */
|
901
|
901
|
static uint8_t hermon_qp_st[] = {
|
902
|
|
- [IB_QPT_SMA] = HERMON_ST_MLX,
|
903
|
|
- [IB_QPT_GMA] = HERMON_ST_MLX,
|
|
902
|
+ [IB_QPT_SMI] = HERMON_ST_MLX,
|
|
903
|
+ [IB_QPT_GSI] = HERMON_ST_MLX,
|
904
|
904
|
[IB_QPT_UD] = HERMON_ST_UD,
|
905
|
905
|
[IB_QPT_RC] = HERMON_ST_RC,
|
906
|
906
|
};
|
|
@@ -1214,7 +1214,7 @@ hermon_fill_mlx_send_wqe ( struct ib_device *ibdev,
|
1214
|
1214
|
icrc, 0 /* generate ICRC */,
|
1215
|
1215
|
max_statrate, hermon_rate ( av ),
|
1216
|
1216
|
slr, 0,
|
1217
|
|
- v15, ( ( qp->ext_qpn == IB_QPN_SMA ) ? 1 : 0 ) );
|
|
1217
|
+ v15, ( ( qp->ext_qpn == IB_QPN_SMI ) ? 1 : 0 ) );
|
1218
|
1218
|
MLX_FILL_1 ( &wqe->mlx.ctrl, 3, rlid, av->lid );
|
1219
|
1219
|
MLX_FILL_1 ( &wqe->mlx.data[0], 0,
|
1220
|
1220
|
byte_count, iob_len ( &headers ) );
|
|
@@ -1264,8 +1264,8 @@ static unsigned int
|
1264
|
1264
|
struct ib_address_vector *av,
|
1265
|
1265
|
struct io_buffer *iobuf,
|
1266
|
1266
|
union hermon_send_wqe *wqe ) = {
|
1267
|
|
- [IB_QPT_SMA] = hermon_fill_mlx_send_wqe,
|
1268
|
|
- [IB_QPT_GMA] = hermon_fill_mlx_send_wqe,
|
|
1267
|
+ [IB_QPT_SMI] = hermon_fill_mlx_send_wqe,
|
|
1268
|
+ [IB_QPT_GSI] = hermon_fill_mlx_send_wqe,
|
1269
|
1269
|
[IB_QPT_UD] = hermon_fill_ud_send_wqe,
|
1270
|
1270
|
[IB_QPT_RC] = hermon_fill_rc_send_wqe,
|
1271
|
1271
|
};
|
|
@@ -1444,8 +1444,8 @@ static int hermon_complete ( struct ib_device *ibdev,
|
1444
|
1444
|
assert ( len <= iob_tailroom ( iobuf ) );
|
1445
|
1445
|
iob_put ( iobuf, len );
|
1446
|
1446
|
switch ( qp->type ) {
|
1447
|
|
- case IB_QPT_SMA:
|
1448
|
|
- case IB_QPT_GMA:
|
|
1447
|
+ case IB_QPT_SMI:
|
|
1448
|
+ case IB_QPT_GSI:
|
1449
|
1449
|
case IB_QPT_UD:
|
1450
|
1450
|
assert ( iob_len ( iobuf ) >= sizeof ( *grh ) );
|
1451
|
1451
|
grh = iobuf->data;
|