]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix no default GIDs when netdevice reregisters
authorTalat Batheesh <talatb@mellanox.com>
Wed, 22 Jun 2016 14:27:22 +0000 (17:27 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:03:57 +0000 (10:03 -0400)
commit7d0ffbbebad7eab52f9bd638a17117050642cc5c
treed9c54cb603ec5bb60d2f54a3fbc5e14e44407a73
parent5899522385c9b0242047bb40bc694faed8c1d725
IB/core: Fix no default GIDs when netdevice reregisters

Currently, when the netdevice returned by get_netdev is unregistered,
we delete all GIDs (including the default GIDs) and reset their
attributes. Therefore, when we re-register it, no default GIDs
will be assigned (as their "default GID") attribute will be reset.
Fixing this by keeping "default GID" attribute.

Fixes: 7c8ac3881011 ('IB/core: Add RoCE GID table management')
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c