]> asedeno.scripts.mit.edu Git - linux.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)
commitf336ae03149725bb5844166c7b04f7f65f17eec9
treed9c54cb603ec5bb60d2f54a3fbc5e14e44407a73
parent61c78eea9516a921799c17b4c20558e2aa780fd3
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: 03db3a2d81e6 ('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