| 227 | } |
| 228 | |
| 229 | static inline int |
| 230 | free_tx_buffers(struct rte_eth_dev_tx_buffer *tx_buffer[]) { |
| 231 | uint16_t port_id; |
| 232 | |
| 233 | /* initialize buffers for all ports */ |
| 234 | RTE_ETH_FOREACH_DEV(port_id) { |
| 235 | /* skip ports that are not enabled */ |
| 236 | if ((portmask & (1 << port_id)) == 0) |
| 237 | continue; |
| 238 | |
| 239 | rte_free(tx_buffer[port_id]); |
| 240 | } |
| 241 | return 0; |
| 242 | } |
| 243 | |
| 244 | static inline int |
| 245 | configure_tx_buffers(struct rte_eth_dev_tx_buffer *tx_buffer[]) |
no test coverage detected