new_mtu 475 arch/xtensa/platforms/iss/network.c static int iss_net_change_mtu(struct net_device *dev, int new_mtu) new_mtu 228 drivers/infiniband/ulp/ipoib/ipoib_main.c static int ipoib_change_mtu(struct net_device *dev, int new_mtu) new_mtu 235 drivers/infiniband/ulp/ipoib/ipoib_main.c if (new_mtu > ipoib_cm_max_mtu(dev)) new_mtu 238 drivers/infiniband/ulp/ipoib/ipoib_main.c if (new_mtu > priv->mcast_mtu) new_mtu 242 drivers/infiniband/ulp/ipoib/ipoib_main.c dev->mtu = new_mtu; new_mtu 246 drivers/infiniband/ulp/ipoib/ipoib_main.c if (new_mtu < (ETH_MIN_MTU + IPOIB_ENCAP_LEN) || new_mtu 247 drivers/infiniband/ulp/ipoib/ipoib_main.c new_mtu > IPOIB_UD_MTU(priv->max_ib_mtu)) new_mtu 250 drivers/infiniband/ulp/ipoib/ipoib_main.c priv->admin_mtu = new_mtu; new_mtu 256 drivers/infiniband/ulp/ipoib/ipoib_main.c new_mtu = min(priv->mcast_mtu, priv->admin_mtu); new_mtu 264 drivers/infiniband/ulp/ipoib/ipoib_main.c ret = priv->rn_ops->ndo_change_mtu(dev, new_mtu); new_mtu 269 drivers/infiniband/ulp/ipoib/ipoib_main.c dev->mtu = new_mtu; new_mtu 3711 drivers/net/bonding/bond_main.c static int bond_change_mtu(struct net_device *bond_dev, int new_mtu) new_mtu 3718 drivers/net/bonding/bond_main.c netdev_dbg(bond_dev, "bond=%p, new_mtu=%d\n", bond, new_mtu); new_mtu 3724 drivers/net/bonding/bond_main.c res = dev_set_mtu(slave->dev, new_mtu); new_mtu 3736 drivers/net/bonding/bond_main.c res, new_mtu); new_mtu 3741 drivers/net/bonding/bond_main.c bond_dev->mtu = new_mtu; new_mtu 768 drivers/net/can/dev.c int can_change_mtu(struct net_device *dev, int new_mtu) new_mtu 777 drivers/net/can/dev.c switch (new_mtu) { new_mtu 799 drivers/net/can/dev.c dev->mtu = new_mtu; new_mtu 429 drivers/net/can/slcan.c static int slcan_change_mtu(struct net_device *dev, int new_mtu) new_mtu 130 drivers/net/can/vcan.c static int vcan_change_mtu(struct net_device *dev, int new_mtu) new_mtu 136 drivers/net/can/vcan.c if (new_mtu != CAN_MTU && new_mtu != CANFD_MTU) new_mtu 139 drivers/net/can/vcan.c dev->mtu = new_mtu; new_mtu 119 drivers/net/can/vxcan.c static int vxcan_change_mtu(struct net_device *dev, int new_mtu) new_mtu 125 drivers/net/can/vxcan.c if (new_mtu != CAN_MTU && new_mtu != CANFD_MTU) new_mtu 128 drivers/net/can/vxcan.c dev->mtu = new_mtu; new_mtu 3859 drivers/net/ethernet/agere/et131x.c static int et131x_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 3866 drivers/net/ethernet/agere/et131x.c netdev->mtu = new_mtu; new_mtu 3871 drivers/net/ethernet/agere/et131x.c adapter->registry_jumbo_packet = new_mtu + 14; new_mtu 2544 drivers/net/ethernet/alteon/acenic.c static int ace_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2549 drivers/net/ethernet/alteon/acenic.c writel(new_mtu + ETH_HLEN + 4, ®s->IfMtu); new_mtu 2550 drivers/net/ethernet/alteon/acenic.c dev->mtu = new_mtu; new_mtu 2552 drivers/net/ethernet/alteon/acenic.c if (new_mtu > ACE_STD_MTU) { new_mtu 782 drivers/net/ethernet/alteon/acenic.h static int ace_change_mtu(struct net_device *dev, int new_mtu); new_mtu 995 drivers/net/ethernet/altera/altera_tse_main.c static int tse_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1002 drivers/net/ethernet/altera/altera_tse_main.c dev->mtu = new_mtu; new_mtu 108 drivers/net/ethernet/amazon/ena/ena_netdev.c static int ena_change_mtu(struct net_device *dev, int new_mtu) new_mtu 113 drivers/net/ethernet/amazon/ena/ena_netdev.c ret = ena_com_set_dev_mtu(adapter->ena_dev, new_mtu); new_mtu 115 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_dbg(adapter, drv, dev, "set MTU to %d\n", new_mtu); new_mtu 116 drivers/net/ethernet/amazon/ena/ena_netdev.c update_rx_ring_mtu(adapter, new_mtu); new_mtu 117 drivers/net/ethernet/amazon/ena/ena_netdev.c dev->mtu = new_mtu; new_mtu 120 drivers/net/ethernet/amazon/ena/ena_netdev.c new_mtu); new_mtu 1519 drivers/net/ethernet/amd/amd8111e.c static int amd8111e_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1528 drivers/net/ethernet/amd/amd8111e.c dev->mtu = new_mtu; new_mtu 1537 drivers/net/ethernet/amd/amd8111e.c dev->mtu = new_mtu; new_mtu 1518 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1526 drivers/net/ethernet/apm/xgene/xgene_enet_main.c frame_size = (new_mtu > ETH_DATA_LEN) ? (new_mtu + 18) : 0x600; new_mtu 1529 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->mtu = new_mtu; new_mtu 99 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 102 drivers/net/ethernet/aquantia/atlantic/aq_main.c int err = aq_nic_set_mtu(aq_nic, new_mtu + ETH_HLEN); new_mtu 106 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev->mtu = new_mtu; new_mtu 671 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_mtu(struct aq_nic_s *self, int new_mtu) new_mtu 673 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->aq_nic_cfg.mtu = new_mtu; new_mtu 137 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_mtu(struct aq_nic_s *self, int new_mtu); new_mtu 1606 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1610 drivers/net/ethernet/atheros/ag71xx.c ndev->mtu = new_mtu; new_mtu 537 drivers/net/ethernet/atheros/atl1c/atl1c_main.c static int atl1c_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 545 drivers/net/ethernet/atheros/atl1c/atl1c_main.c netdev->mtu = new_mtu; new_mtu 546 drivers/net/ethernet/atheros/atl1c/atl1c_main.c adapter->hw.max_frame_size = new_mtu; new_mtu 427 drivers/net/ethernet/atheros/atl1e/atl1e_main.c static int atl1e_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 430 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 436 drivers/net/ethernet/atheros/atl1e/atl1e_main.c netdev->mtu = new_mtu; new_mtu 437 drivers/net/ethernet/atheros/atl1e/atl1e_main.c adapter->hw.max_frame_size = new_mtu; new_mtu 2680 drivers/net/ethernet/atheros/atlx/atl1.c static int atl1_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2683 drivers/net/ethernet/atheros/atlx/atl1.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 2690 drivers/net/ethernet/atheros/atlx/atl1.c netdev->mtu = new_mtu; new_mtu 908 drivers/net/ethernet/atheros/atlx/atl2.c static int atl2_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 914 drivers/net/ethernet/atheros/atlx/atl2.c netdev->mtu = new_mtu; new_mtu 915 drivers/net/ethernet/atheros/atlx/atl2.c hw->max_frame_size = new_mtu; new_mtu 916 drivers/net/ethernet/atheros/atlx/atl2.c ATL2_WRITE_REG(hw, REG_MTU, new_mtu + ETH_HLEN + new_mtu 1063 drivers/net/ethernet/broadcom/b44.c static int b44_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1071 drivers/net/ethernet/broadcom/b44.c dev->mtu = new_mtu; new_mtu 1077 drivers/net/ethernet/broadcom/b44.c dev->mtu = new_mtu; new_mtu 1606 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1609 drivers/net/ethernet/broadcom/bcm63xx_enet.c int actual_mtu = new_mtu; new_mtu 1632 drivers/net/ethernet/broadcom/bcm63xx_enet.c dev->mtu = new_mtu; new_mtu 7919 drivers/net/ethernet/broadcom/bnx2.c bnx2_change_mtu(struct net_device *dev, int new_mtu) new_mtu 7923 drivers/net/ethernet/broadcom/bnx2.c dev->mtu = new_mtu; new_mtu 4869 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int bnx2x_change_mtu(struct net_device *dev, int new_mtu) new_mtu 4887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c dev->mtu = new_mtu; new_mtu 4889 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (!bnx2x_mtu_allows_gro(new_mtu)) new_mtu 597 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h int bnx2x_change_mtu(struct net_device *dev, int new_mtu); new_mtu 10900 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_change_mtu(struct net_device *dev, int new_mtu) new_mtu 10907 drivers/net/ethernet/broadcom/bnxt/bnxt.c dev->mtu = new_mtu; new_mtu 14230 drivers/net/ethernet/broadcom/tg3.c int new_mtu) new_mtu 14232 drivers/net/ethernet/broadcom/tg3.c dev->mtu = new_mtu; new_mtu 14234 drivers/net/ethernet/broadcom/tg3.c if (new_mtu > ETH_DATA_LEN) { new_mtu 14250 drivers/net/ethernet/broadcom/tg3.c static int tg3_change_mtu(struct net_device *dev, int new_mtu) new_mtu 14260 drivers/net/ethernet/broadcom/tg3.c tg3_set_mtu(dev, tp, new_mtu); new_mtu 14268 drivers/net/ethernet/broadcom/tg3.c tg3_set_mtu(dev, tp, new_mtu); new_mtu 3281 drivers/net/ethernet/brocade/bna/bnad.c bnad_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 3290 drivers/net/ethernet/brocade/bna/bnad.c netdev->mtu = new_mtu; new_mtu 3293 drivers/net/ethernet/brocade/bna/bnad.c new_frame = BNAD_FRAME_SIZE(new_mtu); new_mtu 2494 drivers/net/ethernet/cadence/macb_main.c static int macb_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2499 drivers/net/ethernet/cadence/macb_main.c dev->mtu = new_mtu; new_mtu 1351 drivers/net/ethernet/calxeda/xgmac.c static int xgmac_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1359 drivers/net/ethernet/calxeda/xgmac.c dev->mtu = new_mtu; new_mtu 1204 drivers/net/ethernet/cavium/liquidio/lio_core.c int liquidio_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1227 drivers/net/ethernet/cavium/liquidio/lio_core.c ncmd->s.param1 = new_mtu; new_mtu 1254 drivers/net/ethernet/cavium/liquidio/lio_core.c netdev->mtu = new_mtu; new_mtu 1255 drivers/net/ethernet/cavium/liquidio/lio_core.c lio->mtu = new_mtu; new_mtu 39 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c static int lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu); new_mtu 199 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 211 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c rep_cfg.rep_mtu.mtu = cpu_to_be32(new_mtu); new_mtu 221 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->mtu = new_mtu; new_mtu 249 drivers/net/ethernet/cavium/liquidio/octeon_network.h int liquidio_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 643 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c static int octeon_mgmt_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 646 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c int max_packet = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 648 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c netdev->mtu = new_mtu; new_mtu 1584 drivers/net/ethernet/cavium/thunder/nicvf_main.c static int nicvf_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1592 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (nic->xdp_prog && new_mtu > MAX_XDP_MTU) { new_mtu 1598 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev->mtu = new_mtu; new_mtu 1603 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (nicvf_update_hw_max_frs(nic, new_mtu)) { new_mtu 826 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static int t1_change_mtu(struct net_device *dev, int new_mtu) new_mtu 834 drivers/net/ethernet/chelsio/cxgb/cxgb2.c if ((ret = mac->ops->set_mtu(mac, new_mtu))) new_mtu 836 drivers/net/ethernet/chelsio/cxgb/cxgb2.c dev->mtu = new_mtu; new_mtu 2557 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static int cxgb_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2563 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if ((ret = t3_mac_set_mtu(&pi->mac, new_mtu))) new_mtu 2565 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c dev->mtu = new_mtu; new_mtu 2737 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static int cxgb_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2742 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_rxmode(pi->adapter, pi->adapter->pf, pi->viid, new_mtu, -1, new_mtu 2745 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->mtu = new_mtu; new_mtu 1166 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c static int cxgb4vf_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1171 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_set_rxmode(pi->adapter, pi->viid, new_mtu, new_mtu 1174 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c dev->mtu = new_mtu; new_mtu 2051 drivers/net/ethernet/cisco/enic/enic_main.c static int _enic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2063 drivers/net/ethernet/cisco/enic/enic_main.c netdev->mtu = new_mtu; new_mtu 2074 drivers/net/ethernet/cisco/enic/enic_main.c static int enic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2086 drivers/net/ethernet/cisco/enic/enic_main.c return _enic_change_mtu(netdev, new_mtu); new_mtu 2093 drivers/net/ethernet/cisco/enic/enic_main.c int new_mtu = vnic_dev_mtu(enic->vdev); new_mtu 2096 drivers/net/ethernet/cisco/enic/enic_main.c (void)_enic_change_mtu(netdev, new_mtu); new_mtu 1973 drivers/net/ethernet/cortina/gemini.c static int gmac_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1975 drivers/net/ethernet/cortina/gemini.c int max_len = gmac_pick_rx_max_len(new_mtu); new_mtu 1982 drivers/net/ethernet/cortina/gemini.c netdev->mtu = new_mtu; new_mtu 427 drivers/net/ethernet/dlink/sundance.c static int change_mtu(struct net_device *dev, int new_mtu); new_mtu 718 drivers/net/ethernet/dlink/sundance.c static int change_mtu(struct net_device *dev, int new_mtu) new_mtu 722 drivers/net/ethernet/dlink/sundance.c dev->mtu = new_mtu; new_mtu 867 drivers/net/ethernet/ethoc.c static int ethoc_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1718 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int dpaa2_eth_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1726 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (!xdp_mtu_valid(priv, new_mtu)) new_mtu 1729 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c err = set_rx_mfl(priv, new_mtu, true); new_mtu 1734 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dev->mtu = new_mtu; new_mtu 2050 drivers/net/ethernet/freescale/gianfar.c static int gfar_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2060 drivers/net/ethernet/freescale/gianfar.c dev->mtu = new_mtu; new_mtu 515 drivers/net/ethernet/hisilicon/hns/hnae.h int (*set_mtu)(struct hnae_handle *handle, int new_mtu); new_mtu 297 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c static int hns_ae_set_mtu(struct hnae_handle *handle, int new_mtu) new_mtu 306 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c if (new_mtu <= BD_SIZE_2048_MAX_MTU) new_mtu 314 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ret = hns_mac_set_mtu(mac_cb, new_mtu, rx_buf_size); new_mtu 483 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_set_mtu(struct hns_mac_cb *mac_cb, u32 new_mtu, u32 buf_size) new_mtu 486 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 445 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_set_mtu(struct hns_mac_cb *mac_cb, u32 new_mtu, u32 buf_size); new_mtu 1720 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1728 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (new_mtu < 68) new_mtu 1732 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (new_mtu == ndev->mtu) new_mtu 1745 drivers/net/ethernet/hisilicon/hns/hns_enet.c new_mtu > BD_SIZE_2048_MAX_MTU) { new_mtu 1761 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = h->dev->ops->set_mtu(h, new_mtu); new_mtu 1769 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->mtu = new_mtu; new_mtu 402 drivers/net/ethernet/hisilicon/hns3/hnae3.h int (*set_mtu)(struct hnae3_handle *handle, int new_mtu); new_mtu 1652 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static int hns3_nic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1664 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c "change mtu from %u to %d\n", netdev->mtu, new_mtu); new_mtu 1666 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = h->ae_algo->ops->set_mtu(h, new_mtu); new_mtu 1671 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev->mtu = new_mtu; new_mtu 8400 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c static int hclge_set_mtu(struct hnae3_handle *handle, int new_mtu) new_mtu 8404 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c return hclge_set_vport_mtu(vport, new_mtu); new_mtu 8407 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int hclge_set_vport_mtu(struct hclge_vport *vport, int new_mtu) new_mtu 8412 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c max_frm_size = new_mtu + ETH_HLEN + ETH_FCS_LEN + 2 * VLAN_HLEN; new_mtu 972 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h int hclge_set_vport_mtu(struct hclge_vport *vport, int new_mtu); new_mtu 1341 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c static int hclgevf_set_mtu(struct hnae3_handle *handle, int new_mtu) new_mtu 1345 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c return hclgevf_send_mbx_msg(hdev, HCLGE_MBX_SET_MTU, 0, (u8 *)&new_mtu, new_mtu 1346 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c sizeof(new_mtu), true, NULL, 0); new_mtu 518 drivers/net/ethernet/huawei/hinic/hinic_main.c static int hinic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 523 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "set_mtu = %d\n", new_mtu); new_mtu 525 drivers/net/ethernet/huawei/hinic/hinic_main.c err = hinic_port_set_mtu(nic_dev, new_mtu); new_mtu 529 drivers/net/ethernet/huawei/hinic/hinic_main.c netdev->mtu = new_mtu; new_mtu 141 drivers/net/ethernet/huawei/hinic/hinic_port.c int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu) new_mtu 151 drivers/net/ethernet/huawei/hinic/hinic_port.c if (new_mtu < HINIC_MIN_MTU_SIZE) { new_mtu 156 drivers/net/ethernet/huawei/hinic/hinic_port.c max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 163 drivers/net/ethernet/huawei/hinic/hinic_port.c port_mtu_cmd.mtu = new_mtu; new_mtu 517 drivers/net/ethernet/huawei/hinic/hinic_port.h int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu); new_mtu 1032 drivers/net/ethernet/ibm/emac/core.c static int emac_resize_rx_ring(struct emac_instance *dev, int new_mtu) new_mtu 1034 drivers/net/ethernet/ibm/emac/core.c int rx_sync_size = emac_rx_sync_size(new_mtu); new_mtu 1035 drivers/net/ethernet/ibm/emac/core.c int rx_skb_size = emac_rx_skb_size(new_mtu); new_mtu 1089 drivers/net/ethernet/ibm/emac/core.c mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) || new_mtu 1092 drivers/net/ethernet/ibm/emac/core.c mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) ^ new_mtu 1100 drivers/net/ethernet/ibm/emac/core.c dev->ndev->mtu = new_mtu; new_mtu 1104 drivers/net/ethernet/ibm/emac/core.c mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); new_mtu 1118 drivers/net/ethernet/ibm/emac/core.c static int emac_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1123 drivers/net/ethernet/ibm/emac/core.c DBG(dev, "change_mtu(%d)" NL, new_mtu); new_mtu 1127 drivers/net/ethernet/ibm/emac/core.c if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu)) new_mtu 1128 drivers/net/ethernet/ibm/emac/core.c ret = emac_resize_rx_ring(dev, new_mtu); new_mtu 1132 drivers/net/ethernet/ibm/emac/core.c ndev->mtu = new_mtu; new_mtu 1133 drivers/net/ethernet/ibm/emac/core.c dev->rx_skb_size = emac_rx_skb_size(new_mtu); new_mtu 1134 drivers/net/ethernet/ibm/emac/core.c dev->rx_sync_size = emac_rx_sync_size(new_mtu); new_mtu 1466 drivers/net/ethernet/ibm/ibmveth.c static int ibmveth_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1470 drivers/net/ethernet/ibm/ibmveth.c int new_mtu_oh = new_mtu + IBMVETH_BUFF_OH; new_mtu 1495 drivers/net/ethernet/ibm/ibmveth.c dev->mtu = new_mtu; new_mtu 2348 drivers/net/ethernet/ibm/ibmvnic.c static int ibmvnic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2352 drivers/net/ethernet/ibm/ibmvnic.c adapter->desired.mtu = new_mtu + ETH_HLEN; new_mtu 109 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 3516 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 3520 drivers/net/ethernet/intel/e1000/e1000_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 3569 drivers/net/ethernet/intel/e1000/e1000_main.c netdev->name, netdev->mtu, new_mtu); new_mtu 3570 drivers/net/ethernet/intel/e1000/e1000_main.c netdev->mtu = new_mtu; new_mtu 6018 drivers/net/ethernet/intel/e1000e/netdev.c static int e1000_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 6021 drivers/net/ethernet/intel/e1000e/netdev.c int max_frame = new_mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; new_mtu 6024 drivers/net/ethernet/intel/e1000e/netdev.c if ((new_mtu > ETH_DATA_LEN) && new_mtu 6033 drivers/net/ethernet/intel/e1000e/netdev.c (new_mtu > ETH_DATA_LEN)) { new_mtu 6042 drivers/net/ethernet/intel/e1000e/netdev.c e_info("changing MTU from %d to %d\n", netdev->mtu, new_mtu); new_mtu 6043 drivers/net/ethernet/intel/e1000e/netdev.c netdev->mtu = new_mtu; new_mtu 2635 drivers/net/ethernet/intel/i40e/i40e_main.c static int i40e_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2642 drivers/net/ethernet/intel/i40e/i40e_main.c int frame_size = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 2649 drivers/net/ethernet/intel/i40e/i40e_main.c netdev->mtu, new_mtu); new_mtu 2650 drivers/net/ethernet/intel/i40e/i40e_main.c netdev->mtu = new_mtu; new_mtu 3263 drivers/net/ethernet/intel/iavf/iavf_main.c static int iavf_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 3267 drivers/net/ethernet/intel/iavf/iavf_main.c netdev->mtu = new_mtu; new_mtu 4348 drivers/net/ethernet/intel/ice/ice_main.c static int ice_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 4355 drivers/net/ethernet/intel/ice/ice_main.c if (new_mtu == netdev->mtu) { new_mtu 4360 drivers/net/ethernet/intel/ice/ice_main.c if (new_mtu < netdev->min_mtu) { new_mtu 4364 drivers/net/ethernet/intel/ice/ice_main.c } else if (new_mtu > netdev->max_mtu) { new_mtu 4385 drivers/net/ethernet/intel/ice/ice_main.c netdev->mtu = new_mtu; new_mtu 4404 drivers/net/ethernet/intel/ice/ice_main.c netdev_info(netdev, "changed MTU to %d\n", new_mtu); new_mtu 6225 drivers/net/ethernet/intel/igb/igb_main.c static int igb_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 6229 drivers/net/ethernet/intel/igb/igb_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 6245 drivers/net/ethernet/intel/igb/igb_main.c netdev->mtu, new_mtu); new_mtu 6246 drivers/net/ethernet/intel/igb/igb_main.c netdev->mtu = new_mtu; new_mtu 2403 drivers/net/ethernet/intel/igbvf/netdev.c static int igbvf_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2406 drivers/net/ethernet/intel/igbvf/netdev.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 2441 drivers/net/ethernet/intel/igbvf/netdev.c netdev->mtu, new_mtu); new_mtu 2442 drivers/net/ethernet/intel/igbvf/netdev.c netdev->mtu = new_mtu; new_mtu 2191 drivers/net/ethernet/intel/igc/igc_main.c static int igc_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2193 drivers/net/ethernet/intel/igc/igc_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; new_mtu 2211 drivers/net/ethernet/intel/igc/igc_main.c netdev->mtu, new_mtu); new_mtu 2212 drivers/net/ethernet/intel/igc/igc_main.c netdev->mtu = new_mtu; new_mtu 64 drivers/net/ethernet/intel/ixgb/ixgb_main.c static int ixgb_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 1569 drivers/net/ethernet/intel/ixgb/ixgb_main.c ixgb_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1572 drivers/net/ethernet/intel/ixgb/ixgb_main.c int max_frame = new_mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; new_mtu 1579 drivers/net/ethernet/intel/ixgb/ixgb_main.c netdev->mtu = new_mtu; new_mtu 6716 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 6721 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int new_frame_size = new_mtu + ETH_HLEN + ETH_FCS_LEN + new_mtu 6742 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c (new_mtu > ETH_DATA_LEN)) new_mtu 6745 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(probe, "changing MTU from %d to %d\n", netdev->mtu, new_mtu); new_mtu 6748 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev->mtu = new_mtu; new_mtu 4251 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c static int ixgbevf_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 4255 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 4272 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c netdev->mtu, new_mtu); new_mtu 4275 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c netdev->mtu = new_mtu; new_mtu 2326 drivers/net/ethernet/jme.c jme_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2330 drivers/net/ethernet/jme.c netdev->mtu = new_mtu; new_mtu 498 drivers/net/ethernet/lantiq_etop.c ltq_etop_change_mtu(struct net_device *dev, int new_mtu) new_mtu 503 drivers/net/ethernet/lantiq_etop.c dev->mtu = new_mtu; new_mtu 506 drivers/net/ethernet/lantiq_etop.c ltq_etop_w32((ETOP_PLEN_UNDER << 16) | new_mtu, LTQ_ETOP_IGPLEN); new_mtu 2554 drivers/net/ethernet/marvell/mv643xx_eth.c static int mv643xx_eth_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2558 drivers/net/ethernet/marvell/mv643xx_eth.c dev->mtu = new_mtu; new_mtu 2898 drivers/net/ethernet/marvell/skge.c static int skge_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2903 drivers/net/ethernet/marvell/skge.c dev->mtu = new_mtu; new_mtu 2909 drivers/net/ethernet/marvell/skge.c dev->mtu = new_mtu; new_mtu 2377 drivers/net/ethernet/marvell/sky2.c static int sky2_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2387 drivers/net/ethernet/marvell/sky2.c dev->mtu = new_mtu; new_mtu 2410 drivers/net/ethernet/marvell/sky2.c dev->mtu = new_mtu; new_mtu 2371 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static int mlx4_en_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2378 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu, new_mtu); new_mtu 2381 drivers/net/ethernet/mellanox/mlx4/en_netdev.c !mlx4_en_check_xdp_mtu(dev, new_mtu)) new_mtu 2384 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu = new_mtu; new_mtu 1130 drivers/net/ethernet/mellanox/mlx5/core/en.h int mlx5e_change_mtu(struct net_device *netdev, int new_mtu, new_mtu 3918 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int mlx5e_change_mtu(struct net_device *netdev, int new_mtu, new_mtu 3935 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_channels.params.sw_mtu = new_mtu; new_mtu 3940 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_mtu, mlx5e_xdp_max_mtu(params, NULL)); new_mtu 3967 drivers/net/ethernet/mellanox/mlx5/core/en_main.c params->sw_mtu = new_mtu; new_mtu 3985 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_change_nic_mtu(struct net_device *netdev, int new_mtu) new_mtu 3987 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return mlx5e_change_mtu(netdev, new_mtu, mlx5e_set_dev_port_mtu); new_mtu 1322 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c static int mlx5e_rep_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1324 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c return mlx5e_change_mtu(netdev, new_mtu, NULL); new_mtu 1327 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c static int mlx5e_uplink_rep_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1329 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c return mlx5e_change_mtu(netdev, new_mtu, mlx5e_set_dev_port_mtu); new_mtu 43 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c static int mlx5i_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 442 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c static int mlx5i_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 454 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c params->sw_mtu = new_mtu; new_mtu 460 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c new_channels.params.sw_mtu = new_mtu; new_mtu 142 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 266 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 271 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c netdev->mtu = new_mtu; new_mtu 4043 drivers/net/ethernet/mellanox/mlxsw/reg.h u16 new_mtu) new_mtu 4048 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_pmtu_admin_mtu_set(payload, new_mtu); new_mtu 5784 drivers/net/ethernet/micrel/ksz884x.c static int netdev_change_mtu(struct net_device *dev, int new_mtu) new_mtu 5799 drivers/net/ethernet/micrel/ksz884x.c hw_mtu = new_mtu + ETHERNET_HEADER_SIZE + 4; new_mtu 5809 drivers/net/ethernet/micrel/ksz884x.c dev->mtu = new_mtu; new_mtu 875 drivers/net/ethernet/microchip/lan743x_main.c static int lan743x_mac_set_mtu(struct lan743x_adapter *adapter, int new_mtu) new_mtu 895 drivers/net/ethernet/microchip/lan743x_main.c mac_rx |= (((new_mtu + ETH_HLEN + 4) << MAC_RX_MAX_SIZE_SHIFT_) & new_mtu 2564 drivers/net/ethernet/microchip/lan743x_main.c static int lan743x_netdev_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2569 drivers/net/ethernet/microchip/lan743x_main.c ret = lan743x_mac_set_mtu(adapter, new_mtu); new_mtu 2571 drivers/net/ethernet/microchip/lan743x_main.c netdev->mtu = new_mtu; new_mtu 3037 drivers/net/ethernet/myricom/myri10ge/myri10ge.c static int myri10ge_change_mtu(struct net_device *dev, int new_mtu) new_mtu 3041 drivers/net/ethernet/myricom/myri10ge/myri10ge.c netdev_info(dev, "changing mtu from %d to %d\n", dev->mtu, new_mtu); new_mtu 3046 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dev->mtu = new_mtu; new_mtu 3049 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dev->mtu = new_mtu; new_mtu 630 drivers/net/ethernet/natsemi/natsemi.c static int natsemi_change_mtu(struct net_device *dev, int new_mtu); new_mtu 2531 drivers/net/ethernet/natsemi/natsemi.c static int natsemi_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2533 drivers/net/ethernet/natsemi/natsemi.c dev->mtu = new_mtu; new_mtu 6632 drivers/net/ethernet/neterion/s2io.c static int s2io_change_mtu(struct net_device *dev, int new_mtu) new_mtu 6637 drivers/net/ethernet/neterion/s2io.c dev->mtu = new_mtu; new_mtu 6650 drivers/net/ethernet/neterion/s2io.c u64 val64 = new_mtu; new_mtu 4700 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_vpath_mtu_set(struct __vxge_hw_vpath_handle *vp, u32 new_mtu) new_mtu 4712 drivers/net/ethernet/neterion/vxge/vxge-config.c new_mtu += VXGE_HW_MAC_HEADER_MAX_SIZE; new_mtu 4714 drivers/net/ethernet/neterion/vxge/vxge-config.c if ((new_mtu < VXGE_HW_MIN_MTU) || (new_mtu > vpath->max_mtu)) new_mtu 4720 drivers/net/ethernet/neterion/vxge/vxge-config.c val64 |= VXGE_HW_RXMAC_VCFG0_RTS_MAX_FRM_LEN(new_mtu); new_mtu 4724 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath->vp_config->mtu = new_mtu - VXGE_HW_MAC_HEADER_MAX_SIZE; new_mtu 2009 drivers/net/ethernet/neterion/vxge/vxge-config.h u32 new_mtu); new_mtu 3058 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_change_mtu(struct net_device *dev, int new_mtu) new_mtu 3068 drivers/net/ethernet/neterion/vxge/vxge-main.c dev->mtu = new_mtu; new_mtu 3075 drivers/net/ethernet/neterion/vxge/vxge-main.c "trying to apply new MTU %d", new_mtu); new_mtu 3080 drivers/net/ethernet/neterion/vxge/vxge-main.c dev->mtu = new_mtu; new_mtu 3081 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = new_mtu; new_mtu 3087 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU changed to %d", vdev->ndev->name, new_mtu); new_mtu 182 drivers/net/ethernet/netronome/nfp/bpf/main.c nfp_bpf_check_mtu(struct nfp_app *app, struct net_device *netdev, int new_mtu) new_mtu 191 drivers/net/ethernet/netronome/nfp/bpf/main.c if (new_mtu > max_mtu) { new_mtu 840 drivers/net/ethernet/netronome/nfp/flower/main.c int new_mtu) new_mtu 857 drivers/net/ethernet/netronome/nfp/flower/main.c app_priv->mtu_conf.requested_val = new_mtu; new_mtu 861 drivers/net/ethernet/netronome/nfp/flower/main.c err = nfp_flower_cmsg_portmod(repr, netif_carrier_ok(netdev), new_mtu, new_mtu 113 drivers/net/ethernet/netronome/nfp/nfp_app.h int new_mtu); new_mtu 115 drivers/net/ethernet/netronome/nfp/nfp_app.h int new_mtu); new_mtu 260 drivers/net/ethernet/netronome/nfp/nfp_app.h nfp_app_check_mtu(struct nfp_app *app, struct net_device *netdev, int new_mtu) new_mtu 264 drivers/net/ethernet/netronome/nfp/nfp_app.h return app->type->check_mtu(app, netdev, new_mtu); new_mtu 269 drivers/net/ethernet/netronome/nfp/nfp_app.h int new_mtu) new_mtu 273 drivers/net/ethernet/netronome/nfp/nfp_app.h return app->type->repr_change_mtu(app, netdev, new_mtu); new_mtu 3300 drivers/net/ethernet/netronome/nfp/nfp_net_common.c static int nfp_net_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 3306 drivers/net/ethernet/netronome/nfp/nfp_net_common.c err = nfp_app_check_mtu(nn->app, netdev, new_mtu); new_mtu 3314 drivers/net/ethernet/netronome/nfp/nfp_net_common.c dp->mtu = new_mtu; new_mtu 166 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 171 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c err = nfp_app_check_mtu(repr->app, netdev, new_mtu); new_mtu 175 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c err = nfp_app_repr_change_mtu(repr->app, netdev, new_mtu); new_mtu 179 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c netdev->mtu = new_mtu; new_mtu 939 drivers/net/ethernet/ni/nixge.c static int nixge_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 944 drivers/net/ethernet/ni/nixge.c if ((new_mtu + NIXGE_HDR_SIZE + NIXGE_TRL_SIZE) > new_mtu 948 drivers/net/ethernet/ni/nixge.c ndev->mtu = new_mtu; new_mtu 3061 drivers/net/ethernet/nvidia/forcedeth.c static int nv_change_mtu(struct net_device *dev, int new_mtu) new_mtu 3067 drivers/net/ethernet/nvidia/forcedeth.c dev->mtu = new_mtu; new_mtu 3070 drivers/net/ethernet/nvidia/forcedeth.c if (old_mtu <= ETH_DATA_LEN && new_mtu <= ETH_DATA_LEN) new_mtu 2185 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c static int pch_gbe_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2188 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; new_mtu 2209 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev->mtu = new_mtu; new_mtu 2214 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev->mtu = new_mtu; new_mtu 1593 drivers/net/ethernet/pasemi/pasemi_mac.c static int pasemi_mac_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1622 drivers/net/ethernet/pasemi/pasemi_mac.c if (new_mtu > PE_DEF_MTU && !mac->num_cs) { new_mtu 1635 drivers/net/ethernet/pasemi/pasemi_mac.c reg |= PAS_MAC_CFG_MACCFG_MAXF(new_mtu + ETH_HLEN + 4); new_mtu 1638 drivers/net/ethernet/pasemi/pasemi_mac.c dev->mtu = new_mtu; new_mtu 1640 drivers/net/ethernet/pasemi/pasemi_mac.c mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; new_mtu 1236 drivers/net/ethernet/pensando/ionic/ionic_lif.c static int ionic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 1245 drivers/net/ethernet/pensando/ionic/ionic_lif.c .mtu = cpu_to_le32(new_mtu), new_mtu 1254 drivers/net/ethernet/pensando/ionic/ionic_lif.c netdev->mtu = new_mtu; new_mtu 1783 drivers/net/ethernet/qlogic/netxen/netxen_nic.h int netxen_nic_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 290 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c static int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu); new_mtu 1837 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c static int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu) new_mtu 1839 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c new_mtu += MTU_FUDGE_FACTOR; new_mtu 1841 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c NXWR32(adapter, NETXEN_NIU_XGE_MAX_FRAME_SIZE, new_mtu); new_mtu 1843 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c NXWR32(adapter, NETXEN_NIU_XG1_MAX_FRAME_SIZE, new_mtu); new_mtu 562 drivers/net/ethernet/qlogic/qede/qede.h int qede_change_mtu(struct net_device *dev, int new_mtu); new_mtu 1058 drivers/net/ethernet/qlogic/qede/qede_ethtool.c int qede_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1064 drivers/net/ethernet/qlogic/qede/qede_ethtool.c "Configuring MTU size of %d\n", new_mtu); new_mtu 1066 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (new_mtu > PAGE_SIZE) new_mtu 1070 drivers/net/ethernet/qlogic/qede/qede_ethtool.c args.u.mtu = new_mtu; new_mtu 1074 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ops->common->update_mtu(edev->cdev, new_mtu); new_mtu 1630 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h int qlcnic_change_mtu(struct net_device *netdev, int new_mtu); new_mtu 212 drivers/net/ethernet/qualcomm/emac/emac.c static int emac_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 218 drivers/net/ethernet/qualcomm/emac/emac.c new_mtu); new_mtu 219 drivers/net/ethernet/qualcomm/emac/emac.c netdev->mtu = new_mtu; new_mtu 61 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c static int rmnet_vnd_change_mtu(struct net_device *rmnet_dev, int new_mtu) new_mtu 63 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c if (new_mtu < 0 || new_mtu > RMNET_MAX_PACKET_SIZE) new_mtu 66 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c rmnet_dev->mtu = new_mtu; new_mtu 1274 drivers/net/ethernet/realtek/8139cp.c static int cp_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1280 drivers/net/ethernet/realtek/8139cp.c dev->mtu = new_mtu; new_mtu 1287 drivers/net/ethernet/realtek/8139cp.c dev->mtu = new_mtu; new_mtu 5508 drivers/net/ethernet/realtek/r8169_main.c static int rtl8169_change_mtu(struct net_device *dev, int new_mtu) new_mtu 5512 drivers/net/ethernet/realtek/r8169_main.c rtl_jumbo_config(tp, new_mtu); new_mtu 5514 drivers/net/ethernet/realtek/r8169_main.c dev->mtu = new_mtu; new_mtu 1799 drivers/net/ethernet/renesas/ravb_main.c static int ravb_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1803 drivers/net/ethernet/renesas/ravb_main.c ndev->mtu = new_mtu; new_mtu 2664 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 2669 drivers/net/ethernet/renesas/sh_eth.c ndev->mtu = new_mtu; new_mtu 1977 drivers/net/ethernet/rocker/rocker_main.c static int rocker_port_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1986 drivers/net/ethernet/rocker/rocker_main.c netdev_info(dev, "MTU change from %d to %d\n", dev->mtu, new_mtu); new_mtu 1987 drivers/net/ethernet/rocker/rocker_main.c dev->mtu = new_mtu; new_mtu 1989 drivers/net/ethernet/rocker/rocker_main.c err = rocker_cmd_set_port_settings_mtu(rocker_port, new_mtu); new_mtu 1796 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c static int sxgbe_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1798 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c dev->mtu = new_mtu; new_mtu 2283 drivers/net/ethernet/sfc/efx.c static int efx_change_mtu(struct net_device *net_dev, int new_mtu) new_mtu 2292 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); new_mtu 2298 drivers/net/ethernet/sfc/efx.c net_dev->mtu = new_mtu; new_mtu 2124 drivers/net/ethernet/sfc/falcon/efx.c static int ef4_change_mtu(struct net_device *net_dev, int new_mtu) new_mtu 2133 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); new_mtu 2139 drivers/net/ethernet/sfc/falcon/efx.c net_dev->mtu = new_mtu; new_mtu 3751 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_change_mtu(struct net_device *dev, int new_mtu) new_mtu 3766 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c new_mtu = STMMAC_ALIGN(new_mtu); new_mtu 3769 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if ((txfifosz < new_mtu) || (new_mtu > BUF_SIZE_16KiB)) new_mtu 3772 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c dev->mtu = new_mtu; new_mtu 3851 drivers/net/ethernet/sun/cassini.c static int cas_change_mtu(struct net_device *dev, int new_mtu) new_mtu 3855 drivers/net/ethernet/sun/cassini.c dev->mtu = new_mtu; new_mtu 6730 drivers/net/ethernet/sun/niu.c static int niu_change_mtu(struct net_device *dev, int new_mtu) new_mtu 6736 drivers/net/ethernet/sun/niu.c new_jumbo = (new_mtu > ETH_DATA_LEN); new_mtu 6738 drivers/net/ethernet/sun/niu.c dev->mtu = new_mtu; new_mtu 2495 drivers/net/ethernet/sun/sungem.c static int gem_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2499 drivers/net/ethernet/sun/sungem.c dev->mtu = new_mtu; new_mtu 758 drivers/net/ethernet/tehuti/tehuti.c static int bdx_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 762 drivers/net/ethernet/tehuti/tehuti.c ndev->mtu = new_mtu; new_mtu 2272 drivers/net/ethernet/via/via-velocity.c static int velocity_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2278 drivers/net/ethernet/via/via-velocity.c dev->mtu = new_mtu; new_mtu 2282 drivers/net/ethernet/via/via-velocity.c if (dev->mtu != new_mtu) { new_mtu 2300 drivers/net/ethernet/via/via-velocity.c ret = velocity_init_rings(tmp_vptr, new_mtu); new_mtu 2320 drivers/net/ethernet/via/via-velocity.c dev->mtu = new_mtu; new_mtu 1050 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 1057 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if ((new_mtu + VLAN_ETH_HLEN + new_mtu 1061 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->mtu = new_mtu; new_mtu 813 drivers/net/fjes/fjes_main.c static int fjes_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 823 drivers/net/fjes/fjes_main.c if (new_mtu <= fjes_support_mtu[idx]) { new_mtu 824 drivers/net/fjes/fjes_main.c new_mtu = fjes_support_mtu[idx]; new_mtu 825 drivers/net/fjes/fjes_main.c if (new_mtu == netdev->mtu) new_mtu 856 drivers/net/fjes/fjes_main.c netdev->mtu = new_mtu; new_mtu 1021 drivers/net/geneve.c static int geneve_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1023 drivers/net/geneve.c if (new_mtu > dev->max_mtu) new_mtu 1024 drivers/net/geneve.c new_mtu = dev->max_mtu; new_mtu 1025 drivers/net/geneve.c else if (new_mtu < dev->min_mtu) new_mtu 1026 drivers/net/geneve.c new_mtu = dev->min_mtu; new_mtu 1028 drivers/net/geneve.c dev->mtu = new_mtu; new_mtu 2917 drivers/net/macsec.c static int macsec_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2922 drivers/net/macsec.c if (macsec->real_dev->mtu - extra < new_mtu) new_mtu 2925 drivers/net/macsec.c dev->mtu = new_mtu; new_mtu 817 drivers/net/macvlan.c static int macvlan_change_mtu(struct net_device *dev, int new_mtu) new_mtu 821 drivers/net/macvlan.c if (vlan->lowerdev->mtu < new_mtu) new_mtu 823 drivers/net/macvlan.c dev->mtu = new_mtu; new_mtu 215 drivers/net/net_failover.c static int net_failover_change_mtu(struct net_device *dev, int new_mtu) new_mtu 223 drivers/net/net_failover.c ret = dev_set_mtu(primary_dev, new_mtu); new_mtu 230 drivers/net/net_failover.c ret = dev_set_mtu(standby_dev, new_mtu); new_mtu 238 drivers/net/net_failover.c dev->mtu = new_mtu; new_mtu 50 drivers/net/netdevsim/netdev.c static int nsim_change_mtu(struct net_device *dev, int new_mtu) new_mtu 54 drivers/net/netdevsim/netdev.c if (ns->xdp.prog && new_mtu > NSIM_XDP_MAX_MTU) new_mtu 57 drivers/net/netdevsim/netdev.c dev->mtu = new_mtu; new_mtu 299 drivers/net/ntb_netdev.c static int ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 305 drivers/net/ntb_netdev.c if (new_mtu > ntb_transport_max_size(dev->qp) - ETH_HLEN) new_mtu 309 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; new_mtu 316 drivers/net/ntb_netdev.c if (ndev->mtu < new_mtu) { new_mtu 323 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, new_mtu + ETH_HLEN); new_mtu 330 drivers/net/ntb_netdev.c new_mtu + ETH_HLEN); new_mtu 338 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; new_mtu 567 drivers/net/slip/slip.c static int sl_change_mtu(struct net_device *dev, int new_mtu) new_mtu 571 drivers/net/slip/slip.c return sl_realloc_bufs(sl, new_mtu); new_mtu 1801 drivers/net/team/team.c static int team_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1814 drivers/net/team/team.c err = dev_set_mtu(port->dev, new_mtu); new_mtu 1824 drivers/net/team/team.c dev->mtu = new_mtu; new_mtu 421 drivers/net/usb/aqc111.c static int aqc111_change_mtu(struct net_device *net, int new_mtu) new_mtu 427 drivers/net/usb/aqc111.c net->mtu = new_mtu; new_mtu 1028 drivers/net/usb/asix_devices.c static int ax88178_change_mtu(struct net_device *net, int new_mtu) new_mtu 1031 drivers/net/usb/asix_devices.c int ll_mtu = new_mtu + net->hard_header_len + 4; new_mtu 1033 drivers/net/usb/asix_devices.c netdev_dbg(dev->net, "ax88178_change_mtu() new_mtu=%d\n", new_mtu); new_mtu 1038 drivers/net/usb/asix_devices.c net->mtu = new_mtu; new_mtu 901 drivers/net/usb/ax88179_178a.c static int ax88179_change_mtu(struct net_device *net, int new_mtu) new_mtu 906 drivers/net/usb/ax88179_178a.c net->mtu = new_mtu; new_mtu 746 drivers/net/usb/cdc_ncm.c int cdc_ncm_change_mtu(struct net_device *net, int new_mtu) new_mtu 750 drivers/net/usb/cdc_ncm.c net->mtu = new_mtu; new_mtu 751 drivers/net/usb/cdc_ncm.c cdc_ncm_set_dgram_size(dev, new_mtu + cdc_ncm_eth_hlen(dev)); new_mtu 2276 drivers/net/usb/lan78xx.c static int lan78xx_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2279 drivers/net/usb/lan78xx.c int ll_mtu = new_mtu + netdev->hard_header_len; new_mtu 2288 drivers/net/usb/lan78xx.c ret = lan78xx_set_rx_max_frame_length(dev, new_mtu + VLAN_ETH_HLEN); new_mtu 2290 drivers/net/usb/lan78xx.c netdev->mtu = new_mtu; new_mtu 5437 drivers/net/usb/r8152.c static int rtl8152_change_mtu(struct net_device *dev, int new_mtu) new_mtu 5446 drivers/net/usb/r8152.c dev->mtu = new_mtu; new_mtu 5458 drivers/net/usb/r8152.c dev->mtu = new_mtu; new_mtu 5461 drivers/net/usb/r8152.c u32 rms = new_mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; new_mtu 919 drivers/net/usb/smsc75xx.c static int smsc75xx_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 924 drivers/net/usb/smsc75xx.c ret = smsc75xx_set_rx_max_frame_length(dev, new_mtu + ETH_HLEN); new_mtu 930 drivers/net/usb/smsc75xx.c return usbnet_change_mtu(netdev, new_mtu); new_mtu 378 drivers/net/usb/usbnet.c int usbnet_change_mtu (struct net_device *net, int new_mtu) new_mtu 381 drivers/net/usb/usbnet.c int ll_mtu = new_mtu + net->hard_header_len; new_mtu 388 drivers/net/usb/usbnet.c net->mtu = new_mtu; new_mtu 2989 drivers/net/vmxnet3/vmxnet3_drv.c vmxnet3_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 2994 drivers/net/vmxnet3/vmxnet3_drv.c netdev->mtu = new_mtu; new_mtu 93 drivers/net/vsockmon.c static int vsockmon_is_valid_mtu(int new_mtu) new_mtu 95 drivers/net/vsockmon.c return new_mtu >= (int)sizeof(struct af_vsockmon_hdr); new_mtu 98 drivers/net/vsockmon.c static int vsockmon_change_mtu(struct net_device *dev, int new_mtu) new_mtu 100 drivers/net/vsockmon.c if (!vsockmon_is_valid_mtu(new_mtu)) new_mtu 103 drivers/net/vsockmon.c dev->mtu = new_mtu; new_mtu 2897 drivers/net/vxlan.c static int vxlan_change_mtu(struct net_device *dev, int new_mtu) new_mtu 2911 drivers/net/vxlan.c if (new_mtu > max_mtu) new_mtu 2915 drivers/net/vxlan.c dev->mtu = new_mtu; new_mtu 263 drivers/net/wan/dlci.c static int dlci_change_mtu(struct net_device *dev, int new_mtu) new_mtu 267 drivers/net/wan/dlci.c return dev_set_mtu(dlp->slave, new_mtu); new_mtu 1317 drivers/net/wan/sdla.c static int sdla_change_mtu(struct net_device *dev, int new_mtu) new_mtu 313 drivers/net/wireless/intersil/orinoco/main.c int orinoco_change_mtu(struct net_device *dev, int new_mtu) new_mtu 318 drivers/net/wireless/intersil/orinoco/main.c if ((new_mtu + ENCAPS_OVERHEAD + sizeof(struct ieee80211_hdr)) > new_mtu 322 drivers/net/wireless/intersil/orinoco/main.c dev->mtu = new_mtu; new_mtu 209 drivers/net/wireless/intersil/orinoco/orinoco.h int orinoco_change_mtu(struct net_device *dev, int new_mtu); new_mtu 1029 drivers/s390/net/ctcm_main.c static int ctcm_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1038 drivers/s390/net/ctcm_main.c if (new_mtu > max_bufsize - TH_HEADER_LENGTH) new_mtu 1042 drivers/s390/net/ctcm_main.c if (new_mtu > max_bufsize - LL_HEADER_LENGTH - 2) new_mtu 1046 drivers/s390/net/ctcm_main.c dev->mtu = new_mtu; new_mtu 2115 drivers/s390/net/qeth_core_main.c unsigned int new_mtu; new_mtu 2128 drivers/s390/net/qeth_core_main.c new_mtu = (dev->mtu == dev->max_mtu) ? max_mtu : dev->mtu; new_mtu 2136 drivers/s390/net/qeth_core_main.c new_mtu = dev->mtu; new_mtu 2139 drivers/s390/net/qeth_core_main.c new_mtu = ETH_DATA_LEN; new_mtu 2141 drivers/s390/net/qeth_core_main.c new_mtu = ETH_DATA_LEN - 8; /* allow for LLC + SNAP */ new_mtu 2145 drivers/s390/net/qeth_core_main.c dev->mtu = min(new_mtu, max_mtu); new_mtu 237 drivers/staging/octeon/ethernet.c static int cvm_oct_common_change_mtu(struct net_device *dev, int new_mtu) new_mtu 248 drivers/staging/octeon/ethernet.c dev->mtu = new_mtu; new_mtu 255 drivers/staging/octeon/ethernet.c int max_packet = new_mtu + mtu_overhead; new_mtu 4259 drivers/staging/qlge/qlge_main.c static int qlge_change_mtu(struct net_device *ndev, int new_mtu) new_mtu 4264 drivers/staging/qlge/qlge_main.c if (ndev->mtu == 1500 && new_mtu == 9000) { new_mtu 4266 drivers/staging/qlge/qlge_main.c } else if (ndev->mtu == 9000 && new_mtu == 1500) { new_mtu 4274 drivers/staging/qlge/qlge_main.c ndev->mtu = new_mtu; new_mtu 1033 drivers/staging/unisys/visornic/visornic_main.c static int visornic_change_mtu(struct net_device *netdev, int new_mtu) new_mtu 193 include/linux/can/dev.h int can_change_mtu(struct net_device *dev, int new_mtu); new_mtu 46 include/linux/etherdevice.h int eth_change_mtu(struct net_device *dev, int new_mtu); new_mtu 1273 include/linux/netdevice.h int new_mtu); new_mtu 147 include/linux/usb/cdc_ncm.h int cdc_ncm_change_mtu(struct net_device *net, int new_mtu); new_mtu 257 include/linux/usb/usbnet.h extern int usbnet_change_mtu(struct net_device *net, int new_mtu); new_mtu 151 include/net/ip6_tunnel.h int ip6_tnl_change_mtu(struct net_device *dev, int new_mtu); new_mtu 273 include/net/ip_tunnels.h int __ip_tunnel_change_mtu(struct net_device *dev, int new_mtu, bool strict); new_mtu 274 include/net/ip_tunnels.h int ip_tunnel_change_mtu(struct net_device *dev, int new_mtu); new_mtu 142 net/8021q/vlan_dev.c static int vlan_dev_change_mtu(struct net_device *dev, int new_mtu) new_mtu 149 net/8021q/vlan_dev.c if (max_mtu < new_mtu) new_mtu 152 net/8021q/vlan_dev.c dev->mtu = new_mtu; new_mtu 157 net/batman-adv/soft-interface.c static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu) new_mtu 160 net/batman-adv/soft-interface.c if (new_mtu < 68 || new_mtu > batadv_hardif_min_mtu(dev)) new_mtu 163 net/batman-adv/soft-interface.c dev->mtu = new_mtu; new_mtu 223 net/bridge/br_device.c static int br_change_mtu(struct net_device *dev, int new_mtu) new_mtu 227 net/bridge/br_device.c dev->mtu = new_mtu; new_mtu 233 net/bridge/br_device.c dst_metric_set(&br->fake_rtable.dst, RTAX_MTU, new_mtu); new_mtu 7960 net/core/dev.c int __dev_set_mtu(struct net_device *dev, int new_mtu) new_mtu 7965 net/core/dev.c return ops->ndo_change_mtu(dev, new_mtu); new_mtu 7968 net/core/dev.c WRITE_ONCE(dev->mtu, new_mtu); new_mtu 7973 net/core/dev.c int dev_validate_mtu(struct net_device *dev, int new_mtu, new_mtu 7977 net/core/dev.c if (new_mtu < 0 || new_mtu < dev->min_mtu) { new_mtu 7982 net/core/dev.c if (dev->max_mtu > 0 && new_mtu > dev->max_mtu) { new_mtu 7997 net/core/dev.c int dev_set_mtu_ext(struct net_device *dev, int new_mtu, new_mtu 8002 net/core/dev.c if (new_mtu == dev->mtu) new_mtu 8005 net/core/dev.c err = dev_validate_mtu(dev, new_mtu, extack); new_mtu 8018 net/core/dev.c err = __dev_set_mtu(dev, new_mtu); new_mtu 8030 net/core/dev.c new_mtu); new_mtu 8036 net/core/dev.c int dev_set_mtu(struct net_device *dev, int new_mtu) new_mtu 8042 net/core/dev.c err = dev_set_mtu_ext(dev, new_mtu, &extack); new_mtu 321 net/core/net-sysfs.c static int change_mtu(struct net_device *dev, unsigned long new_mtu) new_mtu 323 net/core/net-sysfs.c return dev_set_mtu(dev, (int)new_mtu); new_mtu 346 net/ethernet/eth.c int eth_change_mtu(struct net_device *dev, int new_mtu) new_mtu 349 net/ethernet/eth.c dev->mtu = new_mtu; new_mtu 132 net/hsr/hsr_device.c static int hsr_dev_change_mtu(struct net_device *dev, int new_mtu) new_mtu 140 net/hsr/hsr_device.c if (new_mtu > hsr_get_max_mtu(hsr)) { new_mtu 146 net/hsr/hsr_device.c dev->mtu = new_mtu; new_mtu 965 net/ipv4/ip_tunnel.c int __ip_tunnel_change_mtu(struct net_device *dev, int new_mtu, bool strict) new_mtu 971 net/ipv4/ip_tunnel.c if (new_mtu < ETH_MIN_MTU) new_mtu 974 net/ipv4/ip_tunnel.c if (new_mtu > max_mtu) { new_mtu 978 net/ipv4/ip_tunnel.c new_mtu = max_mtu; new_mtu 981 net/ipv4/ip_tunnel.c dev->mtu = new_mtu; new_mtu 986 net/ipv4/ip_tunnel.c int ip_tunnel_change_mtu(struct net_device *dev, int new_mtu) new_mtu 988 net/ipv4/ip_tunnel.c return __ip_tunnel_change_mtu(dev, new_mtu, true); new_mtu 1689 net/ipv6/ip6_tunnel.c int ip6_tnl_change_mtu(struct net_device *dev, int new_mtu) new_mtu 1694 net/ipv6/ip6_tunnel.c if (new_mtu < IPV6_MIN_MTU) new_mtu 1697 net/ipv6/ip6_tunnel.c if (new_mtu < ETH_MIN_MTU) new_mtu 1701 net/ipv6/ip6_tunnel.c if (new_mtu > IP6_MAX_MTU - dev->hard_header_len) new_mtu 1704 net/ipv6/ip6_tunnel.c if (new_mtu > IP_MAX_MTU - dev->hard_header_len) new_mtu 1707 net/ipv6/ip6_tunnel.c dev->mtu = new_mtu; new_mtu 412 net/sched/sch_teql.c static int teql_master_mtu(struct net_device *dev, int new_mtu) new_mtu 420 net/sched/sch_teql.c if (new_mtu > qdisc_dev(q)->mtu) new_mtu 425 net/sched/sch_teql.c dev->mtu = new_mtu;