Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c36 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
Dsetup.c68 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_xsk_rq()
/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()
1638 priv->hw_mtu = actual_mtu; in bcm_enet_change_mtu()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c271 if (unlikely(xdptxd->len > sq->hw_mtu)) { in mlx5e_xmit_xdp_frame_mpwqe()
330 if (unlikely(dma_len < MLX5E_XDP_MIN_INLINE || sq->hw_mtu < dma_len)) { in mlx5e_xmit_xdp_frame()
Dparams.c37 u32 hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_rx_get_min_frag_sz() local
40 return linear_rq_headroom + hw_mtu; in mlx5e_rx_get_min_frag_sz()
Dtrap.c46 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_trap_rq()
Dptp.c210 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_ptp_alloc_txqsq()
510 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_ptp_rq()
/drivers/net/ethernet/mellanox/mlx5/core/
Den.h402 unsigned int hw_mtu; member
513 unsigned int hw_mtu; member
657 unsigned int hw_mtu; member
Den_main.c395 rq->hw_mtu = in mlx5e_init_rxq_rq()
978 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu) - ETH_FCS_LEN; in mlx5e_alloc_xdpsq()
1145 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_alloc_txqsq()
2215 u16 hw_mtu = MLX5E_SW2HW_MTU(params, mtu); in mlx5e_set_mtu() local
2218 err = mlx5_set_port_mtu(mdev, hw_mtu, 1); in mlx5e_set_mtu()
2223 mlx5_modify_nic_vport_mtu(mdev, hw_mtu); in mlx5e_set_mtu()
2230 u16 hw_mtu = 0; in mlx5e_query_mtu() local
2233 err = mlx5_query_nic_vport_mtu(mdev, &hw_mtu); in mlx5e_query_mtu()
2234 if (err || !hw_mtu) /* fallback to port oper mtu */ in mlx5e_query_mtu()
2235 mlx5_query_port_oper_mtu(mdev, &hw_mtu, 1); in mlx5e_query_mtu()
[all …]
Den_rx.c1459 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_skb_from_cqe_mpwrq_linear()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c422 fsz = min_t(unsigned int, sq->hw_mtu, orig_fsz - frag_offset); in mlx5e_ktls_tx_handle_ooo()
/drivers/net/ethernet/micrel/
Dksz884x.c5710 int hw_mtu; in netdev_change_mtu() local
5720 hw_mtu = new_mtu + ETHERNET_HEADER_SIZE + 4; in netdev_change_mtu()
5721 if (hw_mtu > REGULAR_RX_BUF_SIZE) { in netdev_change_mtu()
5723 hw_mtu = MAX_RX_BUF_SIZE; in netdev_change_mtu()
5726 hw_mtu = REGULAR_RX_BUF_SIZE; in netdev_change_mtu()
5728 hw_mtu = (hw_mtu + 3) & ~3; in netdev_change_mtu()
5729 hw_priv->mtu = hw_mtu; in netdev_change_mtu()
/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c2376 u16 hw_mtu; in query_mtu() local
2379 err = mlx5_query_nic_vport_mtu(mdev, &hw_mtu); in query_mtu()
2383 *mtu = hw_mtu - MLX5V_ETH_HARD_MTU; in query_mtu()