[PATCH v6 01/23] net: Introduce direct data placement tcp offload

Aurelien Aptel aaptel at nvidia.com
Mon Oct 24 06:09:01 PDT 2022


Leon Romanovsky <leon at kernel.org> writes:
>>       __u8                    csum_not_inet:1;
>> +#ifdef CONFIG_ULP_DDP
>> +     __u8                    ulp_ddp:1;
>> +     __u8                    ulp_crc:1;
>> +#define IS_ULP_DDP(skb) ((skb)->ulp_ddp)
>> +#define IS_ULP_CRC(skb) ((skb)->ulp_crc)
>> +#else
>> +#define IS_ULP_DDP(skb) (0)
>> +#define IS_ULP_CRC(skb) (0)
>
> All users of this define are protected by ifdef CONFIG_ULP_DDP.
> It is easier to wrap user of IS_ULP_DDP() too and remove #else
> lag from here.

We have changed the macros to inline functions (as suggested by Jakub).

There are other users in later patches which are not wrapped.  In fact
we could remove all the #ifdef wraps in this commit but I followed the
conventions of the file.

>> + * ulp_ddp.h
>> + *   Author: Boris Pismenny <borisp at nvidia.com>
>> + *   Copyright (C) 2022 NVIDIA CORPORATION & AFFILIATES.
>
> The official format is:
> Copyright (C) 2022, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.
>                  ^^^^                            ^^^^^^^^^^^^^^^^^^

Sure, will update.

>> +config ULP_DDP
>> +     bool "ULP direct data placement offload"
>> +     default n
>
> No need to set "n" explicitly, it is already default.

Sure, will update.

Thanks



More information about the Linux-nvme mailing list