]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: airoha: Add missing field to ppe_mbox_data struct
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 6 May 2025 16:56:47 +0000 (18:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 May 2025 01:08:41 +0000 (18:08 -0700)
commit4a7843cc8a41b9612becccc07715ed017770eb89
treee2f8f3a0d3eae083c9ec8b4303beef30f028374a
parentdc75a43c07b7b04606e547b1ae58d34ab658479a
net: airoha: Add missing field to ppe_mbox_data struct

The official Airoha EN7581 firmware requires adding max_packet field in
ppe_mbox_data struct while the unofficial one used to develop the Airoha
EN7581 flowtable support does not require this field.
This patch does not introduce any real backwards compatible issue since
EN7581 fw is not publicly available in linux-firmware or other
repositories (e.g. OpenWrt) yet and the official fw version will use this
new layout. For this reason this change needs to be backported.
Moreover, make explicit the padding added by the compiler introducing
the rsv array in init_info struct.
At the same time use u32 instead of int for init_info and set_info
struct definitions in ppe_mbox_data struct.

Fixes: 23290c7bc190d ("net: airoha: Introduce Airoha NPU support")
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250506-airoha-en7581-fix-ppe_mbox_data-v5-1-29cabed6864d@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_npu.c