Searched refs:hw_mtu (Results 1 – 14 of 14) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 239 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()
|
D | trap.c | 52 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_trap_rq()
|
D | xdp.c | 483 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()
|
D | ptp.c | 338 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/ |
D | bcm63xx_enet.h | 332 unsigned int hw_mtu; member
|
D | bcm63xx_enet.c | 1049 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/ |
D | setup.c | 80 rq->hw_mtu = MLX5E_SW2HW_MTU(params, params->sw_mtu); in mlx5e_init_xsk_rq()
|
D | rx.c | 258 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/ |
D | en.h | 445 unsigned int hw_mtu; member 511 unsigned int hw_mtu; member 707 unsigned int hw_mtu; member
|
D | en_main.c | 750 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 …]
|
D | en_rx.c | 2141 if (unlikely(cqe_bcnt > rq->hw_mtu)) { in mlx5e_skb_from_cqe_mpwrq_linear()
|
/linux-6.12.1/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 5410 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/ |
D | ktls_tx.c | 801 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/ |
D | mlx5_vnet.c | 3695 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()
|