Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 196) sorted by relevance

12345678

/linux-2.4.37.9/net/sched/
Dsch_teql.c205 || dev->mtu < m->dev.mtu) in teql_qdisc_init()
214 if (dev->mtu < m->dev.mtu) in teql_qdisc_init()
215 m->dev.mtu = dev->mtu; in teql_qdisc_init()
222 m->dev.mtu = dev->mtu; in teql_qdisc_init()
354 int mtu = 0xFFFE; in teql_master_open() local
369 if (slave->mtu < mtu) in teql_master_open()
370 mtu = slave->mtu; in teql_master_open()
386 m->dev.mtu = mtu; in teql_master_open()
417 if (new_mtu > q->dev->mtu) in teql_master_mtu()
422 dev->mtu = new_mtu; in teql_master_mtu()
[all …]
Dpolice.c139 p->mtu = parm->mtu; in tcf_police_locate()
140 if (p->mtu == 0) { in tcf_police_locate()
141 p->mtu = ~0; in tcf_police_locate()
143 p->mtu = 255<<p->R_tab->rate.cell_log; in tcf_police_locate()
146 p->ptoks = L2T_P(p, p->mtu); in tcf_police_locate()
187 if (skb->len <= p->mtu) { in tcf_police()
199 if (ptoks > (long)L2T_P(p, p->mtu)) in tcf_police()
200 ptoks = (long)L2T_P(p, p->mtu); in tcf_police()
229 opt.mtu = p->mtu; in tcf_police_dump()
Dsch_tbf.c122 u32 mtu; member
214 if (ptoks > (long)q->mtu) in tbf_dequeue()
215 ptoks = q->mtu; in tbf_dequeue()
270 q->ptokens = q->mtu; in tbf_reset()
335 if (ptab->data[n] > qopt->mtu) break; in tbf_change()
350 q->mtu = qopt->mtu; in tbf_change()
354 q->ptokens = q->mtu; in tbf_change()
423 opt.mtu = q->mtu; in tbf_dump()
/linux-2.4.37.9/drivers/net/
Dnet_init.c250 dev->mtu = new_mtu; in eth_change_mtu()
302 dev->mtu = new_mtu; in fddi_change_mtu()
317 dev->mtu = new_mtu; in hippi_change_mtu()
421 dev->mtu = 1500; /* eth_mtu */ in ether_setup()
447 dev->mtu = FDDI_K_SNAP_DLEN; /* Assume max payload of 802.2 SNAP frame */ in fddi_setup()
480 dev->mtu = 65280; in hippi_setup()
497 static int ltalk_change_mtu(struct net_device *dev, int mtu) in ltalk_change_mtu() argument
521 dev->mtu = LTALK_MTU; in ltalk_setup()
592 dev->mtu = 2000; in tr_setup()
669 dev->mtu = 2024; in fc_setup()
Dslip.c131 sl_alloc_bufs(struct slip *sl, int mtu) in sl_alloc_bufs() argument
149 len = mtu * 2; in sl_alloc_bufs()
178 sl->mtu = mtu; in sl_alloc_bufs()
233 static int sl_realloc_bufs(struct slip *sl, int mtu) argument
241 int len = mtu * 2;
263 if (mtu >= sl->mtu) {
301 sl->mtu = mtu;
302 dev->mtu = mtu;
402 if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */
580 if (new_mtu != dev->mtu)
[all …]
/linux-2.4.37.9/net/ipv6/
Dsit.c457 int mtu; in ipip6_tunnel_xmit() local
516 mtu = rt->u.dst.pmtu - sizeof(struct iphdr); in ipip6_tunnel_xmit()
518 mtu = skb->dst ? skb->dst->pmtu : dev->mtu; in ipip6_tunnel_xmit()
520 if (mtu < 68) { in ipip6_tunnel_xmit()
525 if (mtu < IPV6_MIN_MTU) in ipip6_tunnel_xmit()
526 mtu = IPV6_MIN_MTU; in ipip6_tunnel_xmit()
527 if (skb->dst && mtu < skb->dst->pmtu) { in ipip6_tunnel_xmit()
529 if (mtu < rt6->u.dst.pmtu) { in ipip6_tunnel_xmit()
532 rt6->u.dst.pmtu = mtu; in ipip6_tunnel_xmit()
536 if (skb->len > mtu) { in ipip6_tunnel_xmit()
[all …]
Dip6_output.c330 int hlimit, int flags, unsigned length, int mtu) in ip6_frag_xmit() argument
370 frag_len = (mtu - unfrag_len) & ~0x7; in ip6_frag_xmit()
374 ipv6_local_error(sk, EMSGSIZE, fl, mtu); in ip6_frag_xmit()
406 ipv6_local_error(sk, EMSGSIZE, fl, mtu); in ip6_frag_xmit()
513 unsigned int pktlength, jumbolen, mtu; in ip6_build_xmit() local
606 mtu = dst->pmtu; in ip6_build_xmit()
607 if (np->frag_size < mtu) { in ip6_build_xmit()
609 mtu = np->frag_size; in ip6_build_xmit()
611 mtu = IPV6_MIN_MTU; in ip6_build_xmit()
618 ipv6_local_error(sk, EMSGSIZE, fl, mtu); in ip6_build_xmit()
[all …]
Dndisc.c1061 u32 mtu; in ndisc_router_discovery() local
1063 memcpy(&mtu, ((u8*)(ndopts.nd_opts_mtu+1))+2, sizeof(mtu)); in ndisc_router_discovery()
1064 mtu = ntohl(mtu); in ndisc_router_discovery()
1066 if (mtu < IPV6_MIN_MTU || mtu > skb->dev->mtu) { in ndisc_router_discovery()
1069 mtu); in ndisc_router_discovery()
1073 if (in6_dev->cnf.mtu6 != mtu) { in ndisc_router_discovery()
1074 in6_dev->cnf.mtu6 = mtu; in ndisc_router_discovery()
1077 rt->u.dst.pmtu = mtu; in ndisc_router_discovery()
1079 rt6_mtu_change(skb->dev, mtu); in ndisc_router_discovery()
/linux-2.4.37.9/drivers/net/wan/
Dx25_asy.c150 len = dev->mtu * 2; in x25_asy_changed_mtu()
159 dev->mtu = sl->mtu; in x25_asy_changed_mtu()
194 sl->mtu = dev->mtu; in x25_asy_changed_mtu()
264 if (sl->mtu != sl->dev->mtu) { /* Someone has been ifconfigging */ in x25_asy_encaps()
269 if (len > sl->mtu) in x25_asy_encaps()
271 len = sl->mtu; in x25_asy_encaps()
496 len = dev->mtu * 2; in x25_asy_open()
506 sl->mtu = dev->mtu; in x25_asy_open()
576 if (sl->mtu != sl->dev->mtu) { in x25_asy_receive_buf()
865 dev->mtu = SL_MTU; in x25_asy_init()
Dz85230.c807 c->mtu = dev->mtu+64; in z8530_sync_open()
873 c->mtu = dev->mtu+64; in z8530_sync_dma_open()
889 if(c->mtu > PAGE_SIZE/2) in z8530_sync_dma_open()
953 set_dma_count(c->rxdma, c->mtu); in z8530_sync_dma_open()
1068 c->mtu = dev->mtu+64; in z8530_sync_txdma_open()
1079 if(c->mtu > PAGE_SIZE/2) in z8530_sync_txdma_open()
1416 c->mtu=1500; in z8530_channel_load()
1615 ct=c->mtu-get_dma_residue(c->rxdma); in z8530_rx_done()
1630 set_dma_count(c->rxdma, c->mtu); in z8530_rx_done()
1688 c->max = c->mtu; in z8530_rx_done()
[all …]
Dsdla.c566 master->mtu = slave->mtu; in sdla_assoc()
1126 if ((data.config.mtu < 0) || (data.config.mtu > SDLA_MAX_MTU)) in sdla_config()
1150 if (dev->mtu != flp->config.mtu) in sdla_config()
1153 dev->mtu = flp->config.mtu; in sdla_config()
1156 flp->master[i]->mtu = flp->config.mtu; in sdla_config()
1159 flp->config.mtu += sizeof(struct frhdr); in sdla_config()
1184 …data.config.mtu -= data.config.mtu > sizeof(struct frhdr) ? sizeof(struct frhdr) : data.config.mtu; in sdla_config()
1647 dev->mtu = SDLA_MAX_MTU; in sdla_init()
Dhdlc_generic.c43 dev->mtu = new_mtu; in hdlc_change_mtu()
137 dev->mtu = HDLC_MAX_MTU; in register_hdlc_device()
/linux-2.4.37.9/net/ipv4/
Dip_gre.c455 rel_info = ntohs(skb->h.icmph->un.frag.mtu); in ipgre_err()
682 int mtu; in ipgre_tunnel_xmit() local
758 mtu = rt->u.dst.pmtu - tunnel->hlen; in ipgre_tunnel_xmit()
760 mtu = skb->dst ? skb->dst->pmtu : dev->mtu; in ipgre_tunnel_xmit()
763 if (skb->dst && mtu < skb->dst->pmtu && mtu >= 68) in ipgre_tunnel_xmit()
764 skb->dst->pmtu = mtu; in ipgre_tunnel_xmit()
769 mtu < ntohs(old_iph->tot_len)) { in ipgre_tunnel_xmit()
770 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); in ipgre_tunnel_xmit()
779 if (rt6 && mtu < rt6->u.dst.pmtu && mtu >= IPV6_MIN_MTU) { in ipgre_tunnel_xmit()
783 skb->dst->pmtu = mtu; in ipgre_tunnel_xmit()
[all …]
Dip_forward.c79 unsigned short mtu; in ip_forward() local
111 mtu = rt->u.dst.pmtu; in ip_forward()
133 if (skb->len > mtu && (ntohs(iph->frag_off) & IP_DF)) in ip_forward()
150 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); in ip_forward()
Dipip.c386 rel_info = ntohs(skb->h.icmph->un.frag.mtu); in ipip_err()
536 int mtu; in ipip_tunnel_xmit() local
572 mtu = rt->u.dst.pmtu - sizeof(struct iphdr); in ipip_tunnel_xmit()
574 mtu = skb->dst ? skb->dst->pmtu : dev->mtu; in ipip_tunnel_xmit()
576 if (mtu < 68) { in ipip_tunnel_xmit()
581 if (skb->dst && mtu < skb->dst->pmtu) in ipip_tunnel_xmit()
582 skb->dst->pmtu = mtu; in ipip_tunnel_xmit()
586 if ((old_iph->frag_off&htons(IP_DF)) && mtu < ntohs(old_iph->tot_len)) { in ipip_tunnel_xmit()
587 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); in ipip_tunnel_xmit()
778 dev->mtu = new_mtu; in ipip_tunnel_change_mtu()
[all …]
Dip_output.c452 int mtu; in ip_build_xmit_slow() local
460 mtu = rt->u.dst.pmtu; in ip_build_xmit_slow()
468 maxfraglen = ((mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; in ip_build_xmit_slow()
477 maxfraglen = ((mtu-sizeof(struct iphdr)) & ~7) + fragheaderlen; in ip_build_xmit_slow()
481 ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, mtu); in ip_build_xmit_slow()
513 ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, mtu); in ip_build_xmit_slow()
678 if (length > rt->u.dst.dev->mtu) { in ip_build_xmit()
679 ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, rt->u.dst.dev->mtu); in ip_build_xmit()
767 unsigned int mtu, hlen, left, len; in ip_fragment() local
787 mtu = rt->u.dst.pmtu - hlen; /* Size of data space */ in ip_fragment()
[all …]
/linux-2.4.37.9/drivers/net/hamradio/
Dmkiss.c233 len = dev->mtu * 2; in ax_changedmtu()
249 dev->mtu = ax->mtu; in ax_changedmtu()
286 ax->mtu = dev->mtu + 73; in ax_changedmtu()
366 if (ax->mtu != ax->dev->mtu + 73) /* Someone has been ifconfigging */ in ax_encaps()
369 if (len > ax->mtu) { /* Sigh, shouldn't occur BUT ... */ in ax_encaps()
370 len = ax->mtu; in ax_encaps()
547 len = dev->mtu * 2; in ax_open()
563 ax->mtu = dev->mtu + 73; in ax_open()
618 if (ax->mtu != ax->dev->mtu + 73) in ax25_receive_buf()
932 dev->mtu = AX_MTU; in ax25_init()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_conn.c643 int mtu; in ip_vs_bypass_xmit() local
654 mtu = rt->u.dst.pmtu; in ip_vs_bypass_xmit()
655 if ((skb->len > mtu) && (iph->frag_off&__constant_htons(IP_DF))) { in ip_vs_bypass_xmit()
657 icmp_send(skb, ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED, htonl(mtu)); in ip_vs_bypass_xmit()
713 int mtu; in ip_vs_nat_xmit() local
780 mtu = rt->u.dst.pmtu; in ip_vs_nat_xmit()
781 if ((skb->len > mtu) && (iph->frag_off&__constant_htons(IP_DF))) { in ip_vs_nat_xmit()
783 icmp_send(skb, ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED, htonl(mtu)); in ip_vs_nat_xmit()
892 int mtu; in ip_vs_tunnel_xmit() local
908 mtu = rt->u.dst.pmtu - sizeof(struct iphdr); in ip_vs_tunnel_xmit()
[all …]
/linux-2.4.37.9/include/net/bluetooth/
Dsco.h49 __u16 mtu; member
67 unsigned int mtu; member
/linux-2.4.37.9/drivers/net/arcnet/
Darcnet.c325 int count, mtu = 65535; in choose_mtu() local
330 && arc_proto_map[count]->mtu < mtu) { in choose_mtu()
331 mtu = arc_proto_map[count]->mtu; in choose_mtu()
335 return mtu == 65535 ? XMTU : mtu; in choose_mtu()
344 dev->mtu = choose_mtu(); in arcdev_setup()
400 if (newmtu < dev->mtu) in arcnet_open()
401 dev->mtu = newmtu; in arcnet_open()
/linux-2.4.37.9/include/net/
Dpkt_sched.h395 u32 mtu; member
457 unsigned mtu = dev->mtu; in psched_mtu() local
458 return dev->hard_header ? mtu + dev->hard_header_len : mtu; in psched_mtu()
/linux-2.4.37.9/include/linux/
Dwanrouter.h234 unsigned mtu; /* maximum transmit unit size */ member
361 unsigned mtu; /* max. transmit unit for this device */ member
449 unsigned mtu; /* maximum transmit unit size */ member
497 unsigned mtu; /* max physical transmit unit size */ member
/linux-2.4.37.9/drivers/bluetooth/
Dhci_usb.c156 static void __fill_isoc_desc(struct urb *urb, int len, int mtu) in __fill_isoc_desc() argument
160 BT_DBG("len %d mtu %d", len, mtu); in __fill_isoc_desc()
162 for (i=0; i < HCI_MAX_ISOC_FRAMES && len >= mtu; i++, offset += mtu, len -= mtu) { in __fill_isoc_desc()
164 urb->iso_frame_desc[i].length = mtu; in __fill_isoc_desc()
165 BT_DBG("desc %d offset %d len %d", i, offset, mtu); in __fill_isoc_desc()
258 int err, mtu, size; in hci_usb_isoc_rx_submit() local
261 mtu = husb->isoc_in_ep->wMaxPacketSize; in hci_usb_isoc_rx_submit()
262 size = mtu * HCI_MAX_ISOC_FRAMES; in hci_usb_isoc_rx_submit()
287 __fill_isoc_desc(urb, size, mtu); in hci_usb_isoc_rx_submit()
/linux-2.4.37.9/net/bluetooth/cmtp/
Dcore.c227 if (!(nskb = alloc_skb(session->mtu, GFP_ATOMIC))) { in cmtp_process_transmit()
235 if ((tail = (session->mtu - nskb->len)) < 5) { in cmtp_process_transmit()
238 tail = session->mtu; in cmtp_process_transmit()
366 session->mtu = min_t(uint, l2cap_pi(sock->sk)->omtu, l2cap_pi(sock->sk)->imtu); in cmtp_add_connection()
368 BT_DBG("mtu %d", session->mtu); in cmtp_add_connection()
/linux-2.4.37.9/Documentation/networking/
Difenslave.c231 static int set_slave_mtu(char *slave_ifname, int mtu);
508 int metric, mtu; /* Parameters of the master interface. */ in if_getconfig() local
545 mtu = 0; in if_getconfig()
547 mtu = ifr.ifr_mtu; in if_getconfig()
974 static int set_slave_mtu(char *slave_ifname, int mtu) in set_slave_mtu() argument
979 ifr.ifr_mtu = mtu; in set_slave_mtu()
988 v_print("Slave '%s': MTU set to %d.\n", slave_ifname, mtu); in set_slave_mtu()

12345678