Home
last modified time | relevance | path

Searched refs:pmtu (Results 1 – 23 of 23) sorted by relevance

/drivers/infiniband/hw/qib/
Dqib_uc.c56 u32 pmtu = qp->pmtu; in qib_make_uc_req() local
107 if (len > pmtu) { in qib_make_uc_req()
109 len = pmtu; in qib_make_uc_req()
136 if (len > pmtu) { in qib_make_uc_req()
138 len = pmtu; in qib_make_uc_req()
167 if (len > pmtu) { in qib_make_uc_req()
168 len = pmtu; in qib_make_uc_req()
191 if (len > pmtu) { in qib_make_uc_req()
192 len = pmtu; in qib_make_uc_req()
246 u32 pmtu = qp->pmtu; in qib_uc_rcv() local
[all …]
Dqib_rc.c43 u32 psn, u32 pmtu) in restart_sge() argument
47 len = ((psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in restart_sge()
63 struct ib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() argument
125 if (len > pmtu) { in qib_make_rc_ack()
126 len = pmtu; in qib_make_rc_ack()
159 if (len > pmtu) in qib_make_rc_ack()
160 len = pmtu; in qib_make_rc_ack()
226 u32 pmtu = qp->pmtu; in qib_make_rc_req() local
237 qib_make_rc_ack(dev, qp, ohdr, pmtu)) in qib_make_rc_req()
318 if (len > pmtu) { in qib_make_rc_req()
[all …]
Dqib_qp.c294 int mtu, pmtu, pidx = qp->port_num - 1; in qib_get_pmtu_from_attr() local
303 pmtu = mtu_to_enum(dd->pport[pidx].ibmtu); in qib_get_pmtu_from_attr()
305 pmtu = attr->path_mtu; in qib_get_pmtu_from_attr()
306 return pmtu; in qib_get_pmtu_from_attr()
314 u32 qib_mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu) in qib_mtu_from_qp() argument
316 return ib_mtu_enum_to_int(pmtu); in qib_mtu_from_qp()
395 if (wqe->length > qp->pmtu) in qib_check_send_wqe()
Dqib.h1520 u32 qib_mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
/drivers/infiniband/hw/hfi1/
Duc.c71 u32 pmtu = qp->pmtu; in hfi1_make_uc_req() local
162 if (len > pmtu) { in hfi1_make_uc_req()
164 len = pmtu; in hfi1_make_uc_req()
191 if (len > pmtu) { in hfi1_make_uc_req()
193 len = pmtu; in hfi1_make_uc_req()
222 if (len > pmtu) { in hfi1_make_uc_req()
223 len = pmtu; in hfi1_make_uc_req()
247 if (len > pmtu) { in hfi1_make_uc_req()
248 len = pmtu; in hfi1_make_uc_req()
317 u32 pmtu = qp->pmtu; in hfi1_uc_rcv() local
[all …]
Drc.c119 u32 pmtu = qp->pmtu; in make_rc_ack() local
203 if (len > pmtu) { in make_rc_ack()
204 len = pmtu; in make_rc_ack()
277 if (len > pmtu) { in make_rc_ack()
278 len = pmtu; in make_rc_ack()
443 u32 pmtu = qp->pmtu; in hfi1_make_rc_req() local
600 if (len > pmtu) { in hfi1_make_rc_req()
602 len = pmtu; in hfi1_make_rc_req()
642 if (len > pmtu) { in hfi1_make_rc_req()
644 len = pmtu; in hfi1_make_rc_req()
[all …]
Drc.h36 u32 psn, u32 pmtu) in restart_sge() argument
40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge()
Dopfn.c257 if (qp->pmtu == enum_to_mtu(OPA_MTU_4096) || in opfn_qp_init()
258 qp->pmtu == enum_to_mtu(OPA_MTU_8192)) { in opfn_qp_init()
Dqp.h145 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
Dqp.c319 if (wqe->length > qp->pmtu) in hfi1_setup_wqe()
685 qp->pmtu, in qp_iter_print()
840 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu) in mtu_from_qp() argument
856 mtu = verbs_mtu_enum_to_int(qp->ibqp.device, pmtu); in mtu_from_qp()
Dtid_rdma.c1185 if (flow->req->qp->pmtu == enum_to_mtu(OPA_MTU_4096)) in kern_get_phys_blocks()
1301 u32 pmtu_pg = flow->req->qp->pmtu >> PAGE_SHIFT; in kern_program_rcv_group()
1823 qp->pmtu); in hfi1_build_tid_rdma_read_req()
2353 *len = min_t(u32, qp->pmtu, tidlen - flow->tid_offset); in hfi1_build_tid_rdma_read_resp()
2490 u32 pmtu = qp->pmtu; in hfi1_rc_rcv_tid_rdma_read_resp() local
2492 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_rc_rcv_tid_rdma_read_resp()
2494 len = restart_sge(&ss, req->e.swqe, ipsn, pmtu); in hfi1_rc_rcv_tid_rdma_read_resp()
2495 if (unlikely(len < pmtu)) in hfi1_rc_rcv_tid_rdma_read_resp()
2497 rvt_copy_sge(qp, &ss, packet->payload, pmtu, false, in hfi1_rc_rcv_tid_rdma_read_resp()
3090 npkts * qp->pmtu); in hfi1_tid_rdma_restart_req()
[all …]
Dverbs.c1235 priv->s_running_pkt_size <= min(piothreshold, qp->pmtu) && in get_send_routine()
/drivers/scsi/qedi/
Dqedi_iscsi.c482 static u16 qedi_calc_mss(u16 pmtu, u8 is_ipv6, u8 tcp_ts_en, u8 vlan_en) in qedi_calc_mss() argument
492 mss = pmtu - hdrs; in qedi_calc_mss()
567 conn_info->mss = qedi_calc_mss(qedi_ep->pmtu, in qedi_iscsi_offload_conn()
964 path_req.pmtu = qedi->ll2_mtu; in qedi_ep_connect()
965 qedi_ep->pmtu = qedi->ll2_mtu; in qedi_ep_connect()
1281 if (path_data->pmtu < DEF_PATH_MTU) { in qedi_set_path()
1282 qedi_ep->pmtu = qedi->ll2_mtu; in qedi_set_path()
1285 path_data->pmtu, qedi_ep->pmtu); in qedi_set_path()
1288 if (path_data->pmtu != qedi->ll2_mtu) { in qedi_set_path()
1289 if (path_data->pmtu > JUMBO_MTU) { in qedi_set_path()
[all …]
Dqedi_iscsi.h71 u16 pmtu; member
/drivers/net/ethernet/mellanox/mlxsw/
Dswitchib.c140 err = mlxsw_reg_query(mlxsw_sib->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sib_port_mtu_set()
149 return mlxsw_reg_write(mlxsw_sib->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sib_port_mtu_set()
Dreg.h4081 MLXSW_REG_DEFINE(pmtu, MLXSW_REG_PMTU_ID, MLXSW_REG_PMTU_LEN);
4087 MLXSW_ITEM32(reg, pmtu, local_port, 0x00, 16, 8);
4096 MLXSW_ITEM32(reg, pmtu, max_mtu, 0x04, 16, 16);
4104 MLXSW_ITEM32(reg, pmtu, admin_mtu, 0x08, 16, 16);
4113 MLXSW_ITEM32(reg, pmtu, oper_mtu, 0x0C, 16, 16);
4118 MLXSW_REG_ZERO(pmtu, payload); in mlxsw_reg_pmtu_pack()
11164 MLXSW_REG(pmtu),
Dswitchx2.c196 err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl); in __mlxsw_sx_port_mtu_set()
205 return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl); in __mlxsw_sx_port_mtu_set()
Dspectrum.c331 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sp_port_max_mtu_get()
349 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sp_port_mtu_set()
/drivers/infiniband/sw/rdmavt/
Dqp.c1467 int pmtu = 0; /* for gcc warning only */ in rvt_modify_qp() local
1555 pmtu = rdi->driver_f.get_pmtu_from_attr(rdi, qp, attr); in rvt_modify_qp()
1556 if (pmtu < 0) in rvt_modify_qp()
1658 qp->pmtu = rdi->driver_f.mtu_from_qp(rdi, qp, pmtu); in rvt_modify_qp()
1659 qp->log_pmtu = ilog2(qp->pmtu); in rvt_modify_qp()
1778 attr->path_mtu = rdi->driver_f.mtu_to_path_mtu(qp->pmtu); in rvt_query_qp()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c943 unsigned int pmtu, in chtls_select_mss() argument
974 if (tp->advmss > pmtu - iphdrsz) in chtls_select_mss()
975 tp->advmss = pmtu - iphdrsz; in chtls_select_mss()
985 inet_csk(sk)->icsk_pmtu_cookie = pmtu; in chtls_select_mss()
/drivers/net/ethernet/broadcom/
Dcnic.c349 path_req.pmtu = csk->mtu; in cnic_send_nlmsg()
2187 conn_addr->pmtu = kwqe3->pmtu; in cnic_bnx2x_connect()
3489 l4kwqe3->pmtu = csk->mtu; in cnic_cm_conn_req()
3511 l4kwqe3->mss = l4kwqe3->pmtu - sizeof(struct ipv6hdr) - in cnic_cm_conn_req()
3515 l4kwqe3->mss = l4kwqe3->pmtu - sizeof(struct iphdr) - in cnic_cm_conn_req()
Dcnic_defs.h358 u16 pmtu; member
362 u16 pmtu; member
5054 u32 pmtu; member
/drivers/scsi/cxgbi/
Dlibcxgbi.c1098 unsigned int cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) in cxgbi_sock_select_mss() argument
1105 if (csk->advmss > pmtu - 40) in cxgbi_sock_select_mss()
1106 csk->advmss = pmtu - 40; in cxgbi_sock_select_mss()