linux/net/bridge/br_private_mcast_eht.h

/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2020, Nikolay Aleksandrov <[email protected]>
 */
#ifndef _BR_PRIVATE_MCAST_EHT_H_
#define _BR_PRIVATE_MCAST_EHT_H_

#define BR_MCAST_DEFAULT_EHT_HOSTS_LIMIT

net_bridge_eht_addr;

/* single host's list of set entries and filter_mode */
struct net_bridge_group_eht_host {};

/* (host, src entry) added to a per-src set and host's list */
struct net_bridge_group_eht_set_entry {};

/* per-src set */
struct net_bridge_group_eht_set {};

#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
void br_multicast_eht_clean_sets(struct net_bridge_port_group *pg);
bool br_multicast_eht_handle(const struct net_bridge_mcast *brmctx,
			     struct net_bridge_port_group *pg,
			     void *h_addr,
			     void *srcs,
			     u32 nsrcs,
			     size_t addr_size,
			     int grec_type);
int br_multicast_eht_set_hosts_limit(struct net_bridge_port *p,
				     u32 eht_hosts_limit);

static inline bool
br_multicast_eht_should_del_pg(const struct net_bridge_port_group *pg)
{}

static inline bool
br_multicast_eht_hosts_over_limit(const struct net_bridge_port_group *pg)
{}

static inline void br_multicast_eht_hosts_inc(struct net_bridge_port_group *pg)
{}

static inline void br_multicast_eht_hosts_dec(struct net_bridge_port_group *pg)
{}
#endif /* CONFIG_BRIDGE_IGMP_SNOOPING */

#endif /* _BR_PRIVATE_MCAST_EHT_H_ */