Commit 93a4a9b
RDMA/core: Check id_priv->restricted_node_type in cma_listen_on_dev()
When listening on wildcard addresses we have a global list for the application
layer rdma_cm_id and for any existing device or any device added in future we
try to listen on any wildcard listener.
When the listener has a restricted_node_type we should prevent listening on
devices with a different node type.
While there fix the documentation comment of rdma_restrict_node_type()
to include rdma_resolve_addr() instead of having rdma_bind_addr() twice.
Fixes: a760e80 ("RDMA/core: introduce rdma_restrict_node_type()")
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-rdma@vger.kernel.org
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Link: https://patch.msgid.link/20260224165951.3582093-2-metze@samba.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>1 parent faa7210 commit 93a4a9b
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2729 | 2729 | | |
2730 | 2730 | | |
2731 | 2731 | | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
2732 | 2735 | | |
2733 | 2736 | | |
2734 | 2737 | | |
2735 | 2738 | | |
2736 | 2739 | | |
2737 | 2740 | | |
2738 | 2741 | | |
| 2742 | + | |
2739 | 2743 | | |
2740 | 2744 | | |
2741 | 2745 | | |
| |||
4194 | 4198 | | |
4195 | 4199 | | |
4196 | 4200 | | |
4197 | | - | |
| 4201 | + | |
4198 | 4202 | | |
4199 | 4203 | | |
4200 | 4204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments