IB/core: Reorder GID delete code for RoCE
authorPatrisious Haddad <phaddad@nvidia.com>
Mon, 21 Nov 2022 09:59:28 +0000 (11:59 +0200)
committerLeon Romanovsky <leon@kernel.org>
Sun, 20 Aug 2023 09:35:24 +0000 (12:35 +0300)
commita019b1258da14058668e249ade33b8b2951aaeae
tree154ab09a3437c83abd22da9956a14a8a3b204c5f
parentafcb21d5a89b40c3062aa48d39ab5340abf7dcd8
IB/core: Reorder GID delete code for RoCE

Reorder GID delete code so that the driver del_gid operation is executed
before nullifying the gid attribute ndev parameter, this allows drivers
to access the ndev during their gid delete operation, which makes more
sense since they had access to it during the gid addition operation.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/cache.c