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

net: bridge: Add port attribute IFLA_BRPORT_MRP_IN_OPEN

This patch adds a new port attribute, IFLA_BRPORT_MRP_IN_OPEN, which
allows to notify the userspace when the node lost the contiuity of
MRP_InTest frames.

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

authored by

Horatiu Vultur and committed by
David S. Miller
ffb3adba 4fc4871f

+5
+1
include/uapi/linux/if_link.h
··· 344 344 IFLA_BRPORT_ISOLATED, 345 345 IFLA_BRPORT_BACKUP_PORT, 346 346 IFLA_BRPORT_MRP_RING_OPEN, 347 + IFLA_BRPORT_MRP_IN_OPEN, 347 348 __IFLA_BRPORT_MAX 348 349 }; 349 350 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
+3
net/bridge/br_netlink.c
··· 152 152 #endif 153 153 + nla_total_size(sizeof(u16)) /* IFLA_BRPORT_GROUP_FWD_MASK */ 154 154 + nla_total_size(sizeof(u8)) /* IFLA_BRPORT_MRP_RING_OPEN */ 155 + + nla_total_size(sizeof(u8)) /* IFLA_BRPORT_MRP_IN_OPEN */ 155 156 + 0; 156 157 } 157 158 ··· 217 216 !!(p->flags & BR_NEIGH_SUPPRESS)) || 218 217 nla_put_u8(skb, IFLA_BRPORT_MRP_RING_OPEN, !!(p->flags & 219 218 BR_MRP_LOST_CONT)) || 219 + nla_put_u8(skb, IFLA_BRPORT_MRP_IN_OPEN, 220 + !!(p->flags & BR_MRP_LOST_IN_CONT)) || 220 221 nla_put_u8(skb, IFLA_BRPORT_ISOLATED, !!(p->flags & BR_ISOLATED))) 221 222 return -EMSGSIZE; 222 223
+1
tools/include/uapi/linux/if_link.h
··· 344 344 IFLA_BRPORT_ISOLATED, 345 345 IFLA_BRPORT_BACKUP_PORT, 346 346 IFLA_BRPORT_MRP_RING_OPEN, 347 + IFLA_BRPORT_MRP_IN_OPEN, 347 348 __IFLA_BRPORT_MAX 348 349 }; 349 350 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)