/kernel/linux/linux-6.6/net/sctp/ |
H A D | transport.c | 237 /* Initialize the pmtu of a transport. */ 274 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 275 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 279 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send() 284 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 285 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 289 t->pl.probe_size = t->pl.pmtu; in sctp_transport_pl_send() 292 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send() 296 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 297 t->pathmtu = t->pl.pmtu in sctp_transport_pl_send() 353 sctp_transport_pl_toobig(struct sctp_transport *t, u32 pmtu) sctp_transport_pl_toobig() argument 400 sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu) sctp_transport_update_pmtu() argument 559 __u32 cwnd, ssthresh, flight_size, pba, pmtu; sctp_transport_raise_cwnd() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 56 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; qib_uc_rcv() local [all...] |
H A D | qib_rc.c | 43 u32 psn, u32 pmtu) in restart_sge() 47 len = ((psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in restart_sge() 56 * @pmtu: the path MTU 63 struct ib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() 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 42 restart_sge(struct rvt_sge_state *ss, struct rvt_swqe *wqe, u32 psn, u32 pmtu) restart_sge() argument 62 qib_make_rc_ack(struct qib_ibdev *dev, struct rvt_qp *qp, struct ib_other_headers *ohdr, u32 pmtu) qib_make_rc_ack() argument 1267 qib_rc_rcv_resp(struct qib_ibport *ibp, struct ib_other_headers *ohdr, void *data, u32 tlen, struct rvt_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, struct qib_ctxtdata *rcd) qib_rc_rcv_resp() argument 1721 u32 pmtu = qp->pmtu; qib_rc_rcv() local [all...] |
H A D | qib_qp.c | 294 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()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 57 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() 247 u32 pmtu = qp->pmtu; qib_uc_rcv() local [all...] |
H A D | qib_rc.c | 43 u32 psn, u32 pmtu) in restart_sge() 47 len = ((psn - wqe->psn) & QIB_PSN_MASK) * pmtu; in restart_sge() 56 * @pmtu: the path MTU 63 struct ib_other_headers *ohdr, u32 pmtu) in qib_make_rc_ack() 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() 227 u32 pmtu = qp->pmtu; in qib_make_rc_req() local 42 restart_sge(struct rvt_sge_state *ss, struct rvt_swqe *wqe, u32 psn, u32 pmtu) restart_sge() argument 62 qib_make_rc_ack(struct qib_ibdev *dev, struct rvt_qp *qp, struct ib_other_headers *ohdr, u32 pmtu) qib_make_rc_ack() argument 1269 qib_rc_rcv_resp(struct qib_ibport *ibp, struct ib_other_headers *ohdr, void *data, u32 tlen, struct rvt_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, struct qib_ctxtdata *rcd) qib_rc_rcv_resp() argument 1724 u32 pmtu = qp->pmtu; qib_rc_rcv() local [all...] |
H A D | qib_qp.c | 294 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()
|
/kernel/linux/linux-5.10/net/sctp/ |
H A D | transport.c | 221 /* Initialize the pmtu of a transport. */ 246 bool sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu) in sctp_transport_update_pmtu() argument 252 if (unlikely(pmtu < SCTP_DEFAULT_MINSEGMENT)) { in sctp_transport_update_pmtu() 253 pr_warn_ratelimited("%s: Reported pmtu %d too low, using default minimum of %d\n", in sctp_transport_update_pmtu() 254 __func__, pmtu, SCTP_DEFAULT_MINSEGMENT); in sctp_transport_update_pmtu() 256 pmtu = SCTP_DEFAULT_MINSEGMENT; in sctp_transport_update_pmtu() 258 pmtu = SCTP_TRUNC4(pmtu); in sctp_transport_update_pmtu() 266 dst->ops->update_pmtu(dst, sk, NULL, pmtu, true); in sctp_transport_update_pmtu() 279 pmtu in sctp_transport_update_pmtu() 401 __u32 cwnd, ssthresh, flight_size, pba, pmtu; sctp_transport_raise_cwnd() local [all...] |
H A D | output.c | 762 size_t psize, pmtu, maxsize; in sctp_packet_will_fit() local 776 pmtu = packet->transport->asoc->pathmtu; in sctp_packet_will_fit() 778 pmtu = packet->transport->pathmtu; in sctp_packet_will_fit() 781 if (psize + chunk_len > pmtu) { in sctp_packet_will_fit() 804 maxsize = pmtu - packet->overhead; in sctp_packet_will_fit()
|
H A D | associola.c | 657 /* Initialize the pmtu of the transport. */ in sctp_assoc_add_peer() 1403 void sctp_assoc_set_pmtu(struct sctp_association *asoc, __u32 pmtu) in sctp_assoc_set_pmtu() argument 1405 if (asoc->pathmtu != pmtu) { in sctp_assoc_set_pmtu() 1406 asoc->pathmtu = pmtu; in sctp_assoc_set_pmtu() 1410 pr_debug("%s: asoc:%p, pmtu:%d, frag_point:%d\n", __func__, asoc, in sctp_assoc_set_pmtu() 1414 /* Update the association's pmtu and frag_point by going through all the 1420 __u32 pmtu = 0; in sctp_assoc_sync_pmtu() local 1425 /* Get the lowest pmtu of all the transports. */ in sctp_assoc_sync_pmtu() 1432 if (!pmtu || (t->pathmtu < pmtu)) in sctp_assoc_sync_pmtu() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | uc.c | 71 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; hfi1_uc_rcv() local [all...] |
H A D | rc.h | 36 u32 psn, u32 pmtu) in restart_sge() 40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge() 35 restart_sge(struct rvt_sge_state *ss, struct rvt_swqe *wqe, u32 psn, u32 pmtu) restart_sge() argument
|
H A D | rc.c | 119 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() 2359 u32 pmtu = qp->pmtu; rc_rcv_resp() local 2818 u32 pmtu = qp->pmtu; hfi1_rc_rcv() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | uc.c | 30 u32 pmtu = qp->pmtu; in hfi1_make_uc_req() local 121 if (len > pmtu) { in hfi1_make_uc_req() 123 len = pmtu; in hfi1_make_uc_req() 150 if (len > pmtu) { in hfi1_make_uc_req() 152 len = pmtu; in hfi1_make_uc_req() 181 if (len > pmtu) { in hfi1_make_uc_req() 182 len = pmtu; in hfi1_make_uc_req() 206 if (len > pmtu) { in hfi1_make_uc_req() 207 len = pmtu; in hfi1_make_uc_req() 271 u32 pmtu = qp->pmtu; hfi1_uc_rcv() local [all...] |
H A D | rc.h | 36 u32 psn, u32 pmtu) in restart_sge() 40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge() 35 restart_sge(struct rvt_sge_state *ss, struct rvt_swqe *wqe, u32 psn, u32 pmtu) restart_sge() argument
|
H A D | rc.c | 77 u32 pmtu = qp->pmtu; in make_rc_ack() local 161 if (len > pmtu) { in make_rc_ack() 162 len = pmtu; in make_rc_ack() 235 if (len > pmtu) { in make_rc_ack() 236 len = pmtu; in make_rc_ack() 402 u32 pmtu = qp->pmtu; in hfi1_make_rc_req() local 559 if (len > pmtu) { in hfi1_make_rc_req() 561 len = pmtu; in hfi1_make_rc_req() 2317 u32 pmtu = qp->pmtu; rc_rcv_resp() local 2777 u32 pmtu = qp->pmtu; hfi1_rc_rcv() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | pmtu.sh | 1239 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1240 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on ${type} interface" 1321 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1322 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on bridged ${type} interface" 1323 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1324 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on locally bridged ${type} interface" 1356 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1357 check_pmtu_value ${exp_mtu} "${pmtu}" "tcp: exceeding link layer MTU on bridged ${type} interface" 1358 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1359 check_pmtu_value ${exp_mtu} "${pmtu}" "tc [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | pmtu.sh | 1029 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1030 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on ${type} interface" 1111 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1112 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on bridged ${type} interface" 1113 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1114 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on locally bridged ${type} interface" 1200 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1201 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on Open vSwitch ${type} interface" 1280 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1281 check_pmtu_value ${exp_mtu} "${pmtu}" "exceedin [all...] |
/kernel/linux/linux-6.6/include/net/sctp/ |
H A D | sctp.h | 145 struct sctp_transport *t, __u32 pmtu); 559 * pmtu code. 606 __u32 pmtu = sctp_dst_mtu(t->dst); in sctp_transport_pmtu_check() local 608 if (t->pathmtu == pmtu) in sctp_transport_pmtu_check() 611 t->pathmtu = pmtu; in sctp_transport_pmtu_check() 633 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_reset() 652 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_update()
|
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
H A D | qedi_iscsi.c | 482 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 ! in qedi_set_path() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qedi/ |
H A D | qedi_iscsi.c | 483 static u16 qedi_calc_mss(u16 pmtu, u8 is_ipv6, u8 tcp_ts_en, u8 vlan_en) in qedi_calc_mss() argument 493 mss = pmtu - hdrs; in qedi_calc_mss() 568 conn_info->mss = qedi_calc_mss(qedi_ep->pmtu, in qedi_iscsi_offload_conn() 996 path_req.pmtu = qedi->ll2_mtu; in qedi_ep_connect() 997 qedi_ep->pmtu = qedi->ll2_mtu; in qedi_ep_connect() 1320 if (path_data->pmtu < DEF_PATH_MTU) { in qedi_set_path() 1321 qedi_ep->pmtu = qedi->ll2_mtu; in qedi_set_path() 1324 path_data->pmtu, qedi_ep->pmtu); in qedi_set_path() 1327 if (path_data->pmtu ! in qedi_set_path() [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_output.c | 82 static inline int __tcp_nip_mtu_to_mss(struct sock *sk, int pmtu) in __tcp_nip_mtu_to_mss() argument 91 mss_now = pmtu - nip_hdr_len - sizeof(struct tcphdr); in __tcp_nip_mtu_to_mss() 114 int tcp_nip_mtu_to_mss(struct sock *sk, int pmtu) in tcp_nip_mtu_to_mss() argument 117 return __tcp_nip_mtu_to_mss(sk, pmtu) - in tcp_nip_mtu_to_mss() 660 unsigned int tcp_nip_sync_mss(struct sock *sk, u32 pmtu) in tcp_nip_sync_mss() argument 666 if (icsk->icsk_mtup.search_high > pmtu) in tcp_nip_sync_mss() 667 icsk->icsk_mtup.search_high = pmtu; in tcp_nip_sync_mss() 669 mss_now = tcp_nip_mtu_to_mss(sk, pmtu); in tcp_nip_sync_mss() 675 icsk->icsk_pmtu_cookie = pmtu; in tcp_nip_sync_mss()
|
/kernel/linux/linux-5.10/include/net/sctp/ |
H A D | sctp.h | 147 struct sctp_transport *t, __u32 pmtu); 561 * pmtu code. 598 __u32 pmtu = sctp_dst_mtu(t->dst); in sctp_transport_pmtu_check() local 600 if (t->pathmtu == pmtu) in sctp_transport_pmtu_check() 603 t->pathmtu = pmtu; in sctp_transport_pmtu_check()
|
/kernel/linux/linux-5.10/net/dccp/ |
H A D | output.c | 159 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu) in dccp_sync_mss() argument 164 u32 cur_mps = ccmps ? min(pmtu, ccmps) : pmtu; in dccp_sync_mss() 187 icsk->icsk_pmtu_cookie = pmtu; in dccp_sync_mss()
|
/kernel/linux/linux-6.6/net/dccp/ |
H A D | output.c | 161 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu) in dccp_sync_mss() argument 166 u32 cur_mps = ccmps ? min(pmtu, ccmps) : pmtu; in dccp_sync_mss() 189 icsk->icsk_pmtu_cookie = pmtu; in dccp_sync_mss()
|