/kernel/linux/linux-5.10/drivers/net/ |
D | vsockmon.c | 66 static int vsockmon_is_valid_mtu(int new_mtu) in vsockmon_is_valid_mtu() argument 68 return new_mtu >= (int)sizeof(struct af_vsockmon_hdr); in vsockmon_is_valid_mtu() 71 static int vsockmon_change_mtu(struct net_device *dev, int new_mtu) in vsockmon_change_mtu() argument 73 if (!vsockmon_is_valid_mtu(new_mtu)) in vsockmon_change_mtu() 76 dev->mtu = new_mtu; in vsockmon_change_mtu()
|
D | ntb_netdev.c | 299 static int ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu) in ntb_netdev_change_mtu() argument 305 if (new_mtu > ntb_transport_max_size(dev->qp) - ETH_HLEN) in ntb_netdev_change_mtu() 309 ndev->mtu = new_mtu; in ntb_netdev_change_mtu() 316 if (ndev->mtu < new_mtu) { in ntb_netdev_change_mtu() 323 skb = netdev_alloc_skb(ndev, new_mtu + ETH_HLEN); in ntb_netdev_change_mtu() 330 new_mtu + ETH_HLEN); in ntb_netdev_change_mtu() 338 ndev->mtu = new_mtu; in ntb_netdev_change_mtu()
|
D | net_failover.c | 211 static int net_failover_change_mtu(struct net_device *dev, int new_mtu) in net_failover_change_mtu() argument 219 ret = dev_set_mtu(primary_dev, new_mtu); in net_failover_change_mtu() 226 ret = dev_set_mtu(standby_dev, new_mtu); in net_failover_change_mtu() 234 dev->mtu = new_mtu; in net_failover_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/can/ |
D | vcan.c | 130 static int vcan_change_mtu(struct net_device *dev, int new_mtu) in vcan_change_mtu() argument 136 if (new_mtu != CAN_MTU && new_mtu != CANFD_MTU) in vcan_change_mtu() 139 dev->mtu = new_mtu; in vcan_change_mtu()
|
D | vxcan.c | 121 static int vxcan_change_mtu(struct net_device *dev, int new_mtu) in vxcan_change_mtu() argument 127 if (new_mtu != CAN_MTU && new_mtu != CANFD_MTU) in vxcan_change_mtu() 130 dev->mtu = new_mtu; in vxcan_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 73 static int rmnet_vnd_change_mtu(struct net_device *rmnet_dev, int new_mtu) in rmnet_vnd_change_mtu() argument 83 if (new_mtu < 0 || new_mtu > RMNET_MAX_PACKET_SIZE || in rmnet_vnd_change_mtu() 84 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu() 87 rmnet_dev->mtu = new_mtu; in rmnet_vnd_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_app.h | 113 int new_mtu); 115 int new_mtu); 260 nfp_app_check_mtu(struct nfp_app *app, struct net_device *netdev, int new_mtu) in nfp_app_check_mtu() argument 264 return app->type->check_mtu(app, netdev, new_mtu); in nfp_app_check_mtu() 269 int new_mtu) in nfp_app_repr_change_mtu() argument 273 return app->type->repr_change_mtu(app, netdev, new_mtu); in nfp_app_repr_change_mtu()
|
D | nfp_net_repr.c | 166 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument 171 err = nfp_app_check_mtu(repr->app, netdev, new_mtu); in nfp_repr_change_mtu() 175 err = nfp_app_repr_change_mtu(repr->app, netdev, new_mtu); in nfp_repr_change_mtu() 179 netdev->mtu = new_mtu; in nfp_repr_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib_vlan.c | 142 static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu); 266 static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu) in mlx5i_pkey_change_mtu() argument 271 netdev->mtu = new_mtu; in mlx5i_pkey_change_mtu()
|
D | ipoib.c | 43 static int mlx5i_change_mtu(struct net_device *netdev, int new_mtu); 473 static int mlx5i_change_mtu(struct net_device *netdev, int new_mtu) in mlx5i_change_mtu() argument 485 params->sw_mtu = new_mtu; in mlx5i_change_mtu() 491 new_channels.params.sw_mtu = new_mtu; in mlx5i_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
D | netdev.c | 51 static int nsim_change_mtu(struct net_device *dev, int new_mtu) in nsim_change_mtu() argument 55 if (ns->xdp.prog && new_mtu > NSIM_XDP_MAX_MTU) in nsim_change_mtu() 58 dev->mtu = new_mtu; in nsim_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 124 static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu) in aq_ndev_change_mtu() argument 129 err = aq_nic_set_mtu(aq_nic, new_mtu + ETH_HLEN); in aq_ndev_change_mtu() 133 ndev->mtu = new_mtu; in aq_ndev_change_mtu()
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | soft-interface.c | 157 static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu) in batadv_interface_change_mtu() argument 162 if (new_mtu < 68 || new_mtu > batadv_hardif_min_mtu(dev)) in batadv_interface_change_mtu() 165 dev->mtu = new_mtu; in batadv_interface_change_mtu() 166 bat_priv->mtu_set_by_user = new_mtu; in batadv_interface_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_vf_rep.c | 39 static int lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu); 199 lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu) in lio_vf_rep_change_mtu() argument 211 rep_cfg.rep_mtu.mtu = cpu_to_be32(new_mtu); in lio_vf_rep_change_mtu() 221 ndev->mtu = new_mtu; in lio_vf_rep_change_mtu()
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_teql.c | 414 static int teql_master_mtu(struct net_device *dev, int new_mtu) in teql_master_mtu() argument 422 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu() 427 dev->mtu = new_mtu; in teql_master_mtu()
|
/kernel/linux/linux-5.10/net/hsr/ |
D | hsr_device.c | 124 static int hsr_dev_change_mtu(struct net_device *dev, int new_mtu) in hsr_dev_change_mtu() argument 130 if (new_mtu > hsr_get_max_mtu(hsr)) { in hsr_dev_change_mtu() 136 dev->mtu = new_mtu; in hsr_dev_change_mtu()
|
/kernel/linux/linux-5.10/net/bridge/ |
D | br_device.c | 220 static int br_change_mtu(struct net_device *dev, int new_mtu) in br_change_mtu() argument 224 dev->mtu = new_mtu; in br_change_mtu() 230 dst_metric_set(&br->fake_rtable.dst, RTAX_MTU, new_mtu); in br_change_mtu()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_tunnel.c | 975 int __ip_tunnel_change_mtu(struct net_device *dev, int new_mtu, bool strict) in __ip_tunnel_change_mtu() argument 984 if (new_mtu < ETH_MIN_MTU) in __ip_tunnel_change_mtu() 987 if (new_mtu > max_mtu) { in __ip_tunnel_change_mtu() 991 new_mtu = max_mtu; in __ip_tunnel_change_mtu() 994 dev->mtu = new_mtu; in __ip_tunnel_change_mtu() 999 int ip_tunnel_change_mtu(struct net_device *dev, int new_mtu) in ip_tunnel_change_mtu() argument 1001 return __ip_tunnel_change_mtu(dev, new_mtu, true); in ip_tunnel_change_mtu()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | cdc_ncm.h | 154 int cdc_ncm_change_mtu(struct net_device *net, int new_mtu);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | efx_common.c | 285 int efx_change_mtu(struct net_device *net_dev, int new_mtu) in efx_change_mtu() argument 295 new_mtu > efx_xdp_max_mtu(efx)) { in efx_change_mtu() 298 new_mtu, efx_xdp_max_mtu(efx)); in efx_change_mtu() 302 netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); in efx_change_mtu() 308 net_dev->mtu = new_mtu; in efx_change_mtu()
|
D | efx_common.h | 102 int efx_change_mtu(struct net_device *net_dev, int new_mtu);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/ |
D | core.c | 1031 static int emac_resize_rx_ring(struct emac_instance *dev, int new_mtu) in emac_resize_rx_ring() argument 1033 int rx_sync_size = emac_rx_sync_size(new_mtu); in emac_resize_rx_ring() 1034 int rx_skb_size = emac_rx_skb_size(new_mtu); in emac_resize_rx_ring() 1088 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) || in emac_resize_rx_ring() 1091 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) ^ in emac_resize_rx_ring() 1099 dev->ndev->mtu = new_mtu; in emac_resize_rx_ring() 1103 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); in emac_resize_rx_ring() 1117 static int emac_change_mtu(struct net_device *ndev, int new_mtu) in emac_change_mtu() argument 1122 DBG(dev, "change_mtu(%d)" NL, new_mtu); in emac_change_mtu() 1126 if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu)) in emac_change_mtu() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 213 static int emac_change_mtu(struct net_device *netdev, int new_mtu) in emac_change_mtu() argument 219 new_mtu); in emac_change_mtu() 220 netdev->mtu = new_mtu; in emac_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 386 static int otx2vf_change_mtu(struct net_device *netdev, int new_mtu) in otx2vf_change_mtu() argument 395 netdev->mtu, new_mtu); in otx2vf_change_mtu() 396 netdev->mtu = new_mtu; in otx2vf_change_mtu()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 224 static int ipoib_change_mtu(struct net_device *dev, int new_mtu) in ipoib_change_mtu() argument 231 if (new_mtu > ipoib_cm_max_mtu(dev)) in ipoib_change_mtu() 234 if (new_mtu > priv->mcast_mtu) in ipoib_change_mtu() 238 dev->mtu = new_mtu; in ipoib_change_mtu() 242 if (new_mtu < (ETH_MIN_MTU + IPOIB_ENCAP_LEN) || in ipoib_change_mtu() 243 new_mtu > IPOIB_UD_MTU(priv->max_ib_mtu)) in ipoib_change_mtu() 246 priv->admin_mtu = new_mtu; in ipoib_change_mtu() 252 new_mtu = min(priv->mcast_mtu, priv->admin_mtu); in ipoib_change_mtu() 260 ret = priv->rn_ops->ndo_change_mtu(dev, new_mtu); in ipoib_change_mtu() 265 dev->mtu = new_mtu; in ipoib_change_mtu()
|