Handle all mbufs on dpaa BMAN managed pool */
| 960 | |
| 961 | /* Handle all mbufs on dpaa BMAN managed pool */ |
| 962 | static inline uint16_t |
| 963 | tx_on_dpaa_pool(struct rte_mbuf *mbuf, |
| 964 | struct dpaa_bp_info *bp_info, |
| 965 | struct qm_fd *fd_arr, |
| 966 | struct dpaa_sw_buf_free *buf_to_free, |
| 967 | uint32_t *free_count, |
| 968 | uint32_t pkt_id) |
| 969 | { |
| 970 | DPAA_DP_LOG(DEBUG, "BMAN offloaded buffer, mbuf: %p", mbuf); |
| 971 | |
| 972 | if (mbuf->nb_segs == 1) { |
| 973 | /* Case for non-segmented buffers */ |
| 974 | tx_on_dpaa_pool_unsegmented(mbuf, bp_info, fd_arr, |
| 975 | buf_to_free, free_count, pkt_id); |
| 976 | } else if (mbuf->nb_segs > 1 && |
| 977 | mbuf->nb_segs <= DPAA_SGT_MAX_ENTRIES) { |
| 978 | if (dpaa_eth_mbuf_to_sg_fd(mbuf, fd_arr, buf_to_free, |
| 979 | free_count, pkt_id)) { |
| 980 | DPAA_PMD_DEBUG("Unable to create Scatter Gather FD"); |
| 981 | return 1; |
| 982 | } |
| 983 | } else { |
| 984 | DPAA_PMD_DEBUG("Number of Segments not supported"); |
| 985 | return 1; |
| 986 | } |
| 987 | |
| 988 | return 0; |
| 989 | } |
| 990 | |
| 991 | /* Handle all mbufs on an external pool (non-dpaa) */ |
| 992 | static inline struct rte_mbuf * |
no test coverage detected