[PATCH 7/8] nvme-fabrics: add option to disallow T10-PI offload

Max Gurtovoy mgurtovoy at nvidia.com
Mon Jan 22 07:17:11 PST 2024



On 22/01/2024 17:13, Daniel Wagner wrote:
> On Mon, Jan 22, 2024 at 04:56:58PM +0200, Max Gurtovoy wrote:
>> --- a/drivers/nvme/host/fabrics.c
>> +++ b/drivers/nvme/host/fabrics.c
>> @@ -673,6 +673,9 @@ static const match_table_t opt_tokens = {
>>   #endif
>>   #ifdef CONFIG_NVME_TCP_TLS
>>   	{ NVMF_OPT_TLS,			"tls"			},
>> +#endif
>> +#ifdef CONFIG_BLK_DEV_INTEGRITY
>> +	{ NVMF_OPT_DISALLOW_PI,		"disallow_pi"		},
> 
> What about 'enable_pi' instead of the inverted boolean logic?

we can't change the default behavior (that is "enable" by default).



More information about the Linux-nvme mailing list