]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Namespace is mandatory input for address resolution
authorMoni Shoua <monis@mellanox.com>
Tue, 23 May 2017 07:48:44 +0000 (10:48 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 17 Jul 2017 15:45:34 +0000 (11:45 -0400)
commitc716a58de087776ff39256eeded1be070c48204e
tree39eab06ae863eae1ceb6a35aec02c065da35dfa5
parentc3bd1f6a95c0fd347c48dc6d486a536d8bf05a67
IB/core: Namespace is mandatory input for address resolution

In function addr_resolve() the namespace is a required input parameter
and not an output. It is passed later for searching the routing table
and device addresses. Also, it shouldn't be copied back to the caller.

Fixes: ad3479bc6d69 ('IB/addr: Pass network namespace as a parameter')
Cc: <stable@vger.kernel.org> # v4.3+
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/addr.c