/linux-6.1.9/net/sctp/ |
D | transport.c | 276 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 277 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 281 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send() 286 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 287 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 291 t->pl.probe_size = t->pl.pmtu; in sctp_transport_pl_send() 294 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send() 298 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 299 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 306 __func__, t, t->pl.state, t->pl.pmtu, t->pl.probe_size, t->pl.probe_high); in sctp_transport_pl_send() [all …]
|
D | output.c | 786 size_t psize, pmtu, maxsize; in sctp_packet_will_fit() local 800 pmtu = packet->transport->asoc->pathmtu; in sctp_packet_will_fit() 802 pmtu = packet->transport->pathmtu; in sctp_packet_will_fit() 805 if (psize + chunk_len > pmtu) { in sctp_packet_will_fit() 828 maxsize = pmtu - packet->overhead; in sctp_packet_will_fit()
|
D | associola.c | 1414 void sctp_assoc_set_pmtu(struct sctp_association *asoc, __u32 pmtu) in sctp_assoc_set_pmtu() argument 1416 if (asoc->pathmtu != pmtu) { in sctp_assoc_set_pmtu() 1417 asoc->pathmtu = pmtu; in sctp_assoc_set_pmtu() 1431 __u32 pmtu = 0; in sctp_assoc_sync_pmtu() local 1443 if (!pmtu || (t->pathmtu < pmtu)) in sctp_assoc_sync_pmtu() 1444 pmtu = t->pathmtu; in sctp_assoc_sync_pmtu() 1447 sctp_assoc_set_pmtu(asoc, pmtu); in sctp_assoc_sync_pmtu()
|
D | input.c | 388 struct sctp_transport *t, __u32 pmtu) in sctp_icmp_frag_needed() argument 391 (t->pathmtu <= pmtu && in sctp_icmp_frag_needed() 392 t->pl.probe_size + sctp_transport_pl_hlen(t) <= pmtu)) in sctp_icmp_frag_needed() 396 atomic_set(&t->mtu_info, pmtu); in sctp_icmp_frag_needed() 413 if (!sctp_transport_update_pmtu(t, pmtu)) in sctp_icmp_frag_needed()
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
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; in qib_uc_rcv() local [all …]
|
D | qib_rc.c | 43 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() 227 u32 pmtu = qp->pmtu; in qib_make_rc_req() local 238 qib_make_rc_ack(dev, qp, ohdr, pmtu)) in qib_make_rc_req() 319 if (len > pmtu) { in qib_make_rc_req() [all …]
|
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()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
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; in hfi1_uc_rcv() local [all …]
|
D | rc.h | 36 u32 psn, u32 pmtu) in restart_sge() argument 40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge()
|
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() 601 if (len > pmtu) { in hfi1_make_rc_req() 603 len = pmtu; in hfi1_make_rc_req() [all …]
|
D | qp.h | 103 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
|
D | opfn.c | 257 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()
|
D | qp.c | 277 if (wqe->length > qp->pmtu) in hfi1_setup_wqe() 644 qp->pmtu, in qp_iter_print() 799 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu) in mtu_from_qp() argument 815 mtu = verbs_mtu_enum_to_int(qp->ibqp.device, pmtu); in mtu_from_qp()
|
D | tid_rdma.c | 1192 if (flow->req->qp->pmtu == enum_to_mtu(OPA_MTU_4096)) in kern_get_phys_blocks() 1308 u32 pmtu_pg = flow->req->qp->pmtu >> PAGE_SHIFT; in kern_program_rcv_group() 1830 qp->pmtu); in hfi1_build_tid_rdma_read_req() 2360 *len = min_t(u32, qp->pmtu, tidlen - flow->tid_offset); in hfi1_build_tid_rdma_read_resp() 2497 u32 pmtu = qp->pmtu; in hfi1_rc_rcv_tid_rdma_read_resp() local 2499 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_rc_rcv_tid_rdma_read_resp() 2501 len = restart_sge(&ss, req->e.swqe, ipsn, pmtu); in hfi1_rc_rcv_tid_rdma_read_resp() 2502 if (unlikely(len < pmtu)) in hfi1_rc_rcv_tid_rdma_read_resp() 2504 rvt_copy_sge(qp, &ss, packet->payload, pmtu, false, in hfi1_rc_rcv_tid_rdma_read_resp() 3099 npkts * qp->pmtu); in hfi1_tid_rdma_restart_req() [all …]
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | pmtu.sh | 1245 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1246 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on ${type} interface" 1327 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1328 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on bridged ${type} interface" 1329 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1330 …check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on locally bridged ${type} interfa… 1416 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})" 1417 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on Open vSwitch ${type} interface" 1496 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})" 1497 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on ${encap} interface" [all …]
|
D | Makefile | 9 TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh
|
/linux-6.1.9/include/net/sctp/ |
D | sctp.h | 150 struct sctp_transport *t, __u32 pmtu); 611 __u32 pmtu = sctp_dst_mtu(t->dst); in sctp_transport_pmtu_check() local 613 if (t->pathmtu == pmtu) in sctp_transport_pmtu_check() 616 t->pathmtu = pmtu; in sctp_transport_pmtu_check() 638 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_reset() 657 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_update()
|
D | structs.h | 987 __u16 pmtu; member 1023 bool sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu); 2164 void sctp_assoc_set_pmtu(struct sctp_association *asoc, __u32 pmtu);
|
/linux-6.1.9/drivers/scsi/qedi/ |
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 != qedi->ll2_mtu) { in qedi_set_path() 1328 if (path_data->pmtu > JUMBO_MTU) { in qedi_set_path() [all …]
|
D | qedi_iscsi.h | 71 u16 pmtu; member
|
/linux-6.1.9/net/dccp/ |
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()
|
/linux-6.1.9/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 322 local pmtu 327 pmtu=$3 331 if [ $pmtu -eq 1 ] ;then 339 if [ $pmtu -eq 1 ] ;then
|
/linux-6.1.9/include/net/ |
D | ip6_tunnel.h | 146 struct flowi6 *fl6, int encap_limit, __u32 *pmtu, __u8 proto);
|
/linux-6.1.9/include/rdma/ |
D | rdmavt_qp.h | 350 u16 pmtu; /* decoded from path_mtu */ member 662 return (len + qp->pmtu - 1) >> qp->log_pmtu; in rvt_div_round_up_mtu()
|
/linux-6.1.9/net/ipv4/ |
D | tcp_output.c | 1692 static inline int __tcp_mtu_to_mss(struct sock *sk, int pmtu) in __tcp_mtu_to_mss() argument 1701 mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr); in __tcp_mtu_to_mss() 1725 int tcp_mtu_to_mss(struct sock *sk, int pmtu) in tcp_mtu_to_mss() argument 1728 return __tcp_mtu_to_mss(sk, pmtu) - in tcp_mtu_to_mss() 1795 unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu) in tcp_sync_mss() argument 1801 if (icsk->icsk_mtup.search_high > pmtu) in tcp_sync_mss() 1802 icsk->icsk_mtup.search_high = pmtu; in tcp_sync_mss() 1804 mss_now = tcp_mtu_to_mss(sk, pmtu); in tcp_sync_mss() 1808 icsk->icsk_pmtu_cookie = pmtu; in tcp_sync_mss()
|