Home
last modified time | relevance | path

Searched refs:hard_mtu (Results 1 – 25 of 25) sorted by relevance

/drivers/net/usb/
Drndis_host.c335 dev->hard_mtu = net->mtu + net->hard_header_len; in generic_rndis_bind()
345 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1); in generic_rndis_bind()
358 if (tmp < dev->hard_mtu) { in generic_rndis_bind()
362 dev->hard_mtu, tmp); in generic_rndis_bind()
369 dev->hard_mtu, tmp, tmp - net->hard_header_len); in generic_rndis_bind()
370 dev->hard_mtu = tmp; in generic_rndis_bind()
371 net->mtu = dev->hard_mtu - net->hard_header_len; in generic_rndis_bind()
377 dev->hard_mtu, tmp, dev->rx_urb_size, in generic_rndis_bind()
Dkalmia.c145 dev->hard_mtu = 1400; in kalmia_bind()
146 dev->rx_urb_size = dev->hard_mtu * 10; // Found as optimal after testing in kalmia_bind()
Dusbnet.c344 if (!dev->rx_urb_size || !dev->hard_mtu) in usbnet_update_max_qlen()
349 dev->tx_qlen = MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen()
359 dev->tx_qlen = 5 * MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen()
379 int old_hard_mtu = dev->hard_mtu; in usbnet_change_mtu()
387 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_change_mtu()
389 dev->rx_urb_size = dev->hard_mtu; in usbnet_change_mtu()
1702 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_probe()
1736 if (net->mtu > (dev->hard_mtu - net->hard_header_len)) in usbnet_probe()
1737 net->mtu = dev->hard_mtu - net->hard_header_len; in usbnet_probe()
1763 dev->rx_urb_size = dev->hard_mtu; in usbnet_probe()
Dcx82310_eth.c167 dev->hard_mtu = CX82310_MTU + 2; in cx82310_bind()
171 dev->partial_data = (unsigned long) kmalloc(dev->hard_mtu, GFP_KERNEL); in cx82310_bind()
Dasix_devices.c1000 if (dev->hard_mtu < 2048) { in ax88178_set_mfb()
1003 } else if (dev->hard_mtu < 4096) { in ax88178_set_mfb()
1006 } else if (dev->hard_mtu < 8192) { in ax88178_set_mfb()
1009 } else if (dev->hard_mtu < 16384) { in ax88178_set_mfb()
1039 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88178_change_mtu()
Dnet1080.c351 skb->len, dev->net->hard_header_len, dev->hard_mtu, in net1080_rx_fixup()
482 dev->hard_mtu = NC_MAX_PACKET; in net1080_bind()
Dgl620a.c180 dev->hard_mtu = GL_RCV_BUF_SIZE; in genelink_bind()
Dint51x1.c150 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in int51x1_bind()
Dcdc_eem.c80 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in eem_bind()
Dch9200.c351 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in ch9200_bind()
Dlan78xx.c397 u32 hard_mtu; /* count any extra framing */ member
2289 int old_hard_mtu = dev->hard_mtu; in lan78xx_change_mtu()
2305 dev->hard_mtu = netdev->mtu + netdev->hard_header_len; in lan78xx_change_mtu()
2307 dev->rx_urb_size = dev->hard_mtu; in lan78xx_change_mtu()
2690 dev->tx_qlen = RX_MAX_QUEUE_MEMORY / dev->hard_mtu; in lan78xx_reset()
3191 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in lan78xx_bind()
3985 if (netdev->mtu > (dev->hard_mtu - netdev->hard_header_len)) in lan78xx_probe()
3986 netdev->mtu = dev->hard_mtu - netdev->hard_header_len; in lan78xx_probe()
Dsr9700.c333 dev->hard_mtu = netdev->mtu + netdev->hard_header_len; in sr9700_bind()
Ddm9601.c370 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in dm9601_bind()
Daqc111.c428 dev->hard_mtu = net->mtu + net->hard_header_len; in aqc111_change_mtu()
1137 pkt_len > (dev->hard_mtu + AQ_RX_HW_PAD)) { in aqc111_rx_fixup()
Dcdc_ether.c225 dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize); in usbnet_generic_cdc_bind()
Dsierra_net.c718 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in sierra_net_bind()
Dqmi_wwan.c727 dev->hard_mtu = le16_to_cpu(cdc_ether->wMaxSegmentSize); in qmi_wwan_bind()
Dax88179_178a.c985 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88179_change_mtu()
Dsmsc95xx.c1179 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc95xx_bind()
Dcdc_ncm.c453 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
Dsmsc75xx.c1504 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
/drivers/net/ethernet/mellanox/mlx5/core/
Den.h70 #define MLX5E_HW2SW_MTU(params, hwmtu) ((hwmtu) - ((params)->hard_mtu))
71 #define MLX5E_SW2HW_MTU(params, swmtu) ((swmtu) + ((params)->hard_mtu))
265 int hard_mtu; member
Den_rep.c694 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_rep_params()
Den_main.c4875 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_nic_params()
/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dipoib.c70 params->hard_mtu = MLX5_IB_GRH_BYTES + MLX5_IPOIB_HARD_LEN; in mlx5i_build_nic_params()