diff options
| author | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-12 19:12:47 -0900 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-19 08:13:39 -0900 |
| commit | ea1075edcbab7d92f4e4ccf5490043f796bf78be (patch) | |
| tree | 618fb95aa42e446d18020d6851bab321be2c3b4b /.clang-format | |
| parent | f2a0e45f36b0a210ff2388ed5fa89f81019c07a1 (diff) | |
| download | linux-stable-ea1075edcbab7d92f4e4ccf5490043f796bf78be.tar.gz linux-stable-ea1075edcbab7d92f4e4ccf5490043f796bf78be.tar.bz2 linux-stable-ea1075edcbab7d92f4e4ccf5490043f796bf78be.tar.xz linux-stable-ea1075edcbab7d92f4e4ccf5490043f796bf78be.zip | |
RDMA: Add and use rdma_for_each_port
We have many loops iterating over all of the end port numbers on a struct
ib_device, simplify them with a for_each helper.
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '.clang-format')
| -rw-r--r-- | .clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 335ce29ab813..201a4f531b90 100644 --- a/.clang-format +++ b/.clang-format | |||
| @@ -361,6 +361,7 @@ ForEachMacros: | |||
| 361 | - 'radix_tree_for_each_slot' | 361 | - 'radix_tree_for_each_slot' |
| 362 | - 'radix_tree_for_each_tagged' | 362 | - 'radix_tree_for_each_tagged' |
| 363 | - 'rbtree_postorder_for_each_entry_safe' | 363 | - 'rbtree_postorder_for_each_entry_safe' |
| 364 | - 'rdma_for_each_port' | ||
| 364 | - 'resource_list_for_each_entry' | 365 | - 'resource_list_for_each_entry' |
| 365 | - 'resource_list_for_each_entry_safe' | 366 | - 'resource_list_for_each_entry_safe' |
| 366 | - 'rhl_for_each_entry_rcu' | 367 | - 'rhl_for_each_entry_rcu' |
