1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
3 * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved.
11 #if IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS)
12 int mlx5_ib_fs_init(struct mlx5_ib_dev
*dev
);
14 static inline int mlx5_ib_fs_init(struct mlx5_ib_dev
*dev
)
16 dev
->flow_db
= kzalloc(sizeof(*dev
->flow_db
), GFP_KERNEL
);
21 mutex_init(&dev
->flow_db
->lock
);
25 static inline void mlx5_ib_fs_cleanup(struct mlx5_ib_dev
*dev
)
29 #endif /* _MLX5_IB_FS_H */