Home
last modified time | relevance | path

Searched refs:hw_mtu (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c239 u32 hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_rx_get_linear_sz_xsk() local
241 return xsk->headroom + hw_mtu; in mlx5e_rx_get_linear_sz_xsk()
246 u32 hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_rx_get_linear_sz_skb() local
250 return SKB_DATA_ALIGN(hw_mtu); in mlx5e_rx_get_linear_sz_skb()
253 return MLX5_SKB_FRAG_SZ(headroom + hw_mtu); in mlx5e_rx_get_linear_sz_skb()
Dtrap.c52 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_trap_rq()
Dxdp.c483 if (unlikely(p->len > sq->hw_mtu)) { in mlx5e_xmit_xdp_frame_mpwqe()
556 if (unlikely(!inline_ok || sq->hw_mtu < dma_len + frags_size)) { in mlx5e_xmit_xdp_frame()
Dptp.c338 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_ptp_alloc_txqsq()
702 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_ptp_rq()
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.h332 unsigned int hw_mtu; member
Dbcm63xx_enet.c1049 enet_writel(priv, priv->hw_mtu, ENET_RXMAXLEN_REG); in bcm_enet_open()
1050 enet_writel(priv, priv->hw_mtu, ENET_TXMAXLEN_REG); in bcm_enet_open()
1643 priv->hw_mtu = actual_mtu; in bcm_enet_change_mtu()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dsetup.c80 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_xsk_rq()
Drx.c258 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den.h445 unsigned int hw_mtu; member
511 unsigned int hw_mtu; member
707 unsigned int hw_mtu; member
Den_main.c750 rq->hw_mtu = in mlx5e_init_rxq_rq()
1464 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu) - ETH_FCS_LEN; in mlx5e_alloc_xdpsq()
1634 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_alloc_txqsq()
2917 u16 hw_mtu = MLX5E_SW2HW_MTU(params, mtu); in mlx5e_set_mtu() local
2920 err = mlx5_set_port_mtu(mdev, hw_mtu, 1); in mlx5e_set_mtu()
2925 mlx5_modify_nic_vport_mtu(mdev, hw_mtu); in mlx5e_set_mtu()
2932 u16 hw_mtu = 0; in mlx5e_query_mtu() local
2935 err = mlx5_query_nic_vport_mtu(mdev, &hw_mtu); in mlx5e_query_mtu()
2936 if (err || !hw_mtu) /* fallback to port oper mtu */ in mlx5e_query_mtu()
2937 mlx5_query_port_oper_mtu(mdev, &hw_mtu, 1); in mlx5e_query_mtu()
[all …]
Den_rx.c2141 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_skb_from_cqe_mpwrq_linear()
/linux-6.12.1/drivers/net/ethernet/micrel/
Dksz884x.c5410 int hw_mtu; in netdev_change_mtu() local
5420 hw_mtu = new_mtu + ETHERNET_HEADER_SIZE + 4; in netdev_change_mtu()
5421 if (hw_mtu > REGULAR_RX_BUF_SIZE) { in netdev_change_mtu()
5423 hw_mtu = MAX_RX_BUF_SIZE; in netdev_change_mtu()
5426 hw_mtu = REGULAR_RX_BUF_SIZE; in netdev_change_mtu()
5428 hw_mtu = (hw_mtu + 3) & ~3; in netdev_change_mtu()
5429 hw_priv->mtu = hw_mtu; in netdev_change_mtu()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c801 fsz = min_t(unsigned int, sq->hw_mtu, orig_fsz - frag_offset); in mlx5e_ktls_tx_handle_ooo()
/linux-6.12.1/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c3695 u16 hw_mtu; in query_mtu() local
3698 err = mlx5_query_nic_vport_mtu(mdev, &hw_mtu); in query_mtu()
3702 *mtu = hw_mtu - MLX5V_ETH_HARD_MTU; in query_mtu()