Thread (28 messages) 28 messages, 3 authors, 2022-10-24

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

flat view

From: Aurelien Aptel <hidden>
Date: 2022-10-24 13:09:17
Also in: linux-nvme

Leon Romanovsky [off-list ref] writes:
quoted
      __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.
quoted
+ * ulp_ddp.h
+ *   Author: Boris Pismenny <borisp@nvidia.com>
+ *   Copyright (C) 2022 NVIDIA CORPORATION & AFFILIATES.
The official format is:
Copyright (C) 2022, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.
                 ^^^^                            ^^^^^^^^^^^^^^^^^^
Sure, will update.
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help