New upstream version 17.11.4
[deb_dpdk.git] / drivers / net / mlx5 / mlx5_socket.c
index 7ab3100..97f90c0 100644 (file)
@@ -61,6 +61,12 @@ mlx5_socket_init(struct rte_eth_dev *dev)
        int ret;
        int flags;
 
+       /*
+        * Close the last socket that was used to communicate
+        * with the secondary process
+        */
+       if (priv->primary_socket)
+               mlx5_socket_uninit(dev);
        /*
         * Initialise the socket to communicate with the secondary
         * process.