Commit f30a123
vdpa/mlx5: Introduce init/destroy for MR resources
There's currently not a lot of action happening during
the init/destroy of MR resources. But more will be added
in the upcoming patches.
As the mr mutex lock init/destroy has been moved to these
new functions, the lifetime has now shifted away from
mlx5_vdpa_alloc_resources() / mlx5_vdpa_free_resources()
into these new functions. However, the lifetime at the
outer scope remains the same:
mlx5_vdpa_dev_add() / mlx5_vdpa_dev_free()
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Cosmin Ratiu <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>1 parent 58d4d50 commit f30a123
File tree
4 files changed
+26
-5
lines changed- drivers/vdpa/mlx5
- core
- net
4 files changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
| |||
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
321 | | - | |
322 | 319 | | |
323 | 320 | | |
324 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3434 | 3434 | | |
3435 | 3435 | | |
3436 | 3436 | | |
| 3437 | + | |
3437 | 3438 | | |
3438 | 3439 | | |
3439 | 3440 | | |
| |||
3962 | 3963 | | |
3963 | 3964 | | |
3964 | 3965 | | |
3965 | | - | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
3966 | 3969 | | |
3967 | 3970 | | |
3968 | 3971 | | |
3969 | 3972 | | |
3970 | | - | |
| 3973 | + | |
3971 | 3974 | | |
3972 | 3975 | | |
3973 | 3976 | | |
| |||
4009 | 4012 | | |
4010 | 4013 | | |
4011 | 4014 | | |
| 4015 | + | |
| 4016 | + | |
4012 | 4017 | | |
4013 | 4018 | | |
4014 | 4019 | | |
| |||
0 commit comments