Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/dsa/b53/
Db53_priv.h275 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument
278 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry()
279 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry()
280 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry()
281 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry()
286 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument
291 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry()
293 *fwd_entry |= ARLTBL_VALID; in b53_arl_from_entry()
295 *fwd_entry |= ARLTBL_STATIC; in b53_arl_from_entry()
297 *fwd_entry |= ARLTBL_AGE; in b53_arl_from_entry()
Db53_common.c1585 u32 fwd_entry; in b53_arl_read() local
1590 B53_ARLTBL_DATA_ENTRY(i), &fwd_entry); in b53_arl_read()
1591 b53_arl_to_entry(ent, mac_vid, fwd_entry); in b53_arl_read()
1593 if (!(fwd_entry & ARLTBL_VALID)) { in b53_arl_read()
1614 u32 fwd_entry; in b53_arl_op() local
1648 fwd_entry = 0; in b53_arl_op()
1675 b53_arl_from_entry(&mac_vid, &fwd_entry, &ent); in b53_arl_op()
1680 B53_ARLTBL_DATA_ENTRY(idx), fwd_entry); in b53_arl_op()
1744 u32 fwd_entry; in b53_arl_search_rd() local
1749 B53_ARL_SRCH_RSTL(idx), &fwd_entry); in b53_arl_search_rd()
[all …]
/linux-6.1.9/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 …]