MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_txpp_destroy

Function mlx5_txpp_destroy

dpdk/drivers/net/mlx5/mlx5_txpp.c:853–864  ·  view source on GitHub ↗

* The routine destroys the packet pacing infrastructure: * - detaches rearm interrupt handler * - Rearm CQ/SQ * - Clock CQ/SQ * - PP context */

Source from the content-addressed store, hash-verified

851 * - PP context
852 */
853static void
854mlx5_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.

Callers 1

mlx5_txpp_stopFunction · 0.85

Tested by

no test coverage detected