[PATCH net-next 2/3] net: airoha: Add airoha_ppe_foe_flow_remove_entry_locked()
Michal Kubiak
michal.kubiak at intel.com
Tue Apr 8 13:12:44 PDT 2025
On Mon, Apr 07, 2025 at 04:18:31PM +0200, Lorenzo Bianconi wrote:
> Introduce airoha_ppe_foe_flow_remove_entry_locked utility routine
> in order to run airoha_ppe_foe_flow_remove_entry holding ppe_lock.
> This is a preliminary patch to L2 offloading support to airoha_eth
> driver.
>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
Could you please explain the reason of introducing the *_remove_entry_locked
function if "airoha_ppe_foe_flow_remove_entry()" is still never called out of
"airoha_ppe_foe_flow_remove_entry_locked()" context (at least in this
series)?
I would expect that it can be useful if you have an use case when you want
to call "airoha_ppe_foe_flow_remove_entry()" from another function that
has already taken the lock, but I haven't found such a context.
Thanks,
Michal
More information about the Linux-mediatek
mailing list