net/bnxt: use macro for PCI log format
[dpdk.git] / drivers / net / mlx5 / mlx5_socket.c
index b037f77..a79896c 100644 (file)
@@ -126,7 +126,7 @@ error:
 static int
 mlx5_pmd_interrupt_handler_install(void)
 {
-       assert(server_socket);
+       MLX5_ASSERT(server_socket);
        server_intr_handle.fd = server_socket;
        server_intr_handle.type = RTE_INTR_HANDLE_EXT;
        return rte_intr_callback_register(&server_intr_handle,
@@ -166,7 +166,7 @@ mlx5_pmd_socket_init(void)
        int ret = -1;
        int flags;
 
-       assert(rte_eal_process_type() == RTE_PROC_PRIMARY);
+       MLX5_ASSERT(rte_eal_process_type() == RTE_PROC_PRIMARY);
        if (server_socket)
                return 0;
        /*
@@ -218,8 +218,7 @@ error:
 /**
  * Un-Initialize the pmd socket
  */
-void __attribute__((destructor))
-mlx5_pmd_socket_uninit(void)
+RTE_FINI(mlx5_pmd_socket_uninit)
 {
        if (!server_socket)
                return;