Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c31 u32 hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_rx_get_min_frag_sz() local
34 return linear_rq_headroom + hw_mtu; in mlx5e_rx_get_min_frag_sz()
Dxdp.c258 if (unlikely(xdptxd->len > sq->hw_mtu)) { in mlx5e_xmit_xdp_frame_mpwqe()
319 if (unlikely(dma_len < MLX5E_XDP_MIN_INLINE || sq->hw_mtu < dma_len)) { in mlx5e_xmit_xdp_frame()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls.h105 (nfrags + DIV_ROUND_UP(sync_len, sq->hw_mtu)); in mlx5e_ktls_dumps_num_wqebbs()
Dktls_tx.c394 fsz = min_t(unsigned int, sq->hw_mtu, orig_fsz - frag_offset); in mlx5e_ktls_tx_handle_ooo()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.h326 unsigned int hw_mtu; member
Dbcm63xx_enet.c1011 enet_writel(priv, priv->hw_mtu, ENET_RXMAXLEN_REG); in bcm_enet_open()
1012 enet_writel(priv, priv->hw_mtu, ENET_TXMAXLEN_REG); in bcm_enet_open()
1623 priv->hw_mtu = actual_mtu; in bcm_enet_change_mtu()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c101 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den.h413 unsigned int hw_mtu; member
536 unsigned int hw_mtu; member
672 unsigned int hw_mtu; member
Den_main.c401 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_alloc_rq()
985 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_alloc_xdpsq()
1131 sq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_alloc_txqsq()
2799 u16 hw_mtu = MLX5E_SW2HW_MTU(params, mtu); in mlx5e_set_mtu() local
2802 err = mlx5_set_port_mtu(mdev, hw_mtu, 1); in mlx5e_set_mtu()
2807 mlx5_modify_nic_vport_mtu(mdev, hw_mtu); in mlx5e_set_mtu()
2814 u16 hw_mtu = 0; in mlx5e_query_mtu() local
2817 err = mlx5_query_nic_vport_mtu(mdev, &hw_mtu); in mlx5e_query_mtu()
2818 if (err || !hw_mtu) /* fallback to port oper mtu */ in mlx5e_query_mtu()
2819 mlx5_query_port_oper_mtu(mdev, &hw_mtu, 1); in mlx5e_query_mtu()
[all …]
Den_rx.c1294 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_skb_from_cqe_mpwrq_linear()
/Linux-v5.4/drivers/net/ethernet/micrel/
Dksz884x.c5789 int hw_mtu; in netdev_change_mtu() local
5799 hw_mtu = new_mtu + ETHERNET_HEADER_SIZE + 4; in netdev_change_mtu()
5800 if (hw_mtu > REGULAR_RX_BUF_SIZE) { in netdev_change_mtu()
5802 hw_mtu = MAX_RX_BUF_SIZE; in netdev_change_mtu()
5805 hw_mtu = REGULAR_RX_BUF_SIZE; in netdev_change_mtu()
5807 hw_mtu = (hw_mtu + 3) & ~3; in netdev_change_mtu()
5808 hw_priv->mtu = hw_mtu; in netdev_change_mtu()