Re: [PATCH] nvmet: introduce new mdts configuration entry

From: Christoph Hellwig

Date: Wed Apr 01 2026 - 10:16:29 EST


On Wed, Apr 01, 2026 at 10:13:55AM +0000, Aurelien Aptel wrote:
> Using this port configuration, one will be able to set the Maximum Data
> Transfer Size (MDTS) for any controller that will be associated to the
> configured port.
>
> The default value stayed 0 (no limit) but each transport will be able to
> set its own values before enabling the port.

The ZASL calculation in zns.c also needs to take this limit into account.
So maybe add a helper to calculate it?