RE: [PATCH v4 net-next 02/15] net: enetc: move msg_task and msg_int_name to struct enetc_si
From: Claudiu Manoil
Date: Fri Sep 11 2026 - 16:16:41 EST
NXP Confidential
> -----Original Message-----
> From: Wei Fang (OSS) <wei.fang@xxxxxxxxxxx>
> Sent: Wednesday, September 9, 2026 1:07 PM
[...]
> netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: [PATCH v4 net-next 02/15] net: enetc: move msg_task and
> msg_int_name to struct enetc_si
>
> From: Wei Fang <wei.fang@xxxxxxx>
>
> The ENETC PF currently uses msg_task and msg_int_name in struct enetc_pf
> to handle VSI-to-PSI mailbox messages via a workqueue and a dedicated
> interrupt.
>
> PSI-to-VSI message support will be added to the VF driver, which will
> require the same mechanism: a message interrupt and a workqueue handler.
> Since struct enetc_si is the common structure shared between PF and VF,
> move msg_task and msg_int_name from struct enetc_pf to struct enetc_si
> to allow both drivers to use them without duplication.
>
> Also relocate the ENETC_INT_NAME_MAX macro definition ahead of struct
> enetc_si so it can be used for the msg_int_name array declaration.
>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
Reviewed-by: Claudiu Manoil <claudiu.manoil@xxxxxxx>