Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_uc.c54 u32 pmtu = qp->pmtu; in qib_make_uc_req() local
108 if (len > pmtu) { in qib_make_uc_req()
110 len = pmtu; in qib_make_uc_req()
137 if (len > pmtu) { in qib_make_uc_req()
139 len = pmtu; in qib_make_uc_req()
168 if (len > pmtu) { in qib_make_uc_req()
169 len = pmtu; in qib_make_uc_req()
192 if (len > pmtu) { in qib_make_uc_req()
193 len = pmtu; in qib_make_uc_req()
251 u32 pmtu = qp->pmtu; in qib_uc_rcv() local
[all …]
Dqib_rc.c44 u32 psn, u32 pmtu) in restart_sge() argument
48 len = ((psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in restart_sge()
78 struct qib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() argument
140 if (len > pmtu) { in qib_make_rc_ack()
141 len = pmtu; in qib_make_rc_ack()
177 if (len > pmtu) in qib_make_rc_ack()
178 len = pmtu; in qib_make_rc_ack()
241 u32 pmtu = qp->pmtu; in qib_make_rc_req() local
259 qib_make_rc_ack(dev, qp, ohdr, pmtu)) in qib_make_rc_req()
344 if (len > pmtu) { in qib_make_rc_req()
[all …]
Dqib_qp.c579 u32 pmtu = 0; /* for gcc warning only */ in qib_modify_qp() local
653 pmtu = IB_MTU_4096; in qib_modify_qp()
656 pmtu = IB_MTU_2048; in qib_modify_qp()
659 pmtu = IB_MTU_1024; in qib_modify_qp()
662 pmtu = IB_MTU_512; in qib_modify_qp()
665 pmtu = IB_MTU_256; in qib_modify_qp()
668 pmtu = IB_MTU_2048; in qib_modify_qp()
671 pmtu = attr->path_mtu; in qib_modify_qp()
792 qp->path_mtu = pmtu; in qib_modify_qp()
793 qp->pmtu = ib_mtu_enum_to_int(pmtu); in qib_modify_qp()
Dqib_verbs.h441 u32 pmtu; /* decoded from path_mtu */ member
/linux-4.4.14/drivers/staging/rdma/hfi1/
Duc.c72 u32 pmtu = qp->pmtu; in hfi1_make_uc_req() local
126 if (len > pmtu) { in hfi1_make_uc_req()
128 len = pmtu; in hfi1_make_uc_req()
155 if (len > pmtu) { in hfi1_make_uc_req()
157 len = pmtu; in hfi1_make_uc_req()
186 if (len > pmtu) { in hfi1_make_uc_req()
187 len = pmtu; in hfi1_make_uc_req()
211 if (len > pmtu) { in hfi1_make_uc_req()
212 len = pmtu; in hfi1_make_uc_req()
276 u32 pmtu = qp->pmtu; in hfi1_uc_rcv() local
[all …]
Drc.c64 u32 psn, u32 pmtu) in restart_sge() argument
68 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge()
98 struct hfi1_other_headers *ohdr, u32 pmtu) in make_rc_ack() argument
161 if (len > pmtu) { in make_rc_ack()
162 len = pmtu; in make_rc_ack()
198 if (len > pmtu) { in make_rc_ack()
199 len = pmtu; in make_rc_ack()
271 u32 pmtu = qp->pmtu; in hfi1_make_rc_req() local
290 make_rc_ack(dev, qp, ohdr, pmtu)) in hfi1_make_rc_req()
374 if (len > pmtu) { in hfi1_make_rc_req()
[all …]
Dqp.c619 u32 pmtu = 0; /* for gcc warning only */ in hfi1_modify_qp() local
693 pmtu = mtu_to_enum(dd->pport[pidx].ibmtu, IB_MTU_2048); in hfi1_modify_qp()
695 pmtu = attr->path_mtu; in hfi1_modify_qp()
823 mtu = verbs_mtu_enum_to_int(ibqp->device, pmtu); in hfi1_modify_qp()
826 pmtu = mtu_to_enum(mtu, OPA_MTU_8192); in hfi1_modify_qp()
828 qp->path_mtu = pmtu; in hfi1_modify_qp()
829 qp->pmtu = mtu; in hfi1_modify_qp()
1668 qp->pmtu, in qp_iter_print()
Dverbs.h450 u32 pmtu; /* decoded from path_mtu */ member
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_uc.c54 u32 pmtu = ib_mtu_enum_to_int(qp->path_mtu); in ipath_make_uc_req() local
105 if (len > pmtu) { in ipath_make_uc_req()
107 len = pmtu; in ipath_make_uc_req()
134 if (len > pmtu) { in ipath_make_uc_req()
136 len = pmtu; in ipath_make_uc_req()
165 if (len > pmtu) { in ipath_make_uc_req()
166 len = pmtu; in ipath_make_uc_req()
189 if (len > pmtu) { in ipath_make_uc_req()
190 len = pmtu; in ipath_make_uc_req()
249 u32 pmtu = ib_mtu_enum_to_int(qp->path_mtu); in ipath_uc_rcv() local
[all …]
Dipath_rc.c43 u32 psn, u32 pmtu) in restart_sge() argument
47 len = ((psn - wqe->psn) & IPATH_PSN_MASK) * pmtu; in restart_sge()
87 struct ipath_other_headers *ohdr, u32 pmtu) in ipath_make_rc_ack() argument
130 if (len > pmtu) { in ipath_make_rc_ack()
131 len = pmtu; in ipath_make_rc_ack()
163 if (len > pmtu) in ipath_make_rc_ack()
164 len = pmtu; in ipath_make_rc_ack()
223 u32 pmtu = ib_mtu_enum_to_int(qp->path_mtu); in ipath_make_rc_req() local
242 ipath_make_rc_ack(dev, qp, ohdr, pmtu)) in ipath_make_rc_req()
320 if (len > pmtu) { in ipath_make_rc_req()
[all …]
/linux-4.4.14/net/sctp/
Dtransport.c236 void sctp_transport_update_pmtu(struct sock *sk, struct sctp_transport *t, u32 pmtu) in sctp_transport_update_pmtu() argument
240 if (unlikely(pmtu < SCTP_DEFAULT_MINSEGMENT)) { in sctp_transport_update_pmtu()
242 __func__, pmtu, in sctp_transport_update_pmtu()
249 t->pathmtu = pmtu; in sctp_transport_update_pmtu()
257 dst->ops->update_pmtu(dst, sk, NULL, pmtu); in sctp_transport_update_pmtu()
385 __u32 cwnd, ssthresh, flight_size, pba, pmtu; in sctp_transport_raise_cwnd() local
405 pmtu = transport->asoc->pathmtu; in sctp_transport_raise_cwnd()
425 if (bytes_acked > pmtu) in sctp_transport_raise_cwnd()
426 cwnd += pmtu; in sctp_transport_raise_cwnd()
451 cwnd += pmtu; in sctp_transport_raise_cwnd()
Dassociola.c1395 __u32 pmtu = 0; in sctp_assoc_sync_pmtu() local
1407 if (!pmtu || (t->pathmtu < pmtu)) in sctp_assoc_sync_pmtu()
1408 pmtu = t->pathmtu; in sctp_assoc_sync_pmtu()
1411 if (pmtu) { in sctp_assoc_sync_pmtu()
1412 asoc->pathmtu = pmtu; in sctp_assoc_sync_pmtu()
1413 asoc->frag_point = sctp_frag_point(asoc, pmtu); in sctp_assoc_sync_pmtu()
Doutput.c754 size_t pmtu; in sctp_packet_will_fit() local
759 pmtu = ((packet->transport->asoc) ? in sctp_packet_will_fit()
763 too_big = (psize + chunk_len > pmtu); in sctp_packet_will_fit()
Dinput.c390 struct sctp_transport *t, __u32 pmtu) in sctp_icmp_frag_needed() argument
392 if (!t || (t->pathmtu <= pmtu)) in sctp_icmp_frag_needed()
403 sctp_transport_update_pmtu(sk, t, pmtu); in sctp_icmp_frag_needed()
/linux-4.4.14/net/dccp/
Doutput.c162 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu) in dccp_sync_mss() argument
167 u32 cur_mps = ccmps ? min(pmtu, ccmps) : pmtu; in dccp_sync_mss()
190 icsk->icsk_pmtu_cookie = pmtu; in dccp_sync_mss()
Ddccp.h261 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu);
/linux-4.4.14/include/net/sctp/
Dsctp.h138 struct sctp_transport *t, __u32 pmtu);
409 static inline int sctp_frag_point(const struct sctp_association *asoc, int pmtu) in sctp_frag_point() argument
412 int frag = pmtu; in sctp_frag_point()
/linux-4.4.14/drivers/staging/rdma/ehca/
Dehca_av.c154 av->av.pmtu = shca->max_mtu; in ehca_create_ah()
221 new_ehca_av.pmtu = shca->max_mtu; in ehca_modify_ah()
Dehca_qes.h79 u8 pmtu; member
Dehca_reqs.c257 wqe_p->u.ud_av.ud_av.pmtu = 1; in ehca_write_swqe()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h1275 MLXSW_ITEM32(reg, pmtu, local_port, 0x00, 16, 8);
1284 MLXSW_ITEM32(reg, pmtu, max_mtu, 0x04, 16, 16);
1292 MLXSW_ITEM32(reg, pmtu, admin_mtu, 0x08, 16, 16);
1301 MLXSW_ITEM32(reg, pmtu, oper_mtu, 0x0C, 16, 16);
1306 MLXSW_REG_ZERO(pmtu, payload); in mlxsw_reg_pmtu_pack()
Dswitchx2.c225 err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sx_port_mtu_set()
234 return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sx_port_mtu_set()
Dspectrum.c263 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sp_port_mtu_set()
272 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); in mlxsw_sp_port_mtu_set()
/linux-4.4.14/net/ipv4/
Dtcp_output.c1285 static inline int __tcp_mtu_to_mss(struct sock *sk, int pmtu) in __tcp_mtu_to_mss() argument
1294 mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr); in __tcp_mtu_to_mss()
1318 int tcp_mtu_to_mss(struct sock *sk, int pmtu) in tcp_mtu_to_mss() argument
1321 return __tcp_mtu_to_mss(sk, pmtu) - in tcp_mtu_to_mss()
1386 unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu) in tcp_sync_mss() argument
1392 if (icsk->icsk_mtup.search_high > pmtu) in tcp_sync_mss()
1393 icsk->icsk_mtup.search_high = pmtu; in tcp_sync_mss()
1395 mss_now = tcp_mtu_to_mss(sk, pmtu); in tcp_sync_mss()
1399 icsk->icsk_pmtu_cookie = pmtu; in tcp_sync_mss()
Droute.c622 u32 pmtu, unsigned long expires) in update_or_create_fnhe() argument
654 if (pmtu) { in update_or_create_fnhe()
655 fnhe->fnhe_pmtu = pmtu; in update_or_create_fnhe()
679 fnhe->fnhe_pmtu = pmtu; in update_or_create_fnhe()
/linux-4.4.14/include/net/
Dinet_connection_sock.h102 unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
Dtcp.h581 unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu);
618 int tcp_mtu_to_mss(struct sock *sk, int pmtu);
/linux-4.4.14/net/xfrm/
Dxfrm_policy.c2722 u32 pmtu, route_mtu_cached; in xfrm_init_pmtu() local
2724 pmtu = dst_mtu(dst->child); in xfrm_init_pmtu()
2725 xdst->child_mtu_cached = pmtu; in xfrm_init_pmtu()
2727 pmtu = xfrm_state_mtu(dst->xfrm, pmtu); in xfrm_init_pmtu()
2732 if (pmtu > route_mtu_cached) in xfrm_init_pmtu()
2733 pmtu = route_mtu_cached; in xfrm_init_pmtu()
2735 dst_metric_set(dst, RTAX_MTU, pmtu); in xfrm_init_pmtu()
/linux-4.4.14/net/l2tp/
Dl2tp_ppp.c756 u32 pmtu = dst_mtu(dst); in pppol2tp_connect() local
758 if (pmtu != 0) in pppol2tp_connect()
759 session->mtu = session->mru = pmtu - in pppol2tp_connect()
/linux-4.4.14/include/scsi/
Discsi_if.h357 uint16_t pmtu; member
/linux-4.4.14/net/ipv6/
Dip6_tunnel.c1035 __u32 *pmtu) in ip6_tnl_xmit2() argument
1109 *pmtu = mtu; in ip6_tnl_xmit2()
Dip6_gre.c607 __u32 *pmtu) in ip6gre_xmit2() argument
672 *pmtu = mtu; in ip6gre_xmit2()
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c1066 unsigned int cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) in cxgbi_sock_select_mss() argument
1073 if (csk->advmss > pmtu - 40) in cxgbi_sock_select_mss()
1074 csk->advmss = pmtu - 40; in cxgbi_sock_select_mss()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.c349 path_req.pmtu = csk->mtu; in cnic_send_nlmsg()
2188 conn_addr->pmtu = kwqe3->pmtu; in cnic_bnx2x_connect()
3492 l4kwqe3->pmtu = csk->mtu; in cnic_cm_conn_req()
3514 l4kwqe3->mss = l4kwqe3->pmtu - sizeof(struct ipv6hdr) - in cnic_cm_conn_req()
3518 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
/linux-4.4.14/Documentation/networking/
Dip-sysctl.txt29 Mode 3 is a hardend pmtu discover mode. The kernel will only
32 protocols for which pmtu events will be honored are TCP, SCTP
/linux-4.4.14/net/netfilter/
DKconfig942 -j TCPMSS --clamp-mss-to-pmtu