Re: [PATCH 06/15] PCI: endpoint: pci-epf-vntb: Fold MW runtime state into a struct

From: Koichiro Den

Date: Mon Mar 16 2026 - 23:19:30 EST


On Thu, Mar 12, 2026 at 04:35:11PM -0400, Frank Li wrote:
> On Fri, Mar 13, 2026 at 01:49:56AM +0900, Koichiro Den wrote:
> > The next patches add per-memory-window offsets, shared BAR placement,
> > and optional DMA export state. Keeping per-window state in parallel
> > arrays would make that work noisy and error-prone.
> >
> > Group the runtime memory-window state into struct epf_ntb_mw so
> > follow-up changes can extend a single object instead of touching
> > multiple arrays.
>
> Simple said
>
> PCI: endpoint: pci-epf-vntb: collect MW information into a struct
>
> Group the runtime memory window state into struct epf_ntb_mw to improve
> readability and make the code easier to extend.
>
> No functional change intended.

Right, I'll update it when respinning.

Thanks for the review,
Koichiro

>
> Reviewed-by: Frank Li <Frank.Li@xxxxxxx>
>
> >