| 499 | } |
| 500 | |
| 501 | void |
| 502 | mlx5_mr_rebuild_cache(struct mlx5_mr_share_cache *share_cache) |
| 503 | { |
| 504 | struct mlx5_mr *mr; |
| 505 | |
| 506 | DRV_LOG(DEBUG, "Rebuild dev cache[] %p", (void *)share_cache); |
| 507 | /* Flush cache to rebuild. */ |
| 508 | share_cache->cache.len = 1; |
| 509 | /* Iterate all the existing MRs. */ |
| 510 | LIST_FOREACH(mr, &share_cache->mr_list, mr) |
| 511 | if (mlx5_mr_insert_cache(share_cache, mr) < 0) |
| 512 | return; |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Release resources of detached MR having no online entry. |
no test coverage detected