Searched refs:fwd_entry (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/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-v4.19/drivers/net/dsa/b53/ |
D | b53_priv.h | 241 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument 244 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry() 245 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry() 246 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry() 247 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry() 252 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument 257 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry() 259 *fwd_entry |= ARLTBL_VALID; in b53_arl_from_entry() 261 *fwd_entry |= ARLTBL_STATIC; in b53_arl_from_entry() 263 *fwd_entry |= ARLTBL_AGE; in b53_arl_from_entry()
|
D | b53_common.c | 1217 u32 fwd_entry; in b53_arl_read() local 1222 B53_ARLTBL_DATA_ENTRY(i), &fwd_entry); in b53_arl_read() 1223 b53_arl_to_entry(ent, mac_vid, fwd_entry); in b53_arl_read() 1225 if (!(fwd_entry & ARLTBL_VALID)) in b53_arl_read() 1239 u32 fwd_entry; in b53_arl_op() local 1263 fwd_entry = 0; in b53_arl_op() 1273 b53_arl_from_entry(&mac_vid, &fwd_entry, &ent); in b53_arl_op() 1278 B53_ARLTBL_DATA_ENTRY(idx), fwd_entry); in b53_arl_op() 1330 u32 fwd_entry; in b53_arl_search_rd() local 1335 B53_ARL_SRCH_RSTL(idx), &fwd_entry); in b53_arl_search_rd() [all …]
|