Searched refs:fwd_entry (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 560 struct mlxsw_afa_fwd_entry *fwd_entry; in mlxsw_afa_fwd_entry_create() local 563 fwd_entry = kzalloc(sizeof(*fwd_entry), GFP_KERNEL); in mlxsw_afa_fwd_entry_create() 564 if (!fwd_entry) in mlxsw_afa_fwd_entry_create() 566 fwd_entry->ht_key.local_port = local_port; in mlxsw_afa_fwd_entry_create() 567 refcount_set(&fwd_entry->ref_count, 1); in mlxsw_afa_fwd_entry_create() 570 &fwd_entry->ht_node, in mlxsw_afa_fwd_entry_create() 576 &fwd_entry->kvdl_index, in mlxsw_afa_fwd_entry_create() 580 return fwd_entry; in mlxsw_afa_fwd_entry_create() 583 rhashtable_remove_fast(&mlxsw_afa->fwd_entry_ht, &fwd_entry->ht_node, in mlxsw_afa_fwd_entry_create() 586 kfree(fwd_entry); in mlxsw_afa_fwd_entry_create() [all …]
|
/linux-6.12.1/drivers/net/dsa/b53/ |
D | b53_priv.h | 286 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument 289 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry() 290 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry() 291 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry() 292 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry() 297 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument 302 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry() 304 *fwd_entry |= ARLTBL_VALID; in b53_arl_from_entry() 306 *fwd_entry |= ARLTBL_STATIC; in b53_arl_from_entry() 308 *fwd_entry |= ARLTBL_AGE; in b53_arl_from_entry()
|
D | b53_common.c | 1645 u32 fwd_entry; in b53_arl_read() local 1650 B53_ARLTBL_DATA_ENTRY(i), &fwd_entry); in b53_arl_read() 1651 b53_arl_to_entry(ent, mac_vid, fwd_entry); in b53_arl_read() 1653 if (!(fwd_entry & ARLTBL_VALID)) { in b53_arl_read() 1674 u32 fwd_entry; in b53_arl_op() local 1708 fwd_entry = 0; in b53_arl_op() 1735 b53_arl_from_entry(&mac_vid, &fwd_entry, &ent); in b53_arl_op() 1740 B53_ARLTBL_DATA_ENTRY(idx), fwd_entry); in b53_arl_op() 1804 u32 fwd_entry; in b53_arl_search_rd() local 1809 B53_ARL_SRCH_RSTL(idx), &fwd_entry); in b53_arl_search_rd() [all …]
|