]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mrp: Disable roles before deleting the MRP instance
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 23 Mar 2021 08:33:46 +0000 (09:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 19:14:08 +0000 (12:14 -0700)
commit61433ea3dff1df976dea4b460610f1feec0170c3
tree1fd3e30f6d166f15b98250f9688d7d76b36a967f
parente05aabd243be8312ad81b2dae0ca8f4133fc7638
bridge: mrp: Disable roles before deleting the MRP instance

When an MRP instance was created, the driver was notified that the
instance is created and then in a different callback about role of the
instance. But when the instance was deleted the driver was notified only
that the MRP instance is deleted and not also that the role is disabled.

This patch make sure that the driver is notified that the role is
changed to disabled before the MRP instance is deleted to have similar
callbacks with the creating of the instance. In this way it would
simplify the logic in the drivers.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mrp.c