diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2020-05-30 18:09:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-01 11:56:11 -0700 |
commit | 4b3a61b030d1131dcf3633a276158a3d0a435a47 (patch) | |
tree | e68bce001797bc8b8beaeabb45e286b219df5673 /net/bridge/br_mrp_switchdev.c | |
parent | 7e89ed8ab3f74e0746d3ea80537d7a06b0e27732 (diff) | |
download | lwn-4b3a61b030d1131dcf3633a276158a3d0a435a47.tar.gz lwn-4b3a61b030d1131dcf3633a276158a3d0a435a47.zip |
bridge: mrp: Set the priority of MRP instance
Each MRP instance has a priority, a lower value means a higher priority.
The priority of MRP instance is stored in MRP_Test frame in this way
all the MRP nodes in the ring can see other nodes priority.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_mrp_switchdev.c')
-rw-r--r-- | net/bridge/br_mrp_switchdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_mrp_switchdev.c b/net/bridge/br_mrp_switchdev.c index 51cb1d5a24b4..3a776043bf80 100644 --- a/net/bridge/br_mrp_switchdev.c +++ b/net/bridge/br_mrp_switchdev.c @@ -12,6 +12,7 @@ int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp) .p_port = rtnl_dereference(mrp->p_port)->dev, .s_port = rtnl_dereference(mrp->s_port)->dev, .ring_id = mrp->ring_id, + .prio = mrp->prio, }; int err; |