Thread (49 messages) 49 messages, 4 authors, 2021-07-21

Re: [dpdk-dev] [PATCH v4 2/3] vhost: rework async configuration struct

From: Xia, Chenbo <hidden>
Date: 2021-07-16 06:27:46

Hi Jiayu,
-----Original Message-----
From: Hu, Jiayu <redacted>
Sent: Friday, July 16, 2021 2:18 PM
To: Xia, Chenbo <redacted>; dev@dpdk.org
Cc: maxime.coquelin@redhat.com
Subject: RE: [PATCH v4 2/3] vhost: rework async configuration struct

Thanks Chenbo for your comments.

Replies are inline.
quoted
-----Original Message-----
From: Xia, Chenbo <redacted>
Sent: Friday, July 16, 2021 2:03 PM
To: Hu, Jiayu <redacted>; dev@dpdk.org
Cc: maxime.coquelin@redhat.com
Subject: RE: [PATCH v4 2/3] vhost: rework async configuration struct

Hi Jiayu,
quoted
-----Original Message-----
From: Hu, Jiayu <redacted>
Sent: Tuesday, July 13, 2021 3:46 PM
To: dev@dpdk.org
Cc: maxime.coquelin@redhat.com; Xia, Chenbo <redacted>;
Hu, Jiayu [off-list ref]
Subject: [PATCH v4 2/3] vhost: rework async configuration struct
Struct -> structure
quoted
This patch reworks the async configuration structure to improve code
readability. In addition, add preserved padding fields on the
structure for future usage.

Signed-off-by: Jiayu Hu <redacted>
---
 doc/guides/prog_guide/vhost_lib.rst | 19 +++++++++++--------
 examples/vhost/main.c               |  8 ++++----
 lib/vhost/rte_vhost_async.h         | 35 +++++++++++++++++---------------
---
quoted
quoted
 lib/vhost/vhost.c                   | 13 +++++--------
 4 files changed, 37 insertions(+), 38 deletions(-)
[snip]
quoted
quoted
-vq->async_inorder = f.async_inorder;
-vq->async_threshold = f.async_threshold;
+vq->async_inorder = true;
Do we still need this? It's never used.
I think we need to keep it, as we may support out-of-order channel in future.
We don't like to define things when it's not needed currently. If in future,
the definition should also be made in future :P. Just leave the definition
to future patch.

Thanks,
Chenbo
quoted
quoted
+vq->async_threshold = config.async_threshold;
vq->async_threshold is uint16_t and config.async_threshold is uint32_t.
They should be the same.
I will change vq->async_threshold to uint32_t.

Thanks,
Jiayu
quoted
Thanks,
Chenbo
quoted
 vq->async_registered = true;

--
2.7.4
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help