]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mrp: Update br_mrp to use new return values of br_mrp_switchdev
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 16 Feb 2021 21:42:02 +0000 (22:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:47:46 +0000 (14:47 -0800)
commitc1480e7b2c24e9dc0812c8bd72aeb5541f7c5e27
tree7f97101453c7859bf260c1ca2a63f9b9d42f845e
parent9d0061d52a18235618131dab401ec3da0a2344fe
bridge: mrp: Update br_mrp to use new return values of br_mrp_switchdev

Check the return values of the br_mrp_switchdev function.
In case of:
- BR_MRP_NONE, return the error to userspace,
- BR_MRP_SW, continue with SW implementation,
- BR_MRP_HW, continue without SW implementation,

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