net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 16 May 2025 07:59:59 +0000 (09:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 03:00:51 +0000 (20:00 -0700)
commitc52918744ee1e49cea86622a2633b9782446428f
treeb7d3f1a3f8ea457b826a6e0a9566e1810ca6c19a
parent7f7c6bb74d4eeca8e83c7ad31a761c3fda558799
net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller

Move ppe_mbox_data struct memory allocation from airoha_npu_send_msg
routine to the caller one. This is a preliminary patch to enable wlan NPU
offloading and flow counter stats support.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250516-airoha-en7581-flowstats-v2-1-06d5fbf28984@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_npu.c