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