/net/bridge/ |
D | br_multicast_eht.c | 33 static bool br_multicast_del_eht_set_entry(struct net_bridge_port_group *pg, 37 struct net_bridge_port_group *pg, 44 br_multicast_eht_host_lookup(struct net_bridge_port_group *pg, in br_multicast_eht_host_lookup() argument 47 struct rb_node *node = pg->eht_host_tree.rb_node; in br_multicast_eht_host_lookup() 67 static int br_multicast_eht_host_filter_mode(struct net_bridge_port_group *pg, in br_multicast_eht_host_filter_mode() argument 72 eht_host = br_multicast_eht_host_lookup(pg, h_addr); in br_multicast_eht_host_filter_mode() 104 br_multicast_eht_set_lookup(struct net_bridge_port_group *pg, in br_multicast_eht_set_lookup() argument 107 struct rb_node *node = pg->eht_set_tree.rb_node; in br_multicast_eht_set_lookup() 131 br_multicast_eht_hosts_dec(eht_host->pg); in __eht_destroy_host() 133 rb_erase(&eht_host->rb_node, &eht_host->pg->eht_host_tree); in __eht_destroy_host() [all …]
|
D | br_multicast.c | 82 struct net_bridge_port_group *pg); 208 br_multicast_pg_to_port_ctx(const struct net_bridge_port_group *pg) in br_multicast_pg_to_port_ctx() argument 210 struct net_bridge_mcast_port *pmctx = &pg->key.port->multicast_ctx; in br_multicast_pg_to_port_ctx() 213 lockdep_assert_held_once(&pg->key.port->br->multicast_lock); in br_multicast_pg_to_port_ctx() 216 if (!pg->key.addr.vid || in br_multicast_pg_to_port_ctx() 217 !br_opt_get(pg->key.port->br, BROPT_MCAST_VLAN_SNOOPING_ENABLED)) in br_multicast_pg_to_port_ctx() 227 vlan = br_vlan_find(nbp_vlan_group_rcu(pg->key.port), pg->key.addr.vid); in br_multicast_pg_to_port_ctx() 269 struct net_bridge_port_group *pg, in __fwd_add_star_excl() argument 278 sg_key.port = pg->key.port; in __fwd_add_star_excl() 284 sg_ip, pg->eth_addr, in __fwd_add_star_excl() [all …]
|
D | br_private_mcast_eht.h | 24 struct net_bridge_port_group *pg; member 47 struct net_bridge_port_group *pg; member 53 void br_multicast_eht_clean_sets(struct net_bridge_port_group *pg); 55 struct net_bridge_port_group *pg, 65 br_multicast_eht_should_del_pg(const struct net_bridge_port_group *pg) in br_multicast_eht_should_del_pg() argument 67 return !!((pg->key.port->flags & BR_MULTICAST_FAST_LEAVE) && in br_multicast_eht_should_del_pg() 68 RB_EMPTY_ROOT(&pg->eht_host_tree)); in br_multicast_eht_should_del_pg() 72 br_multicast_eht_hosts_over_limit(const struct net_bridge_port_group *pg) in br_multicast_eht_hosts_over_limit() argument 74 const struct net_bridge_port *p = pg->key.port; in br_multicast_eht_hosts_over_limit() 79 static inline void br_multicast_eht_hosts_inc(struct net_bridge_port_group *pg) in br_multicast_eht_hosts_inc() argument [all …]
|
D | br_mdb.c | 464 struct net_bridge_port_group *pg, in nlmsg_populate_mdb_fill() argument 486 if (__mdb_fill_info(skb, mp, pg)) in nlmsg_populate_mdb_fill() 501 static size_t rtnl_mdb_nlmsg_size(struct net_bridge_port_group *pg) in rtnl_mdb_nlmsg_size() argument 509 if (!pg) in rtnl_mdb_nlmsg_size() 515 switch (pg->key.addr.proto) { in rtnl_mdb_nlmsg_size() 518 if (pg->key.addr.src.ip4) in rtnl_mdb_nlmsg_size() 520 if (pg->key.port->br->multicast_ctx.multicast_igmp_version == 2) in rtnl_mdb_nlmsg_size() 527 if (!ipv6_addr_any(&pg->key.addr.src.ip6)) in rtnl_mdb_nlmsg_size() 529 if (pg->key.port->br->multicast_ctx.multicast_mld_version == 1) in rtnl_mdb_nlmsg_size() 540 if (!hlist_empty(&pg->src_list)) in rtnl_mdb_nlmsg_size() [all …]
|
D | br_private.h | 295 struct net_bridge_port_group *pg; member 923 struct net_bridge_port_group *pg, int type); 927 struct net_bridge_port_group *pg, 942 void br_multicast_star_g_handle_mode(struct net_bridge_port_group *pg, 947 br_multicast_find_group_src(struct net_bridge_port_group *pg, struct br_ip *ip);
|
/net/netfilter/ |
D | nft_set_pipapo_avx2.c | 219 u8 pg[2] = { pkt[0] >> 4, pkt[0] & 0xf }; in nft_pipapo_avx2_lookup_4b_2() local 227 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2() 228 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2() 231 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2() 233 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2() 281 u8 pg[4] = { pkt[0] >> 4, pkt[0] & 0xf, pkt[1] >> 4, pkt[1] & 0xf }; in nft_pipapo_avx2_lookup_4b_4() local 289 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_4() 290 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_4() 291 NFT_PIPAPO_AVX2_BUCKET_LOAD4(2, lt, 2, pg[2], bsize); in nft_pipapo_avx2_lookup_4b_4() 292 NFT_PIPAPO_AVX2_BUCKET_LOAD4(3, lt, 3, pg[3], bsize); in nft_pipapo_avx2_lookup_4b_4() [all …]
|
/net/ceph/ |
D | debugfs.c | 93 struct ceph_pg_mapping *pg = in osdmap_show() local 96 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show() 97 pg->pgid.seed); in osdmap_show() 98 for (i = 0; i < pg->pg_temp.len; i++) in osdmap_show() 100 pg->pg_temp.osds[i]); in osdmap_show() 104 struct ceph_pg_mapping *pg = in osdmap_show() local 107 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, in osdmap_show() 108 pg->pgid.seed, pg->primary_temp.osd); in osdmap_show() 111 struct ceph_pg_mapping *pg = in osdmap_show() local 114 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, in osdmap_show() [all …]
|
D | osdmap.c | 693 struct ceph_pg_mapping *pg; in alloc_pg_mapping() local 695 pg = kmalloc(sizeof(*pg) + payload_len, GFP_NOIO); in alloc_pg_mapping() 696 if (!pg) in alloc_pg_mapping() 699 RB_CLEAR_NODE(&pg->node); in alloc_pg_mapping() 700 return pg; in alloc_pg_mapping() 703 static void free_pg_mapping(struct ceph_pg_mapping *pg) in free_pg_mapping() argument 705 WARN_ON(!RB_EMPTY_NODE(&pg->node)); in free_pg_mapping() 707 kfree(pg); in free_pg_mapping() 1136 struct ceph_pg_mapping *pg = in ceph_osdmap_destroy() local 1139 erase_pg_mapping(&map->pg_temp, pg); in ceph_osdmap_destroy() [all …]
|
/net/dcb/ |
D | dcbnl.c | 1180 struct nlattr *pg = nla_nest_start_noflag(skb, i); in dcbnl_cee_pg_fill() local 1182 if (!pg) in dcbnl_cee_pg_fill() 1223 nla_nest_end(skb, pg); in dcbnl_cee_pg_fill() 1328 struct cee_pg pg; in dcbnl_cee_fill() local 1329 memset(&pg, 0, sizeof(pg)); in dcbnl_cee_fill() 1330 err = ops->cee_peer_getpg(netdev, &pg); in dcbnl_cee_fill() 1332 nla_put(skb, DCB_ATTR_CEE_PEER_PG, sizeof(pg), &pg)) in dcbnl_cee_fill()
|