Home
last modified time | relevance | path

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

12

/linux/net/sctp/
H A Dtransport.c267 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send()
268 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send()
272 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send()
277 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send()
278 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send()
282 t->pl.probe_size = t->pl.pmtu; in sctp_transport_pl_send()
285 if (t->pl.pmtu == t->pl.probe_size) { /* Black Hole Detected */ in sctp_transport_pl_send()
289 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send()
290 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send()
297 __func__, t, t->pl.state, t->pl.pmtu, t->pl.probe_size, t->pl.probe_high); in sctp_transport_pl_send()
[all …]
H A Doutput.c786 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()
H A Dassociola.c1394 void sctp_assoc_set_pmtu(struct sctp_association *asoc, __u32 pmtu) in sctp_assoc_set_pmtu() argument
1396 if (asoc->pathmtu != pmtu) { in sctp_assoc_set_pmtu()
1397 asoc->pathmtu = pmtu; in sctp_assoc_set_pmtu()
1411 __u32 pmtu = 0; in sctp_assoc_sync_pmtu() local
1423 if (!pmtu || (t->pathmtu < pmtu)) in sctp_assoc_sync_pmtu()
1424 pmtu = t->pathmtu; in sctp_assoc_sync_pmtu()
1427 sctp_assoc_set_pmtu(asoc, pmtu); in sctp_assoc_sync_pmtu()
H A Dinput.c373 struct sctp_transport *t, __u32 pmtu) in sctp_icmp_frag_needed() argument
376 (t->pathmtu <= pmtu && in sctp_icmp_frag_needed()
377 t->pl.probe_size + sctp_transport_pl_hlen(t) <= pmtu)) in sctp_icmp_frag_needed()
381 atomic_set(&t->mtu_info, pmtu); in sctp_icmp_frag_needed()
398 if (!sctp_transport_update_pmtu(t, pmtu)) in sctp_icmp_frag_needed()
/linux/drivers/infiniband/hw/hfi1/
H A Duc.c30 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 …]
H A Drc.c77 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 …]
H A Drc.h36 u32 psn, u32 pmtu) in restart_sge() argument
40 len = delta_psn(psn, wqe->psn) * pmtu; in restart_sge()
H A 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()
H A Dqp.h103 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
H A Dtid_rdma.c1192 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/tools/testing/selftests/net/
H A Dpmtu.sh1381 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})"
1382 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on ${type} interface"
1463 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})"
1464 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on bridged ${type} interface"
1465 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})"
1466 check_pmtu_value ${exp_mtu} "${pmtu}" "exceeding link layer MTU on locally bridged ${type} interface"
1498 pmtu="$(route_get_dst_pmtu_from_exception "${ns_c}" ${dst})"
1499 check_pmtu_value ${exp_mtu} "${pmtu}" "tcp: exceeding link layer MTU on bridged ${type} interface"
1500 pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst})"
1501 check_pmtu_value ${exp_mtu} "${pmtu}" "tc
[all...]
H A DMakefile71 pmtu.sh \
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_flowtable.sh291 local failmsg="FAIL: pmtu $pmtu: $what counters do not match, expected"
358 local pmtu=$3
367 if [ $pmtu -eq 0 ]; then
403 local pmtu="$3"
408 test_tcp_forwarding_ip "$1" "$2" "$pmtu" "$proto" "$dstip" "$dstport"
415 local pmtu="$3"
429 test_tcp_forwarding_ip "$1" "$2" "$pmtu" "$proto" "$dstip" "$dstport"
430 check_dscp "dscp_ingress" "$pmtu"
446 test_tcp_forwarding_ip "$1" "$2" "$pmtu" "
[all...]
/linux/drivers/scsi/qedi/
H A Dqedi_iscsi.c483 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 …]
H A Dqedi_iscsi.h71 u16 pmtu; member
/linux/net/xfrm/
H A Dxfrm_iptfs.c1797 u32 pmtu = __iptfs_get_inner_mtu(x, xdst->child_mtu_cached); in iptfs_get_cur_pmtu() local
1799 if (payload_mtu && payload_mtu < pmtu) in iptfs_get_cur_pmtu()
1800 pmtu = payload_mtu; in iptfs_get_cur_pmtu()
1802 return pmtu; in iptfs_get_cur_pmtu()
1805 static int iptfs_is_too_big(struct sock *sk, struct sk_buff *skb, u32 pmtu) in iptfs_is_too_big() argument
1807 if (skb->len <= pmtu) in iptfs_is_too_big()
1817 xfrm_local_error(skb, pmtu); in iptfs_is_too_big()
1819 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(pmtu)); in iptfs_is_too_big()
1821 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, pmtu); in iptfs_is_too_big()
1836 u32 pmtu = 0; in iptfs_output_collect() local
[all …]
H A Dxfrm_policy.c3977 u32 pmtu, route_mtu_cached; in xfrm_init_pmtu() local
3981 pmtu = dst_mtu(xfrm_dst_child(dst)); in xfrm_init_pmtu()
3982 xdst->child_mtu_cached = pmtu; in xfrm_init_pmtu()
3984 pmtu = xfrm_state_mtu(dst->xfrm, pmtu); in xfrm_init_pmtu()
3989 if (pmtu > route_mtu_cached) in xfrm_init_pmtu()
3990 pmtu = route_mtu_cached; in xfrm_init_pmtu()
3992 dst_metric_set(dst, RTAX_MTU, pmtu); in xfrm_init_pmtu()
/linux/net/dccp/
H A Doutput.c
H A Ddccp.h
/linux/include/net/
H A Dip6_tunnel.h146 struct flowi6 *fl6, int encap_limit, __u32 *pmtu, __u8 proto);
H A Dinet_connection_sock.h101 unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
/linux/include/rdma/
H A Drdmavt_qp.h351 u16 pmtu; /* decoded from path_mtu */ member
663 return (len + qp->pmtu - 1) >> qp->log_pmtu; in rvt_div_round_up_mtu()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c943 unsigned int pmtu, in chtls_select_mss() argument
976 if (tp->advmss > pmtu - iphdrsz) in chtls_select_mss()
977 tp->advmss = pmtu - iphdrsz; in chtls_select_mss()
987 inet_csk(sk)->icsk_pmtu_cookie = pmtu; in chtls_select_mss()
/linux/net/ipv6/
H A Dip6_output.c1459 unsigned int maxfraglen, fragheaderlen, mtu, orig_mtu, pmtu; in __ip6_append_data() local
1528 pmtu = max_t(int, mtu - headersize + sizeof(struct ipv6hdr), 0); in __ip6_append_data()
1529 ipv6_local_error(sk, EMSGSIZE, fl6, pmtu); in __ip6_append_data()
/linux/include/scsi/
H A Discsi_if.h347 uint16_t pmtu; member

12