* The routine destroys the packet pacing infrastructure: * - detaches rearm interrupt handler * - Rearm CQ/SQ * - Clock CQ/SQ * - PP context */
| 851 | * - PP context |
| 852 | */ |
| 853 | static void |
| 854 | mlx5_txpp_destroy(struct mlx5_dev_ctx_shared *sh) |
| 855 | { |
| 856 | mlx5_txpp_stop_service(sh); |
| 857 | mlx5_txpp_destroy_rearm_queue(sh); |
| 858 | mlx5_txpp_destroy_clock_queue(sh); |
| 859 | mlx5_txpp_free_pp_index(sh); |
| 860 | mlx5_txpp_destroy_event_channel(sh); |
| 861 | sh->txpp.tick = 0; |
| 862 | sh->txpp.test = 0; |
| 863 | sh->txpp.skew = 0; |
| 864 | } |
| 865 | |
| 866 | /** |
| 867 | * Creates and starts packet pacing infrastructure on specified device. |
no test coverage detected