Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
Show First 20 Lines • Show All 622 Lines • ▼ Show 20 Lines | #endif | ||||
return ((queue_index % rings_p_up) + (up * rings_p_up)); | return ((queue_index % rings_p_up) + (up * rings_p_up)); | ||||
} | } | ||||
static void mlx4_bf_copy(void __iomem *dst, volatile unsigned long *src, unsigned bytecnt) | static void mlx4_bf_copy(void __iomem *dst, volatile unsigned long *src, unsigned bytecnt) | ||||
{ | { | ||||
__iowrite64_copy(dst, __DEVOLATILE(void *, src), bytecnt / 8); | __iowrite64_copy(dst, __DEVOLATILE(void *, src), bytecnt / 8); | ||||
} | } | ||||
static int mlx4_en_xmit(struct mlx4_en_priv *priv, int tx_ind, struct mbuf **mbp) | int mlx4_en_xmit(struct mlx4_en_priv *priv, int tx_ind, struct mbuf **mbp) | ||||
{ | { | ||||
enum { | enum { | ||||
DS_FACT = TXBB_SIZE / DS_SIZE_ALIGNMENT, | DS_FACT = TXBB_SIZE / DS_SIZE_ALIGNMENT, | ||||
CTRL_FLAGS = cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE | | CTRL_FLAGS = cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE | | ||||
MLX4_WQE_CTRL_SOLICITED), | MLX4_WQE_CTRL_SOLICITED), | ||||
}; | }; | ||||
bus_dma_segment_t segs[MLX4_EN_TX_MAX_MBUF_FRAGS]; | bus_dma_segment_t segs[MLX4_EN_TX_MAX_MBUF_FRAGS]; | ||||
volatile struct mlx4_wqe_data_seg *dseg; | volatile struct mlx4_wqe_data_seg *dseg; | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |