Lines Matching refs:ped
126 struct efx_tc_mac_pedit_action *ped, *old; in efx_tc_flower_get_mac() local
129 ped = kzalloc(sizeof(*ped), GFP_USER); in efx_tc_flower_get_mac()
130 if (!ped) in efx_tc_flower_get_mac()
132 memcpy(ped->h_addr, h_addr, ETH_ALEN); in efx_tc_flower_get_mac()
134 &ped->linkage, in efx_tc_flower_get_mac()
138 kfree(ped); in efx_tc_flower_get_mac()
147 rc = efx_mae_allocate_pedit_mac(efx, ped); in efx_tc_flower_get_mac()
154 refcount_set(&ped->ref, 1); in efx_tc_flower_get_mac()
155 return ped; in efx_tc_flower_get_mac()
157 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_get_mac()
159 kfree(ped); in efx_tc_flower_get_mac()
164 struct efx_tc_mac_pedit_action *ped) in efx_tc_flower_put_mac() argument
166 if (!refcount_dec_and_test(&ped->ref)) in efx_tc_flower_put_mac()
168 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_put_mac()
170 efx_mae_free_pedit_mac(efx, ped); in efx_tc_flower_put_mac()
171 kfree(ped); in efx_tc_flower_put_mac()
1028 struct efx_tc_mac_pedit_action *ped; in efx_tc_complete_mac_mangle() local
1031 ped = efx_tc_flower_get_mac(efx, mung->dst_mac, extack); in efx_tc_complete_mac_mangle()
1032 if (IS_ERR(ped)) in efx_tc_complete_mac_mangle()
1033 return PTR_ERR(ped); in efx_tc_complete_mac_mangle()
1039 act->dst_mac = ped; in efx_tc_complete_mac_mangle()
1046 ped = efx_tc_flower_get_mac(efx, mung->src_mac, extack); in efx_tc_complete_mac_mangle()
1047 if (IS_ERR(ped)) in efx_tc_complete_mac_mangle()
1048 return PTR_ERR(ped); in efx_tc_complete_mac_mangle()
1054 act->src_mac = ped; in efx_tc_complete_mac_mangle()
2638 struct efx_tc_mac_pedit_action *ped = ptr; in efx_tc_mac_free() local
2640 WARN_ON(refcount_read(&ped->ref)); in efx_tc_mac_free()
2641 kfree(ped); in efx_tc_mac_free()