/net/802/ |
D | hippi.c | 146 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()
|
D | fddi.c | 169 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/ |
D | eth.c | 334 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/ |
D | br_device.c | 153 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/ |
D | pep-gprs.c | 221 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/ |
D | vport-internal_dev.c | 98 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/ |
D | sch_teql.c | 421 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/ |
D | soft-interface.c | 131 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/ |
D | ip_vti.c | 549 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()
|
D | ip_tunnel.c | 819 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/ |
D | vlan_dev.c | 195 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/ |
D | iface.c | 153 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/ |
D | sit.c | 1157 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()
|
D | ip6_gre.c | 1177 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()
|
D | ip6_tunnel.c | 1427 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/ |
D | lec.c | 546 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/ |
D | net-sysfs.c | 244 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()
|
D | dev.c | 4774 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()
|