net/mlx5: add pattern template management
[dpdk.git] / drivers / net / mlx5 / windows / mlx5_flow_os.c
index c4d5790..f5e3893 100644 (file)
@@ -372,7 +372,7 @@ mlx5_flow_os_init_workspace_once(void)
 
        if (err) {
                DRV_LOG(ERR, "Can't create flow workspace data thread key.");
-               return err;
+               return -rte_errno;
        }
        pthread_mutex_init(&lock_thread_list, NULL);
        return 0;
@@ -400,7 +400,7 @@ mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data)
                /*
                 * set_specific_workspace when current value is NULL
                 * can happen only once per thread, mark this thread in
-                * linked list to be able to release reasorces later on.
+                * linked list to be able to release resources later on.
                 */
                err = mlx5_add_workspace_to_list(data);
                if (err) {