Home
last modified time | relevance | path

Searched refs:fwd_entry (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.c560 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 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 …]
/kernel/linux/linux-5.10/drivers/net/dsa/b53/
Db53_priv.h269 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument
272 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry()
273 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry()
274 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry()
275 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry()
280 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument
285 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry()
287 *fwd_entry |= ARLTBL_VALID; in b53_arl_from_entry()
289 *fwd_entry |= ARLTBL_STATIC; in b53_arl_from_entry()
291 *fwd_entry |= ARLTBL_AGE; in b53_arl_from_entry()
Db53_common.c1551 u32 fwd_entry; in b53_arl_read() local
1556 B53_ARLTBL_DATA_ENTRY(i), &fwd_entry); in b53_arl_read()
1557 b53_arl_to_entry(ent, mac_vid, fwd_entry); in b53_arl_read()
1559 if (!(fwd_entry & ARLTBL_VALID)) { in b53_arl_read()
1584 u32 fwd_entry; in b53_arl_op() local
1618 fwd_entry = 0; in b53_arl_op()
1645 b53_arl_from_entry(&mac_vid, &fwd_entry, &ent); in b53_arl_op()
1650 B53_ARLTBL_DATA_ENTRY(idx), fwd_entry); in b53_arl_op()
1702 u32 fwd_entry; in b53_arl_search_rd() local
1707 B53_ARL_SRCH_RSTL(idx), &fwd_entry); in b53_arl_search_rd()
[all …]