Thread (5 messages) 5 messages, 2 authors, 2024-06-19

Re: [PATCH iproute2 1/3] ip: bridge: add support for mst_enabled

From: Hangbin Liu <hidden>
Date: 2024-06-19 03:02:43

On Fri, Jun 14, 2024 at 03:38:16PM +0200, Tobias Waldekranz wrote:
quoted hunk ↗ jump to hunk
@@ -169,6 +170,18 @@ static int bridge_parse_opt(struct link_util *lu, int argc, char **argv,
 				bm.optval |= no_ll_learn_bit;
 			else
 				bm.optval &= ~no_ll_learn_bit;
+		} else if (matches(*argv, "mst_enabled") == 0) {
+			__u32 mst_bit = 1 << BR_BOOLOPT_MST_ENABLE;
+			__u8 mst_enabled;

Please use strcmp instead of match for new options.

Thanks
Hangbin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help