]> 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)
commitf7836b6a744e506d14a6011f2573cfa46d248549
treed9c54cb603ec5bb60d2f54a3fbc5e14e44407a73
parentbfc569a7d75cf94119c1ef7c87ae8a362fc126e1
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: e94cc05b8433 ('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