br_netlink.c (99b40610956a8a8755653a67392e2a8b772453be) br_netlink.c (f83a112bd91a494cdee671aec74e777470fb4a07)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Bridge netlink control interface
4 *
5 * Authors:
6 * Stephen Hemminger <shemminger@osdl.org>
7 */
8

--- 1355 unchanged lines hidden (view full) ---

1364 u64 val = nla_get_u64(data[IFLA_BR_MCAST_QUERY_RESPONSE_INTVL]);
1365
1366 br->multicast_ctx.multicast_query_response_interval = clock_t_to_jiffies(val);
1367 }
1368
1369 if (data[IFLA_BR_MCAST_STARTUP_QUERY_INTVL]) {
1370 u64 val = nla_get_u64(data[IFLA_BR_MCAST_STARTUP_QUERY_INTVL]);
1371
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Bridge netlink control interface
4 *
5 * Authors:
6 * Stephen Hemminger <shemminger@osdl.org>
7 */
8

--- 1355 unchanged lines hidden (view full) ---

1364 u64 val = nla_get_u64(data[IFLA_BR_MCAST_QUERY_RESPONSE_INTVL]);
1365
1366 br->multicast_ctx.multicast_query_response_interval = clock_t_to_jiffies(val);
1367 }
1368
1369 if (data[IFLA_BR_MCAST_STARTUP_QUERY_INTVL]) {
1370 u64 val = nla_get_u64(data[IFLA_BR_MCAST_STARTUP_QUERY_INTVL]);
1371
1372 br->multicast_ctx.multicast_startup_query_interval = clock_t_to_jiffies(val);
1372 br_multicast_set_startup_query_intvl(&br->multicast_ctx, val);
1373 }
1374
1375 if (data[IFLA_BR_MCAST_STATS_ENABLED]) {
1376 __u8 mcast_stats;
1377
1378 mcast_stats = nla_get_u8(data[IFLA_BR_MCAST_STATS_ENABLED]);
1379 br_opt_toggle(br, BROPT_MULTICAST_STATS_ENABLED, !!mcast_stats);
1380 }

--- 440 unchanged lines hidden ---
1373 }
1374
1375 if (data[IFLA_BR_MCAST_STATS_ENABLED]) {
1376 __u8 mcast_stats;
1377
1378 mcast_stats = nla_get_u8(data[IFLA_BR_MCAST_STATS_ENABLED]);
1379 br_opt_toggle(br, BROPT_MULTICAST_STATS_ENABLED, !!mcast_stats);
1380 }

--- 440 unchanged lines hidden ---