Searched refs:hard_mtu (Results 1 – 25 of 25) sorted by relevance
/drivers/net/usb/ |
D | rndis_host.c | 335 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()
|
D | kalmia.c | 145 dev->hard_mtu = 1400; in kalmia_bind() 146 dev->rx_urb_size = dev->hard_mtu * 10; // Found as optimal after testing in kalmia_bind()
|
D | usbnet.c | 344 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()
|
D | cx82310_eth.c | 167 dev->hard_mtu = CX82310_MTU + 2; in cx82310_bind() 171 dev->partial_data = (unsigned long) kmalloc(dev->hard_mtu, GFP_KERNEL); in cx82310_bind()
|
D | asix_devices.c | 1000 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()
|
D | net1080.c | 351 skb->len, dev->net->hard_header_len, dev->hard_mtu, in net1080_rx_fixup() 482 dev->hard_mtu = NC_MAX_PACKET; in net1080_bind()
|
D | gl620a.c | 180 dev->hard_mtu = GL_RCV_BUF_SIZE; in genelink_bind()
|
D | int51x1.c | 150 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in int51x1_bind()
|
D | cdc_eem.c | 80 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in eem_bind()
|
D | ch9200.c | 351 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in ch9200_bind()
|
D | lan78xx.c | 397 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()
|
D | sr9700.c | 333 dev->hard_mtu = netdev->mtu + netdev->hard_header_len; in sr9700_bind()
|
D | dm9601.c | 370 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in dm9601_bind()
|
D | aqc111.c | 428 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()
|
D | cdc_ether.c | 225 dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize); in usbnet_generic_cdc_bind()
|
D | sierra_net.c | 718 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in sierra_net_bind()
|
D | qmi_wwan.c | 727 dev->hard_mtu = le16_to_cpu(cdc_ether->wMaxSegmentSize); in qmi_wwan_bind()
|
D | ax88179_178a.c | 985 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88179_change_mtu()
|
D | smsc95xx.c | 1179 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc95xx_bind()
|
D | cdc_ncm.c | 453 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
|
D | smsc75xx.c | 1504 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en.h | 70 #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
|
D | en_rep.c | 694 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_rep_params()
|
D | en_main.c | 4875 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_nic_params()
|
/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 70 params->hard_mtu = MLX5_IB_GRH_BYTES + MLX5_IPOIB_HARD_LEN; in mlx5i_build_nic_params()
|