Searched refs:hw_mtu (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 31 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()
|
D | xdp.c | 258 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/ |
D | ktls.h | 105 (nfrags + DIV_ROUND_UP(sync_len, sq->hw_mtu)); in mlx5e_ktls_dumps_num_wqebbs()
|
D | ktls_tx.c | 394 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/ |
D | bcm63xx_enet.h | 326 unsigned int hw_mtu; member
|
D | bcm63xx_enet.c | 1011 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/ |
D | rx.c | 101 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en.h | 413 unsigned int hw_mtu; member 536 unsigned int hw_mtu; member 672 unsigned int hw_mtu; member
|
D | en_main.c | 401 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 …]
|
D | en_rx.c | 1294 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_skb_from_cqe_mpwrq_linear()
|
/Linux-v5.4/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 5789 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()
|