Lines Matching refs:mc_entry
33 struct mlxsw_sp_nve_mc_entry *mc_entry,
36 const struct mlxsw_sp_nve_mc_entry *mc_entry);
38 const struct mlxsw_sp_nve_mc_entry *mc_entry,
41 const struct mlxsw_sp_nve_mc_entry *mc_entry,
87 struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_add() argument
90 mc_entry->addr4 = addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_add()
97 const struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_ipv4_entry_del() argument
103 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_set() argument
106 u32 udip = be32_to_cpu(mc_entry->addr4); in mlxsw_sp_nve_mc_record_ipv4_entry_set()
113 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_compare() argument
116 return mc_entry->addr4 == addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_compare()
130 struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_add() argument
141 mc_entry->ipv6_entry.addr6 = addr->addr6; in mlxsw_sp_nve_mc_record_ipv6_entry_add()
142 mc_entry->ipv6_entry.addr6_kvdl_index = kvdl_index; in mlxsw_sp_nve_mc_record_ipv6_entry_add()
148 const struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_ipv6_entry_del() argument
151 &mc_entry->ipv6_entry.addr6); in mlxsw_sp_nve_mc_record_ipv6_entry_del()
156 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_set() argument
159 u32 udip_ptr = mc_entry->ipv6_entry.addr6_kvdl_index; in mlxsw_sp_nve_mc_record_ipv6_entry_set()
166 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_compare() argument
169 return ipv6_addr_equal(&mc_entry->ipv6_entry.addr6, &addr->addr6); in mlxsw_sp_nve_mc_record_ipv6_entry_compare()
387 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_record_refresh() local
389 mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_record_refresh()
390 if (!mc_entry->valid) in mlxsw_sp_nve_mc_record_refresh()
392 mc_record->ops->entry_set(mc_record, mc_entry, tnumt_pl, in mlxsw_sp_nve_mc_record_refresh()
423 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_entry_find() local
425 mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_entry_find()
426 if (!mc_entry->valid) in mlxsw_sp_nve_mc_entry_find()
428 if (mc_record->ops->entry_compare(mc_record, mc_entry, addr)) in mlxsw_sp_nve_mc_entry_find()
429 return mc_entry; in mlxsw_sp_nve_mc_entry_find()
439 struct mlxsw_sp_nve_mc_entry *mc_entry = NULL; in mlxsw_sp_nve_mc_record_ip_add() local
442 mc_entry = mlxsw_sp_nve_mc_free_entry_find(mc_record); in mlxsw_sp_nve_mc_record_ip_add()
443 if (WARN_ON(!mc_entry)) in mlxsw_sp_nve_mc_record_ip_add()
446 err = mc_record->ops->entry_add(mc_record, mc_entry, addr); in mlxsw_sp_nve_mc_record_ip_add()
450 mc_entry->valid = true; in mlxsw_sp_nve_mc_record_ip_add()
471 mc_entry->valid = false; in mlxsw_sp_nve_mc_record_ip_add()
473 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_ip_add()
479 struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_entry_del() argument
483 mc_entry->valid = false; in mlxsw_sp_nve_mc_record_entry_del()
491 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
508 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
524 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
531 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
538 struct mlxsw_sp_nve_mc_entry **mc_entry) in mlxsw_sp_nve_mc_record_find() argument
546 *mc_entry = mlxsw_sp_nve_mc_entry_find(mc_record, addr); in mlxsw_sp_nve_mc_record_find()
547 if (*mc_entry) in mlxsw_sp_nve_mc_record_find()
583 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_list_ip_del() local
586 &mc_entry); in mlxsw_sp_nve_mc_list_ip_del()
590 mlxsw_sp_nve_mc_record_entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_list_ip_del()
691 struct mlxsw_sp_nve_mc_entry *mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_record_delete() local
693 if (!mc_entry->valid) in mlxsw_sp_nve_mc_record_delete()
695 mlxsw_sp_nve_mc_record_entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_delete()