br_private.h (99b40610956a8a8755653a67392e2a8b772453be) br_private.h (f83a112bd91a494cdee671aec74e777470fb4a07)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Linux ethernet bridge
4 *
5 * Authors:
6 * Lennert Buytenhek <buytenh@gnu.org>
7 */
8

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

24
25#define BR_HOLD_TIME (1*HZ)
26
27#define BR_PORT_BITS 10
28#define BR_MAX_PORTS (1<<BR_PORT_BITS)
29
30#define BR_MULTICAST_DEFAULT_HASH_MAX 4096
31#define BR_MULTICAST_QUERY_INTVL_MIN msecs_to_jiffies(1000)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Linux ethernet bridge
4 *
5 * Authors:
6 * Lennert Buytenhek <buytenh@gnu.org>
7 */
8

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

24
25#define BR_HOLD_TIME (1*HZ)
26
27#define BR_PORT_BITS 10
28#define BR_MAX_PORTS (1<<BR_PORT_BITS)
29
30#define BR_MULTICAST_DEFAULT_HASH_MAX 4096
31#define BR_MULTICAST_QUERY_INTVL_MIN msecs_to_jiffies(1000)
32#define BR_MULTICAST_STARTUP_QUERY_INTVL_MIN BR_MULTICAST_QUERY_INTVL_MIN
32
33#define BR_HWDOM_MAX BITS_PER_LONG
34
35#define BR_VERSION "2.3"
36
37/* Control of forwarding link local multicast */
38#define BR_GROUPFWD_DEFAULT 0
39/* Don't allow forwarding of control protocols like STP, MAC PAUSE and LACP */

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

961 const struct net_bridge_mcast *brmctx);
962int br_multicast_dump_querier_state(struct sk_buff *skb,
963 const struct net_bridge_mcast *brmctx,
964 int nest_attr);
965size_t br_multicast_querier_state_size(void);
966size_t br_rports_size(const struct net_bridge_mcast *brmctx);
967void br_multicast_set_query_intvl(struct net_bridge_mcast *brmctx,
968 unsigned long val);
33
34#define BR_HWDOM_MAX BITS_PER_LONG
35
36#define BR_VERSION "2.3"
37
38/* Control of forwarding link local multicast */
39#define BR_GROUPFWD_DEFAULT 0
40/* Don't allow forwarding of control protocols like STP, MAC PAUSE and LACP */

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

962 const struct net_bridge_mcast *brmctx);
963int br_multicast_dump_querier_state(struct sk_buff *skb,
964 const struct net_bridge_mcast *brmctx,
965 int nest_attr);
966size_t br_multicast_querier_state_size(void);
967size_t br_rports_size(const struct net_bridge_mcast *brmctx);
968void br_multicast_set_query_intvl(struct net_bridge_mcast *brmctx,
969 unsigned long val);
970void br_multicast_set_startup_query_intvl(struct net_bridge_mcast *brmctx,
971 unsigned long val);
969
970static inline bool br_group_is_l2(const struct br_ip *group)
971{
972 return group->proto == 0;
973}
974
975#define mlock_dereference(X, br) \
976 rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock))

--- 1117 unchanged lines hidden ---
972
973static inline bool br_group_is_l2(const struct br_ip *group)
974{
975 return group->proto == 0;
976}
977
978#define mlock_dereference(X, br) \
979 rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock))

--- 1117 unchanged lines hidden ---