/net/rxrpc/ |
D | ar-error.c | 79 u32 mtu = serr->ee.ee_info; in rxrpc_UDP_error_report() local 81 _net("Rx Received ICMP Fragmentation Needed (%d)", mtu); in rxrpc_UDP_error_report() 84 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) { in rxrpc_UDP_error_report() 85 peer->if_mtu = mtu; in rxrpc_UDP_error_report() 86 _net("I/F MTU %u", mtu); in rxrpc_UDP_error_report() 89 if (mtu == 0) { in rxrpc_UDP_error_report() 91 mtu = peer->if_mtu; in rxrpc_UDP_error_report() 92 if (mtu > 1500) { in rxrpc_UDP_error_report() 93 mtu >>= 1; in rxrpc_UDP_error_report() 94 if (mtu < 1500) in rxrpc_UDP_error_report() [all …]
|
/net/ipv6/ |
D | xfrm6_output.c | 47 static void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) in xfrm6_local_rxpmtu() argument 55 ipv6_local_rxpmtu(sk, &fl6, mtu); in xfrm6_local_rxpmtu() 58 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) in xfrm6_local_error() argument 68 ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); in xfrm6_local_error() 73 int mtu, ret = 0; in xfrm6_tunnel_check_size() local 76 mtu = dst_mtu(dst); in xfrm6_tunnel_check_size() 77 if (mtu < IPV6_MIN_MTU) in xfrm6_tunnel_check_size() 78 mtu = IPV6_MIN_MTU; in xfrm6_tunnel_check_size() 80 if (!skb->ignore_df && skb->len > mtu) { in xfrm6_tunnel_check_size() 85 xfrm6_local_rxpmtu(skb, mtu); in xfrm6_tunnel_check_size() [all …]
|
D | ip6_output.c | 177 u32 mtu; in ip6_xmit() local 233 mtu = dst_mtu(dst); in ip6_xmit() 234 if ((skb->len <= mtu) || skb->ignore_df || skb_is_gso(skb)) { in ip6_xmit() 249 ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu); in ip6_xmit() 351 unsigned int mtu; in ip6_dst_mtu_forward() local 355 mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_dst_mtu_forward() 356 if (mtu) in ip6_dst_mtu_forward() 357 return mtu; in ip6_dst_mtu_forward() 360 mtu = IPV6_MIN_MTU; in ip6_dst_mtu_forward() 364 mtu = idev->cnf.mtu6; in ip6_dst_mtu_forward() [all …]
|
D | ip6_gre.c | 412 __u32 mtu; in ip6gre_err() local 443 mtu = be32_to_cpu(info) - offset; in ip6gre_err() 444 if (mtu < IPV6_MIN_MTU) in ip6gre_err() 445 mtu = IPV6_MIN_MTU; in ip6gre_err() 446 t->dev->mtu = mtu; in ip6gre_err() 626 int mtu; in ip6gre_xmit2() local 672 mtu = dst_mtu(dst) - sizeof(*ipv6h); in ip6gre_xmit2() 675 mtu -= 8; in ip6gre_xmit2() 677 if (mtu < IPV6_MIN_MTU) in ip6gre_xmit2() 678 mtu = IPV6_MIN_MTU; in ip6gre_xmit2() [all …]
|
D | ip6_tunnel.c | 493 __u32 mtu; in ip6_tnl_err() local 524 mtu = *info - offset; in ip6_tnl_err() 525 if (mtu < IPV6_MIN_MTU) in ip6_tnl_err() 526 mtu = IPV6_MIN_MTU; in ip6_tnl_err() 527 t->dev->mtu = mtu; in ip6_tnl_err() 530 if (len > mtu) { in ip6_tnl_err() 533 rel_info = mtu; in ip6_tnl_err() 967 int mtu; in ip6_tnl_xmit2() local 1024 mtu = dst_mtu(dst) - sizeof(*ipv6h); in ip6_tnl_xmit2() 1027 mtu -= 8; in ip6_tnl_xmit2() [all …]
|
D | route.c | 95 struct sk_buff *skb, u32 mtu); 222 .mtu = ip6_mtu, 236 unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_blackhole_mtu() local 238 return mtu ? : dst->dev->mtu; in ip6_blackhole_mtu() 242 struct sk_buff *skb, u32 mtu) in ip6_rt_blackhole_update_pmtu() argument 255 .mtu = ip6_blackhole_mtu, 1333 static void rt6_do_update_pmtu(struct rt6_info *rt, u32 mtu) in rt6_do_update_pmtu() argument 1338 rt->rt6i_pmtu = mtu; in rt6_do_update_pmtu() 1350 const struct ipv6hdr *iph, u32 mtu) in __ip6_rt_update_pmtu() argument 1358 mtu = max_t(u32, mtu, IPV6_MIN_MTU); in __ip6_rt_update_pmtu() [all …]
|
D | sit.c | 825 int mtu; in ipip6_tunnel_xmit() local 928 mtu = dst_mtu(&rt->dst) - t_hlen; in ipip6_tunnel_xmit() 930 if (mtu < 68) { in ipip6_tunnel_xmit() 936 if (mtu < IPV6_MIN_MTU) { in ipip6_tunnel_xmit() 937 mtu = IPV6_MIN_MTU; in ipip6_tunnel_xmit() 942 skb_dst(skb)->ops->update_pmtu(skb_dst(skb), NULL, skb, mtu); in ipip6_tunnel_xmit() 944 if (skb->len > mtu && !skb_is_gso(skb)) { in ipip6_tunnel_xmit() 945 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); in ipip6_tunnel_xmit() 1080 dev->mtu = tdev->mtu - t_hlen; in ipip6_tunnel_bind_dev() 1081 if (dev->mtu < IPV6_MIN_MTU) in ipip6_tunnel_bind_dev() [all …]
|
/net/ipv4/ |
D | ip_forward.c | 42 static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) in ip_exceeds_mtu() argument 44 if (skb->len <= mtu) in ip_exceeds_mtu() 51 if (unlikely(IPCB(skb)->frag_max_size > mtu)) in ip_exceeds_mtu() 57 if (skb_is_gso(skb) && skb_gso_network_seglen(skb) <= mtu) in ip_exceeds_mtu() 80 u32 mtu; in ip_forward() local 122 mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); in ip_forward() 123 if (ip_exceeds_mtu(skb, mtu)) { in ip_forward() 126 htonl(mtu)); in ip_forward()
|
D | xfrm4_output.c | 23 int mtu, ret = 0; in xfrm4_tunnel_check_size() local 31 mtu = dst_mtu(skb_dst(skb)); in xfrm4_tunnel_check_size() 32 if (skb->len > mtu) { in xfrm4_tunnel_check_size() 36 xfrm_local_error(skb, mtu); in xfrm4_tunnel_check_size() 39 ICMP_FRAG_NEEDED, htonl(mtu)); in xfrm4_tunnel_check_size() 105 void xfrm4_local_error(struct sk_buff *skb, u32 mtu) in xfrm4_local_error() argument 111 inet_sk(skb->sk)->inet_dport, mtu); in xfrm4_local_error()
|
D | ip_tunnel.c | 312 int mtu = ETH_DATA_LEN; in ip_tunnel_bind_dev() local 342 mtu = tdev->mtu; in ip_tunnel_bind_dev() 346 mtu -= (dev->hard_header_len + t_hlen); in ip_tunnel_bind_dev() 348 if (mtu < IPV4_MIN_MTU) in ip_tunnel_bind_dev() 349 mtu = IPV4_MIN_MTU; in ip_tunnel_bind_dev() 351 return mtu; in ip_tunnel_bind_dev() 366 dev->mtu = ip_tunnel_bind_dev(dev); in ip_tunnel_create() 550 int mtu; in tnl_update_pmtu() local 553 mtu = dst_mtu(&rt->dst) - dev->hard_header_len in tnl_update_pmtu() 556 mtu = skb_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu; in tnl_update_pmtu() [all …]
|
D | ip_output.c | 89 unsigned int mtu, 235 struct sk_buff *skb, unsigned int mtu) in ip_finish_output_gso() argument 243 skb_gso_network_seglen(skb) <= mtu) in ip_finish_output_gso() 268 err = ip_fragment(net, sk, segs, mtu, ip_finish_output2); in ip_finish_output_gso() 280 unsigned int mtu; in ip_finish_output() local 289 mtu = ip_skb_dst_mtu(skb); in ip_finish_output() 291 return ip_finish_output_gso(net, sk, skb, mtu); in ip_finish_output() 293 if (skb->len > mtu || IPCB(skb)->frag_max_size) in ip_finish_output() 294 return ip_fragment(net, sk, skb, mtu, ip_finish_output2); in ip_finish_output() 509 unsigned int mtu, in ip_fragment() argument [all …]
|
D | route.c | 145 struct sk_buff *skb, u32 mtu); 164 .mtu = ipv4_mtu, 1013 static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu) in __ip_rt_update_pmtu() argument 1023 if (old_mtu < mtu) in __ip_rt_update_pmtu() 1026 if (mtu < ip_rt_min_pmtu) { in __ip_rt_update_pmtu() 1028 mtu = min(old_mtu, ip_rt_min_pmtu); in __ip_rt_update_pmtu() 1031 if (rt->rt_pmtu == mtu && !lock && in __ip_rt_update_pmtu() 1039 update_or_create_fnhe(nh, fl4->daddr, 0, mtu, lock, in __ip_rt_update_pmtu() 1046 struct sk_buff *skb, u32 mtu) in ip_rt_update_pmtu() argument 1052 __ip_rt_update_pmtu(rt, &fl4, mtu); in ip_rt_update_pmtu() [all …]
|
/net/sched/ |
D | sch_teql.c | 197 dev->mtu < m->dev->mtu) in teql_qdisc_init() 206 if (dev->mtu < m->dev->mtu) in teql_qdisc_init() 207 m->dev->mtu = dev->mtu; in teql_qdisc_init() 214 m->dev->mtu = dev->mtu; in teql_qdisc_init() 363 int mtu = 0xFFFE; in teql_master_open() local 378 if (slave->mtu < mtu) in teql_master_open() 379 mtu = slave->mtu; in teql_master_open() 395 m->dev->mtu = mtu; in teql_master_open() 430 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu() 435 dev->mtu = new_mtu; in teql_master_mtu() [all …]
|
D | sch_tbf.c | 106 s64 mtu; member 241 if (ptoks > q->mtu) in tbf_dequeue() 242 ptoks = q->mtu; in tbf_dequeue() 294 q->ptokens = q->mtu; in tbf_reset() 318 s64 buffer, mtu; in tbf_change() local 339 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change() 366 mtu = psched_l2t_ns(&peak, pburst); in tbf_change() 368 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change() 405 q->mtu = mtu; in tbf_change() 407 q->mtu = PSCHED_TICKS2NS(qopt->mtu); in tbf_change() [all …]
|
/net/tipc/ |
D | node.h | 72 u32 mtu; member 175 unsigned int mtu = MAX_MSG_SIZE; in tipc_node_get_mtu() local 179 return mtu; in tipc_node_get_mtu() 183 mtu = n->links[bearer_id].mtu; in tipc_node_get_mtu() 185 return mtu; in tipc_node_get_mtu()
|
D | link.h | 182 u16 mtu; member 223 int tolerance, char net_plane, u32 mtu, int priority, 232 int mtu, int window, u16 peer_caps, 271 void tipc_link_set_mtu(struct tipc_link *l, int mtu);
|
D | link.c | 220 void tipc_link_set_mtu(struct tipc_link *l, int mtu) in tipc_link_set_mtu() argument 222 l->mtu = mtu; in tipc_link_set_mtu() 227 return l->mtu; in tipc_link_mtu() 258 int tolerance, char net_plane, u32 mtu, int priority, in tipc_link_create() argument 294 l->advertised_mtu = mtu; in tipc_link_create() 295 l->mtu = mtu; in tipc_link_create() 324 int mtu, int window, u16 peer_caps, in tipc_link_bc_create() argument 332 if (!tipc_link_create(net, "", MAX_BEARERS, 0, 'Z', mtu, 0, window, in tipc_link_bc_create() 673 l->mtu = l->advertised_mtu; in tipc_link_reset() 717 unsigned int mtu = l->mtu; in tipc_link_xmit() local [all …]
|
/net/caif/ |
D | chnl_net.c | 212 if (skb->len > priv->netdev->mtu) { in chnl_net_start_xmit() 252 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local 293 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open() 294 mtu = min_t(int, GPRS_PDP_MTU, mtu); in chnl_net_open() 295 dev_set_mtu(dev, mtu); in chnl_net_open() 297 if (mtu < 100) { in chnl_net_open() 298 pr_warn("CAIF Interface MTU too small (%d)\n", mtu); in chnl_net_open() 394 dev->mtu = GPRS_PDP_MTU; in ipcaif_net_setup()
|
/net/l2tp/ |
D | l2tp_eth.c | 238 if (session->mtu != 0) { in l2tp_eth_adjust_mtu() 239 dev->mtu = session->mtu; in l2tp_eth_adjust_mtu() 266 dev->mtu = pmtu; in l2tp_eth_adjust_mtu() 269 session->mtu = dev->mtu - overhead; in l2tp_eth_adjust_mtu() 270 dev->mtu = session->mtu; in l2tp_eth_adjust_mtu()
|
/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 108 __mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu) in __mtu_check_toobig_v6() argument 114 if (IP6CB(skb)->frag_max_size > mtu) in __mtu_check_toobig_v6() 117 else if (skb->len > mtu && !skb_is_gso(skb)) { in __mtu_check_toobig_v6() 206 static inline void maybe_update_pmtu(int skb_af, struct sk_buff *skb, int mtu) in maybe_update_pmtu() argument 212 ort->dst.ops->update_pmtu(&ort->dst, sk, NULL, mtu); in maybe_update_pmtu() 218 struct sk_buff *skb, int mtu) in ensure_mtu_is_adequate() argument 224 if (unlikely(__mtu_check_toobig_v6(skb, mtu))) { in ensure_mtu_is_adequate() 229 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); in ensure_mtu_is_adequate() 244 skb->len > mtu && !skb_is_gso(skb) && in ensure_mtu_is_adequate() 247 htonl(mtu)); in ensure_mtu_is_adequate() [all …]
|
/net/batman-adv/ |
D | fragmentation.c | 376 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 417 unsigned mtu = fragment_size + header_size; in batadv_frag_create() local 419 skb_fragment = dev_alloc_skb(ll_reserved + mtu + tailroom); in batadv_frag_create() 454 unsigned mtu = net_dev->mtu; in batadv_frag_send_packet() local 462 mtu = min_t(unsigned, mtu, BATADV_FRAG_MAX_FRAG_SIZE); in batadv_frag_send_packet() 463 max_fragment_size = mtu - header_size; in batadv_frag_send_packet()
|
/net/bridge/ |
D | br_if.c | 397 int mtu = 0; in br_min_mtu() local 402 mtu = ETH_DATA_LEN; in br_min_mtu() 405 if (!mtu || p->dev->mtu < mtu) in br_min_mtu() 406 mtu = p->dev->mtu; in br_min_mtu() 409 return mtu; in br_min_mtu()
|
D | br_nf_core.c | 29 struct sk_buff *skb, u32 mtu) in fake_update_pmtu() argument 52 return dst->dev->mtu; in fake_mtu() 61 .mtu = fake_mtu,
|
/net/bluetooth/rfcomm/ |
D | core.c | 296 d->mtu = RFCOMM_DEFAULT_MTU; in rfcomm_dlc_clear_state() 410 d->mtu = s->mtu; in __rfcomm_dlc_open() 562 BT_DBG("dlc %p mtu %d len %d", d, d->mtu, len); in rfcomm_dlc_send() 564 if (len > d->mtu) in rfcomm_dlc_send() 579 BT_DBG("dlc %p mtu %d len %d", d, d->mtu, len); in rfcomm_dlc_send_noerror() 659 s->mtu = RFCOMM_DEFAULT_MTU; in rfcomm_session_add() 927 BT_DBG("%p cr %d dlci %d mtu %d", s, cr, d->dlci, d->mtu); in rfcomm_send_pn() 953 pn->mtu = cpu_to_le16(channel_mtu); in rfcomm_send_pn() 955 pn->mtu = cpu_to_le16(d->mtu); in rfcomm_send_pn() 1374 d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); in rfcomm_apply_pn() [all …]
|
/net/8021q/ |
D | vlan_netlink.c | 152 dev->mtu = real_dev->mtu; in vlan_newlink() 153 else if (dev->mtu > real_dev->mtu) in vlan_newlink()
|