Send burst of packets on an output interface */
| 158 | |
| 159 | /* Send burst of packets on an output interface */ |
| 160 | static void |
| 161 | send_burst(struct lcore_queue_conf *qconf, uint16_t port) |
| 162 | { |
| 163 | struct rte_mbuf **m_table; |
| 164 | uint16_t n, queueid; |
| 165 | int ret; |
| 166 | |
| 167 | queueid = qconf->tx_queue_id[port]; |
| 168 | m_table = (struct rte_mbuf **)qconf->tx_mbufs[port].m_table; |
| 169 | n = qconf->tx_mbufs[port].len; |
| 170 | |
| 171 | ret = rte_eth_tx_burst(port, queueid, m_table, n); |
| 172 | while (unlikely (ret < n)) { |
| 173 | rte_pktmbuf_free(m_table[ret]); |
| 174 | ret++; |
| 175 | } |
| 176 | |
| 177 | qconf->tx_mbufs[port].len = 0; |
| 178 | } |
| 179 | |
| 180 | /* Get number of bits set. 8< */ |
| 181 | static inline uint32_t |
no test coverage detected