MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_tx_dseg_ptr

Function mlx5_tx_dseg_ptr

dpdk/drivers/net/mlx5/mlx5_tx.h:1398–1411  ·  view source on GitHub ↗

* Build the Data Segment of pointer type. * * @param txq * Pointer to TX queue structure. * @param loc * Pointer to burst routine local context. * @param dseg * Pointer to WQE to fill with built Data Segment. * @param buf * Data buffer to point. * @param len * Data buffer length. * @param olx * Configured Tx offloads mask. It is fully defined at * compile time and may b

Source from the content-addressed store, hash-verified

1396 * compile time and may be used for optimization.
1397 */
1398static __rte_always_inline void
1399mlx5_tx_dseg_ptr(struct mlx5_txq_data *__rte_restrict txq,
1400 struct mlx5_txq_local *__rte_restrict loc,
1401 struct mlx5_wqe_dseg *__rte_restrict dseg,
1402 uint8_t *buf,
1403 unsigned int len,
1404 unsigned int olx __rte_unused)
1405
1406{
1407 MLX5_ASSERT(len);
1408 dseg->bcount = rte_cpu_to_be_32(len);
1409 dseg->lkey = mlx5_mr_mb2mr(&txq->mr_ctrl, loc->mbuf);
1410 dseg->pbuf = rte_cpu_to_be_64((uintptr_t)buf);
1411}
1412
1413/**
1414 * Build the Data Segment of pointer type or inline if data length is less than

Callers 5

mlx5_tx_burst_tsoFunction · 0.85

Calls 1

mlx5_mr_mb2mrFunction · 0.85

Tested by

no test coverage detected