OSDN Git Service

IB/cma: cma_validate_port should verify the port and netdevice
authorMatan Barak <matanb@mellanox.com>
Thu, 15 Oct 2015 15:38:49 +0000 (18:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:48:17 +0000 (23:48 -0400)
commitabae1b71dd37bab506b14a6cf6ba7148f4d57232
treebb1e327e209e8009fea2ef9fda94e5844bfd6376
parentc2c6ff134596e2691de7506667b712bef93cb1f0
IB/cma: cma_validate_port should verify the port and netdevice

Previously, cma_validate_port searched for GIDs in IB cache and then
tried to verify the found port. This could fail when there are
identical GIDs on both ports. In addition, netdevice should be taken
into account when searching the GID table.
Fixing cma_validate_port to search only the relevant port's cache
and netdevice.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c