| 365 | } |
| 366 | |
| 367 | static void |
| 368 | destroy_default_flow(uint16_t portid) |
| 369 | { |
| 370 | struct rte_flow_error err; |
| 371 | int ret; |
| 372 | |
| 373 | if (default_tx_flow[portid]) { |
| 374 | ret = rte_flow_destroy(portid, default_tx_flow[portid], &err); |
| 375 | if (ret) { |
| 376 | printf("\nDefault Tx flow rule destroy failed\n"); |
| 377 | return; |
| 378 | } |
| 379 | default_tx_flow[portid] = NULL; |
| 380 | } |
| 381 | if (default_rx_flow[portid]) { |
| 382 | ret = rte_flow_destroy(portid, default_rx_flow[portid], &err); |
| 383 | if (ret) { |
| 384 | printf("\nDefault Rx flow rule destroy failed\n"); |
| 385 | return; |
| 386 | } |
| 387 | default_rx_flow[portid] = NULL; |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | static void |
| 392 | print_ethaddr(const char *name, const struct rte_ether_addr *eth_addr) |
no test coverage detected