]> 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)
commit786d727784275f86e69bda79c256993148f9571b
tree1fd3e30f6d166f15b98250f9688d7d76b36a967f
parent9ad5833b86190982968ffbff8ef51f53f143f3b1
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