]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mrp: Restore port state when deleting MRP instance
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 21 May 2020 23:19:07 +0000 (23:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 23:17:15 +0000 (16:17 -0700)
commit44ca840d7c001abda7dcb10756c13694b2f4564d
treef127f0ca4b86898b7528b157e7bd397b41dafe30
parent022a942fba9568c814765a244b4f87a1c6c6b90c
bridge: mrp: Restore port state when deleting MRP instance

When a MRP instance is deleted, then restore the port according to the
bridge state. If the bridge is up then the ports will be in forwarding
state otherwise will be in disabled state.

Fixes: 0c138d14d158 ("bridge: mrp: Connect MRP API with the switchdev API")
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mrp.c