* 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
| 1396 | * compile time and may be used for optimization. |
| 1397 | */ |
| 1398 | static __rte_always_inline void |
| 1399 | mlx5_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 |
no test coverage detected