Searched refs:hard_mtu (Results 1 – 25 of 26) sorted by relevance
12
/linux-6.6.21/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 | cx82310_eth.c | 168 dev->hard_mtu = CX82310_MTU + 2; in cx82310_bind() 172 dev->partial_data = (unsigned long) kmalloc(dev->hard_mtu, GFP_KERNEL); in cx82310_bind()
|
D | usbnet.c | 360 if (!dev->rx_urb_size || !dev->hard_mtu) in usbnet_update_max_qlen() 365 dev->tx_qlen = MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen() 375 dev->tx_qlen = 5 * MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen() 395 int old_hard_mtu = dev->hard_mtu; in usbnet_change_mtu() 403 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_change_mtu() 405 dev->rx_urb_size = dev->hard_mtu; in usbnet_change_mtu() 1739 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_probe() 1773 if (net->mtu > (dev->hard_mtu - net->hard_header_len)) in usbnet_probe() 1774 net->mtu = dev->hard_mtu - net->hard_header_len; in usbnet_probe() 1800 dev->rx_urb_size = dev->hard_mtu; in usbnet_probe()
|
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 | 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 | asix_devices.c | 1195 if (dev->hard_mtu < 2048) { in ax88178_set_mfb() 1198 } else if (dev->hard_mtu < 4096) { in ax88178_set_mfb() 1201 } else if (dev->hard_mtu < 8192) { in ax88178_set_mfb() 1204 } else if (dev->hard_mtu < 16384) { in ax88178_set_mfb() 1234 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88178_change_mtu()
|
D | cdc_eem.c | 80 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in eem_bind()
|
D | ch9200.c | 352 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in ch9200_bind()
|
D | sr9700.c | 335 dev->hard_mtu = netdev->mtu + netdev->hard_header_len; in sr9700_bind()
|
D | dm9601.c | 371 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in dm9601_bind()
|
D | cdc_ether.c | 237 dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize); in usbnet_generic_cdc_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 | sierra_net.c | 720 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in sierra_net_bind()
|
D | qmi_wwan.c | 788 dev->hard_mtu = le16_to_cpu(cdc_ether->wMaxSegmentSize); in qmi_wwan_bind()
|
D | ax88179_178a.c | 947 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88179_change_mtu()
|
D | smsc95xx.c | 1225 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc95xx_bind()
|
D | cdc_ncm.c | 466 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
|
D | smsc75xx.c | 1505 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
|
/linux-6.6.21/include/linux/usb/ |
D | usbnet.h | 45 u32 hard_mtu; /* count any extra framing */ member
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en.h | 72 #define MLX5E_HW2SW_MTU(params, hwmtu) ((hwmtu) - ((params)->hard_mtu)) 73 #define MLX5E_SW2HW_MTU(params, swmtu) ((swmtu) + ((params)->hard_mtu)) 319 int hard_mtu; member
|
D | en_rep.c | 790 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_rep_params()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | ptp.c | 663 params->hard_mtu = orig->hard_mtu; in mlx5e_ptp_build_params()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 72 params->hard_mtu = MLX5_IB_GRH_BYTES + MLX5_IPOIB_HARD_LEN; in mlx5i_build_nic_params()
|
12