Searched refs:fwd_entry (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_acl_flex_actions.c | 468 struct mlxsw_afa_fwd_entry *fwd_entry; in mlxsw_afa_fwd_entry_create() local 471 fwd_entry = kzalloc(sizeof(*fwd_entry), GFP_KERNEL); in mlxsw_afa_fwd_entry_create() 472 if (!fwd_entry) in mlxsw_afa_fwd_entry_create() 474 fwd_entry->ht_key.local_port = local_port; in mlxsw_afa_fwd_entry_create() 475 fwd_entry->ref_count = 1; in mlxsw_afa_fwd_entry_create() 478 &fwd_entry->ht_node, in mlxsw_afa_fwd_entry_create() 484 &fwd_entry->kvdl_index, in mlxsw_afa_fwd_entry_create() 488 return fwd_entry; in mlxsw_afa_fwd_entry_create() 491 rhashtable_remove_fast(&mlxsw_afa->fwd_entry_ht, &fwd_entry->ht_node, in mlxsw_afa_fwd_entry_create() 494 kfree(fwd_entry); in mlxsw_afa_fwd_entry_create() [all …]
|
| /Linux-v5.4/drivers/net/dsa/b53/ |
| D | b53_priv.h | 262 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument 265 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry() 266 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry() 267 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry() 268 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry() 273 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument 278 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry() 280 *fwd_entry |= ARLTBL_VALID; in b53_arl_from_entry() 282 *fwd_entry |= ARLTBL_STATIC; in b53_arl_from_entry() 284 *fwd_entry |= ARLTBL_AGE; in b53_arl_from_entry()
|
| D | b53_common.c | 1456 u32 fwd_entry; in b53_arl_read() local 1461 B53_ARLTBL_DATA_ENTRY(i), &fwd_entry); in b53_arl_read() 1462 b53_arl_to_entry(ent, mac_vid, fwd_entry); in b53_arl_read() 1464 if (!(fwd_entry & ARLTBL_VALID)) in b53_arl_read() 1478 u32 fwd_entry; in b53_arl_op() local 1502 fwd_entry = 0; in b53_arl_op() 1512 b53_arl_from_entry(&mac_vid, &fwd_entry, &ent); in b53_arl_op() 1517 B53_ARLTBL_DATA_ENTRY(idx), fwd_entry); in b53_arl_op() 1569 u32 fwd_entry; in b53_arl_search_rd() local 1574 B53_ARL_SRCH_RSTL(idx), &fwd_entry); in b53_arl_search_rd() [all …]
|