Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bridge: mrp: Add 'enum br_mrp_hw_support'

Add the enum br_mrp_hw_support that is used by the br_mrp_switchdev
functions to allow the SW to detect the cases where HW can't implement
the functionality or when SW is used as a backup.

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

authored by

Horatiu Vultur and committed by
David S. Miller
e1bd99d0 c513efa2

+14
+14
net/bridge/br_private_mrp.h
··· 46 46 struct rcu_head rcu; 47 47 }; 48 48 49 + /* This type is returned by br_mrp_switchdev functions that allow to have a SW 50 + * backup in case the HW can't implement completely the protocol. 51 + * BR_MRP_NONE - means the HW can't run at all the protocol, so the SW stops 52 + * configuring the node anymore. 53 + * BR_MRP_SW - the HW can help the SW to run the protocol, by redirecting MRP 54 + * frames to CPU. 55 + * BR_MRP_HW - the HW can implement completely the protocol. 56 + */ 57 + enum br_mrp_hw_support { 58 + BR_MRP_NONE, 59 + BR_MRP_SW, 60 + BR_MRP_HW, 61 + }; 62 + 49 63 /* br_mrp.c */ 50 64 int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance); 51 65 int br_mrp_del(struct net_bridge *br, struct br_mrp_instance *instance);