• Horatiu Vultur's avatar
    bridge: mrp: Disable roles before deleting the MRP instance · b3cb91b9
    Horatiu Vultur authored
    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: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b3cb91b9
br_mrp.c 31.4 KB