/linux-master/drivers/net/ethernet/atheros/ |
H A D | ag71xx.c | 945 static unsigned int ag71xx_max_frame_len(unsigned int mtu) argument 947 return ETH_HLEN + VLAN_HLEN + mtu + ETH_FCS_LEN; 989 ag71xx_max_frame_len(ag->ndev->mtu)); 1433 max_frame_len = ag71xx_max_frame_len(ndev->mtu); 1791 WRITE_ONCE(ndev->mtu, new_mtu); 1793 ag71xx_max_frame_len(ndev->mtu));
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_main.c | 141 ndev->mtu); 149 WRITE_ONCE(ndev->mtu, new_mtu); 453 if (ndev->mtu > AQ_CFG_RX_FRAME_MAX) {
|
/linux-master/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.c | 1533 WRITE_ONCE(ndev->mtu, new_mtu);
|
/linux-master/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-drv.c | 296 static int xgbe_calc_rx_buf_size(struct net_device *netdev, unsigned int mtu) argument 300 rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; 1287 pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); 2061 static int xgbe_change_mtu(struct net_device *netdev, int mtu) argument 2068 ret = xgbe_calc_rx_buf_size(netdev, mtu); 2073 WRITE_ONCE(netdev->mtu, mtu); 2613 max_len = netdev->mtu + ETH_HLEN;
|
/linux-master/drivers/net/ethernet/amd/ |
H A D | amd8111e.c | 253 * to the mtu size of networkinterface. 258 unsigned int mtu = dev->mtu; local 260 if (mtu > ETH_DATA_LEN) { 264 lp->rx_buff_len = mtu + ETH_HLEN + 10; 1513 /* This function changes the mtu of the device. It restarts the device to 1525 WRITE_ONCE(dev->mtu, new_mtu); 1534 WRITE_ONCE(dev->mtu, new_mtu);
|
/linux-master/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 90 static void update_rx_ring_mtu(struct ena_adapter *adapter, int mtu) argument 95 adapter->rx_ring[i].mtu = mtu; 107 WRITE_ONCE(dev->mtu, new_mtu); 1871 ena_change_mtu(adapter->netdev, adapter->netdev->mtu); 2364 if (rx_copybreak > min_t(u16, adapter->netdev->mtu, ENA_PAGE_SIZE)) 3015 if (get_feat_ctx->dev_attr.max_mtu < netdev->mtu) { 3017 "Error, device max mtu is smaller than netdev MTU\n");
|
H A D | ena_netdev.h | 251 u16 mtu; member in struct:ena_ring
|
H A D | ena_com.h | 598 /* ena_com_set_dev_mtu - Configure the device mtu. 600 * @mtu: mtu value 604 int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu);
|
/linux-master/drivers/net/ethernet/altera/ |
H A D | altera_tse_main.c | 724 frm_length = ETH_HLEN + priv->dev->mtu + ETH_FCS_LEN; 791 WRITE_ONCE(dev->mtu, new_mtu); 1336 /* Get the max mtu from the device tree. Note that the 1337 * "max-frame-size" parameter is actually max mtu. Definition
|
/linux-master/drivers/net/ethernet/alteon/ |
H A D | acenic.c | 192 * To enable jumbo frames, simply specify an mtu between 1500 and 9000 194 * by running `ifconfig eth<X> mtu <MTU>' with <X> being the Ethernet 2231 writel(dev->mtu + ETH_HLEN + 4, ®s->IfMtu); 2542 WRITE_ONCE(dev->mtu, new_mtu);
|
/linux-master/drivers/net/ethernet/agere/ |
H A D | et131x.c | 3855 WRITE_ONCE(netdev->mtu, new_mtu);
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 1048 int mtu = VLAN_ETH_FRAME_LEN + ETH_FCS_LEN; local 1051 mtu += VLAN_HLEN; 1055 policing[port].maxlen = mtu;
|
/linux-master/drivers/net/dsa/ocelot/ |
H A D | felix_vsc9959.c | 2297 sfi.maxsdu = a->police.mtu;
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | global1.h | 291 int mv88e6185_g1_set_max_frame_size(struct mv88e6xxx_chip *chip, int mtu);
|
H A D | global1.c | 288 int mv88e6185_g1_set_max_frame_size(struct mv88e6xxx_chip *chip, int mtu) argument 293 mtu += ETH_HLEN + ETH_FCS_LEN; 301 if (mtu > 1518)
|
H A D | chip.h | 669 int (*set_max_frame_size)(struct mv88e6xxx_chip *chip, int mtu);
|
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz_common.c | 2972 static int ksz_change_mtu(struct dsa_switch *ds, int port, int mtu) argument 2979 return dev->dev_ops->change_mtu(dev, port, mtu);
|
H A D | ksz_common.h | 354 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
|
H A D | ksz9477.c | 46 int ksz9477_change_mtu(struct ksz_device *dev, int port, int mtu) argument 53 frame_size = mtu + VLAN_ETH_HLEN + ETH_FCS_LEN;
|
H A D | ksz8795.c | 109 int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu) argument 116 frame_size = mtu + VLAN_ETH_HLEN + ETH_FCS_LEN;
|
H A D | ksz8.h | 56 int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu);
|
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_common.c | 2250 static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu) argument 2259 enable_jumbo = (mtu >= JMS_MIN_SIZE);
|
/linux-master/drivers/net/can/ |
H A D | vxcan.c | 138 WRITE_ONCE(dev->mtu, new_mtu); 159 dev->mtu = CANFD_MTU;
|
H A D | vcan.c | 143 WRITE_ONCE(dev->mtu, new_mtu); 159 dev->mtu = CANFD_MTU;
|
/linux-master/drivers/net/can/dev/ |
H A D | dev.c | 238 dev->mtu = CAN_MTU; 341 WRITE_ONCE(dev->mtu, new_mtu);
|