/drivers/net/can/ |
H A D | vcan.c | 134 static int vcan_change_mtu(struct net_device *dev, int new_mtu) argument 140 if (new_mtu != CAN_MTU && new_mtu != CANFD_MTU) 143 dev->mtu = new_mtu;
|
/drivers/net/ |
H A D | nlmon.c | 30 static int nlmon_is_valid_mtu(int new_mtu) argument 36 return new_mtu >= (int) sizeof(struct nlmsghdr); 39 static int nlmon_change_mtu(struct net_device *dev, int new_mtu) argument 41 if (!nlmon_is_valid_mtu(new_mtu)) 44 dev->mtu = new_mtu;
|
H A D | ntb_netdev.c | 224 static int ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu) argument 230 if (new_mtu > ntb_transport_max_size(dev->qp) - ETH_HLEN) 234 ndev->mtu = new_mtu; 241 if (ndev->mtu < new_mtu) { 248 skb = netdev_alloc_skb(ndev, new_mtu + ETH_HLEN); 255 new_mtu + ETH_HLEN); 263 ndev->mtu = new_mtu;
|
H A D | veth.c | 224 static int is_valid_veth_mtu(int new_mtu) argument 226 return new_mtu >= MIN_MTU && new_mtu <= MAX_MTU; 229 static int veth_change_mtu(struct net_device *dev, int new_mtu) argument 231 if (!is_valid_veth_mtu(new_mtu)) 233 dev->mtu = new_mtu;
|
/drivers/net/wireless/ath/wil6210/ |
H A D | netdev.c | 40 static int wil_change_mtu(struct net_device *ndev, int new_mtu) argument 44 if (new_mtu < 68 || new_mtu > (TX_BUF_LEN - ETH_HLEN)) { 45 wil_err(wil, "invalid MTU %d\n", new_mtu); 49 wil_dbg_misc(wil, "change MTU %d -> %d\n", ndev->mtu, new_mtu); 50 ndev->mtu = new_mtu;
|
/drivers/net/wireless/ipw2x00/ |
H A D | libipw_module.c | 134 int libipw_change_mtu(struct net_device *dev, int new_mtu) argument 136 if ((new_mtu < 68) || (new_mtu > LIBIPW_DATA_LEN)) 138 dev->mtu = new_mtu;
|
/drivers/misc/sgi-xp/ |
H A D | xpnet.c | 334 xpnet_dev_change_mtu(struct net_device *dev, int new_mtu) argument 337 if ((new_mtu < 68) || (new_mtu > XPNET_MAX_MTU)) { 339 "between 68 and %ld\n", dev->name, new_mtu, 344 dev->mtu = new_mtu; 345 dev_dbg(xpnet, "ifconfig %s mtu set to %d\n", dev->name, new_mtu);
|
/drivers/net/wan/ |
H A D | hdlc.c | 49 int hdlc_change_mtu(struct net_device *dev, int new_mtu) argument 51 if ((new_mtu < 68) || (new_mtu > HDLC_MAX_MTU)) 53 dev->mtu = new_mtu;
|
H A D | dlci.c | 267 static int dlci_change_mtu(struct net_device *dev, int new_mtu) argument 271 return dev_set_mtu(dlp->slave, new_mtu);
|
/drivers/net/usb/ |
H A D | cdc-phonet.c | 279 static int usbpn_set_mtu(struct net_device *dev, int new_mtu) argument 281 if ((new_mtu < PHONET_MIN_MTU) || (new_mtu > PHONET_MAX_MTU)) 284 dev->mtu = new_mtu;
|
H A D | asix_devices.c | 751 static int ax88178_change_mtu(struct net_device *net, int new_mtu) argument 754 int ll_mtu = new_mtu + net->hard_header_len + 4; 756 netdev_dbg(dev->net, "ax88178_change_mtu() new_mtu=%d\n", new_mtu); 758 if (new_mtu <= 0 || ll_mtu > 16384) 764 net->mtu = new_mtu;
|
H A D | sierra_net.c | 168 static int sierra_net_change_mtu(struct net_device *net, int new_mtu); 626 static int sierra_net_change_mtu(struct net_device *net, int new_mtu) argument 628 if (new_mtu > SIERRA_NET_MAX_SUPPORTED_MTU) 631 return usbnet_change_mtu(net, new_mtu);
|
/drivers/net/wimax/i2400m/ |
H A D | netdev.c | 398 int i2400m_change_mtu(struct net_device *net_dev, int new_mtu) argument 404 if (new_mtu >= I2400M_MAX_MTU) { 406 new_mtu, I2400M_MAX_MTU); 409 net_dev->mtu = new_mtu;
|
/drivers/staging/octeon/ |
H A D | ethernet.c | 264 * @new_mtu: The new MTU 268 static int cvm_oct_common_change_mtu(struct net_device *dev, int new_mtu) argument 283 if ((new_mtu + 14 + 4 + vlan_bytes < 64) 284 || (new_mtu + 14 + 4 + vlan_bytes > 65392)) { 289 dev->mtu = new_mtu; 295 int max_packet = new_mtu + 14 + 4 + vlan_bytes;
|
/drivers/staging/wlan-ng/ |
H A D | p80211netdev.c | 672 static int wlan_change_mtu(netdevice_t *dev, int new_mtu) argument 676 if ((new_mtu < 68) || (new_mtu > (2312 - 20 - 8))) 679 dev->mtu = new_mtu;
|
/drivers/usb/gadget/function/ |
H A D | f_phonet.c | 264 static int pn_net_mtu(struct net_device *dev, int new_mtu) argument 266 if ((new_mtu < PHONET_MIN_MTU) || (new_mtu > PHONET_MAX_MTU)) 268 dev->mtu = new_mtu;
|
/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet_main.c | 1006 * @new_mtu: New mtu value to be applied 1014 static int axienet_change_mtu(struct net_device *ndev, int new_mtu) argument 1021 if ((new_mtu > XAE_JUMBO_MTU) || (new_mtu < 64)) 1023 ndev->mtu = new_mtu; 1025 if ((new_mtu > XAE_MTU) || (new_mtu < 64)) 1027 ndev->mtu = new_mtu;
|
/drivers/infiniband/hw/amso1100/ |
H A D | c2_provider.c | 697 static int c2_pseudo_change_mtu(struct net_device *netdev, int new_mtu) argument 699 if (new_mtu < ETH_ZLEN || new_mtu > ETH_JUMBO_MTU) 702 netdev->mtu = new_mtu;
|
/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 990 static int emac_resize_rx_ring(struct emac_instance *dev, int new_mtu) argument 992 int rx_sync_size = emac_rx_sync_size(new_mtu); 993 int rx_skb_size = emac_rx_skb_size(new_mtu); 1045 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) || 1048 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) ^ 1056 dev->ndev->mtu = new_mtu; 1060 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); 1074 static int emac_change_mtu(struct net_device *ndev, int new_mtu) argument 1079 if (new_mtu < EMAC_MIN_MTU || new_mtu > de [all...] |
/drivers/net/ethernet/qualcomm/ |
H A D | qca_spi.c | 786 qcaspi_netdev_change_mtu(struct net_device *dev, int new_mtu) argument 788 if ((new_mtu < QCAFRM_ETHMINMTU) || (new_mtu > QCAFRM_ETHMAXMTU)) 791 dev->mtu = new_mtu;
|
/drivers/net/ethernet/toshiba/ |
H A D | ps3_gelic_net.h | 376 int gelic_net_change_mtu(struct net_device *netdev, int new_mtu);
|
/drivers/net/wireless/hostap/ |
H A D | hostap_main.c | 768 static int prism2_change_mtu(struct net_device *dev, int new_mtu) argument 770 if (new_mtu < PRISM2_MIN_MTU || new_mtu > PRISM2_MAX_MTU) 773 dev->mtu = new_mtu;
|
/drivers/net/wireless/orinoco/ |
H A D | orinoco.h | 211 int orinoco_change_mtu(struct net_device *dev, int new_mtu);
|
/drivers/net/ethernet/icplus/ |
H A D | ipg.c | 2087 static int ipg_nic_change_mtu(struct net_device *dev, int new_mtu) argument 2103 if (new_mtu < 68 || new_mtu > 10240) 2110 dev->mtu = new_mtu; 2112 sp->max_rxframe_size = new_mtu; 2114 sp->rxfrag_size = new_mtu; 2120 if (new_mtu > 0x0600)
|
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 1648 static int pasemi_mac_change_mtu(struct net_device *dev, int new_mtu) argument 1656 if (new_mtu < PE_MIN_MTU || new_mtu > PE_MAX_MTU) 1680 if (new_mtu > 1500 && !mac->num_cs) { 1693 reg |= PAS_MAC_CFG_MACCFG_MAXF(new_mtu + ETH_HLEN + 4); 1696 dev->mtu = new_mtu; 1698 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128;
|