Send burst of packets on an output interface */
| 251 | |
| 252 | /* Send burst of packets on an output interface */ |
| 253 | static __rte_always_inline int32_t |
| 254 | send_burst(struct lcore_conf *qconf, uint16_t n, uint16_t port) |
| 255 | { |
| 256 | struct rte_mbuf **m_table; |
| 257 | int32_t ret; |
| 258 | uint16_t queueid; |
| 259 | |
| 260 | queueid = qconf->tx_queue_id[port]; |
| 261 | m_table = (struct rte_mbuf **)qconf->tx_mbufs[port].m_table; |
| 262 | |
| 263 | ret = rte_eth_tx_burst(port, queueid, m_table, n); |
| 264 | |
| 265 | core_stats_update_tx(ret); |
| 266 | |
| 267 | if (unlikely(ret < n)) { |
| 268 | do { |
| 269 | free_pkts(&m_table[ret], 1); |
| 270 | } while (++ret < n); |
| 271 | } |
| 272 | |
| 273 | return 0; |
| 274 | } |
| 275 | |
| 276 | /* |
| 277 | * Helper function to fragment and queue for TX one packet. |
no test coverage detected