Home
last modified time | relevance | path

Searched refs:new_mtu (Results 1 – 18 of 18) sorted by relevance

/net/802/
Dhippi.c146 int hippi_change_mtu(struct net_device *dev, int new_mtu) in hippi_change_mtu() argument
151 if ((new_mtu < 68) || (new_mtu > 65280)) in hippi_change_mtu()
153 dev->mtu = new_mtu; in hippi_change_mtu()
Dfddi.c169 int fddi_change_mtu(struct net_device *dev, int new_mtu) in fddi_change_mtu() argument
171 if ((new_mtu < FDDI_K_SNAP_HLEN) || (new_mtu > FDDI_K_SNAP_DLEN)) in fddi_change_mtu()
173 dev->mtu = new_mtu; in fddi_change_mtu()
/net/ethernet/
Deth.c334 int eth_change_mtu(struct net_device *dev, int new_mtu) in eth_change_mtu() argument
336 if (new_mtu < 68 || new_mtu > ETH_DATA_LEN) in eth_change_mtu()
338 dev->mtu = new_mtu; in eth_change_mtu()
/net/bridge/
Dbr_device.c153 static int br_change_mtu(struct net_device *dev, int new_mtu) in br_change_mtu() argument
156 if (new_mtu < 68 || new_mtu > br_min_mtu(br)) in br_change_mtu()
159 dev->mtu = new_mtu; in br_change_mtu()
163 dst_metric_set(&br->fake_rtable.dst, RTAX_MTU, new_mtu); in br_change_mtu()
/net/phonet/
Dpep-gprs.c221 static int gprs_set_mtu(struct net_device *dev, int new_mtu) in gprs_set_mtu() argument
223 if ((new_mtu < 576) || (new_mtu > (PHONET_MAX_MTU - 11))) in gprs_set_mtu()
226 dev->mtu = new_mtu; in gprs_set_mtu()
/net/openvswitch/
Dvport-internal_dev.c98 static int internal_dev_change_mtu(struct net_device *netdev, int new_mtu) in internal_dev_change_mtu() argument
100 if (new_mtu < 68) in internal_dev_change_mtu()
103 netdev->mtu = new_mtu; in internal_dev_change_mtu()
/net/sched/
Dsch_teql.c421 static int teql_master_mtu(struct net_device *dev, int new_mtu) in teql_master_mtu() argument
426 if (new_mtu < 68) in teql_master_mtu()
432 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu()
437 dev->mtu = new_mtu; in teql_master_mtu()
/net/batman-adv/
Dsoft-interface.c131 static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu) in batadv_interface_change_mtu() argument
134 if ((new_mtu < 68) || (new_mtu > batadv_hardif_min_mtu(dev))) in batadv_interface_change_mtu()
137 dev->mtu = new_mtu; in batadv_interface_change_mtu()
/net/ipv4/
Dip_vti.c549 static int vti_tunnel_change_mtu(struct net_device *dev, int new_mtu) in vti_tunnel_change_mtu() argument
551 if (new_mtu < 68 || new_mtu > 0xFFF8) in vti_tunnel_change_mtu()
553 dev->mtu = new_mtu; in vti_tunnel_change_mtu()
Dip_tunnel.c819 int ip_tunnel_change_mtu(struct net_device *dev, int new_mtu) in ip_tunnel_change_mtu() argument
824 if (new_mtu < 68 || in ip_tunnel_change_mtu()
825 new_mtu > 0xFFF8 - dev->hard_header_len - t_hlen) in ip_tunnel_change_mtu()
827 dev->mtu = new_mtu; in ip_tunnel_change_mtu()
/net/8021q/
Dvlan_dev.c195 static int vlan_dev_change_mtu(struct net_device *dev, int new_mtu) in vlan_dev_change_mtu() argument
200 if (vlan_dev_priv(dev)->real_dev->mtu < new_mtu) in vlan_dev_change_mtu()
203 dev->mtu = new_mtu; in vlan_dev_change_mtu()
/net/mac80211/
Diface.c153 static int ieee80211_change_mtu(struct net_device *dev, int new_mtu) in ieee80211_change_mtu() argument
155 if (new_mtu < 256 || new_mtu > IEEE80211_MAX_DATA_LEN) in ieee80211_change_mtu()
158 dev->mtu = new_mtu; in ieee80211_change_mtu()
/net/ipv6/
Dsit.c1157 static int ipip6_tunnel_change_mtu(struct net_device *dev, int new_mtu) in ipip6_tunnel_change_mtu() argument
1159 if (new_mtu < IPV6_MIN_MTU || new_mtu > 0xFFF8 - sizeof(struct iphdr)) in ipip6_tunnel_change_mtu()
1161 dev->mtu = new_mtu; in ipip6_tunnel_change_mtu()
Dip6_gre.c1177 static int ip6gre_tunnel_change_mtu(struct net_device *dev, int new_mtu) in ip6gre_tunnel_change_mtu() argument
1180 if (new_mtu < 68 || in ip6gre_tunnel_change_mtu()
1181 new_mtu > 0xFFF8 - dev->hard_header_len - tunnel->hlen) in ip6gre_tunnel_change_mtu()
1183 dev->mtu = new_mtu; in ip6gre_tunnel_change_mtu()
Dip6_tunnel.c1427 ip6_tnl_change_mtu(struct net_device *dev, int new_mtu) in ip6_tnl_change_mtu() argument
1429 if (new_mtu < IPV6_MIN_MTU) { in ip6_tnl_change_mtu()
1432 dev->mtu = new_mtu; in ip6_tnl_change_mtu()
/net/atm/
Dlec.c546 static int lec_change_mtu(struct net_device *dev, int new_mtu) in lec_change_mtu() argument
548 if ((new_mtu < 68) || (new_mtu > 18190)) in lec_change_mtu()
550 dev->mtu = new_mtu; in lec_change_mtu()
/net/core/
Dnet-sysfs.c244 static int change_mtu(struct net_device *net, unsigned long new_mtu) in change_mtu() argument
246 return dev_set_mtu(net, (int) new_mtu); in change_mtu()
Ddev.c4774 int dev_set_mtu(struct net_device *dev, int new_mtu) in dev_set_mtu() argument
4779 if (new_mtu == dev->mtu) in dev_set_mtu()
4783 if (new_mtu < 0) in dev_set_mtu()
4791 err = ops->ndo_change_mtu(dev, new_mtu); in dev_set_mtu()
4793 dev->mtu = new_mtu; in dev_set_mtu()