|
@@ -177,6 +177,7 @@ static int smc_lgr_create(struct smc_sock *smc, __be32 peer_in_addr,
|
|
|
|
|
|
lnk = &lgr->lnk[SMC_SINGLE_LINK];
|
|
|
/* initialize link */
|
|
|
+ lnk->link_id = SMC_SINGLE_LINK;
|
|
|
lnk->smcibdev = smcibdev;
|
|
|
lnk->ibport = ibport;
|
|
|
lnk->path_mtu = smcibdev->pattr[ibport - 1].active_mtu;
|
|
@@ -465,7 +466,7 @@ create:
|
|
|
rc = smc_link_determine_gid(conn->lgr);
|
|
|
}
|
|
|
conn->local_tx_ctrl.common.type = SMC_CDC_MSG_TYPE;
|
|
|
- conn->local_tx_ctrl.len = sizeof(struct smc_cdc_msg);
|
|
|
+ conn->local_tx_ctrl.len = SMC_WR_TX_SIZE;
|
|
|
#ifndef KERNEL_HAS_ATOMIC64
|
|
|
spin_lock_init(&conn->acurs_lock);
|
|
|
#endif
|