| 243 | } |
| 244 | |
| 245 | void |
| 246 | eth_dev_fp_ops_reset(struct rte_eth_fp_ops *fpo) |
| 247 | { |
| 248 | static RTE_ATOMIC(void *) dummy_data[RTE_MAX_QUEUES_PER_PORT]; |
| 249 | uintptr_t port_id = fpo - rte_eth_fp_ops; |
| 250 | |
| 251 | per_port_queues[port_id].rx_warn_once = false; |
| 252 | per_port_queues[port_id].tx_warn_once = false; |
| 253 | *fpo = (struct rte_eth_fp_ops) { |
| 254 | .rx_pkt_burst = dummy_eth_rx_burst, |
| 255 | .tx_pkt_burst = dummy_eth_tx_burst, |
| 256 | .rxq = { |
| 257 | .data = (void **)&dummy_queues_array[port_id], |
| 258 | .clbk = dummy_data, |
| 259 | }, |
| 260 | .txq = { |
| 261 | .data = (void **)&dummy_queues_array[port_id], |
| 262 | .clbk = dummy_data, |
| 263 | }, |
| 264 | }; |
| 265 | } |
| 266 | |
| 267 | void |
| 268 | eth_dev_fp_ops_setup(struct rte_eth_fp_ops *fpo, |
no outgoing calls
no test coverage detected