From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>,
Jiayu Hu <jiayu.hu@intel.com>,
dev@dpdk.org
Cc: i.maximets@ovn.org, chenbo.xia@intel.com, xuan.ding@intel.com,
cheng1.jiang@intel.com, liangma@liangbit.com,
Sunil Pai G <sunil.pai.g@intel.com>
Subject: Re: [PATCH v4 1/1] vhost: integrate dmadev in asynchronous data-path
Date: Thu, 10 Feb 2022 22:00:23 +0100 [thread overview]
Message-ID: <342f8ca7-5370-d845-8eb3-5acdc0ca2545@redhat.com> (raw)
In-Reply-To: <6a43fe5a-a0d8-7723-c569-b64c2529b444@intel.com>
Hi Ferruh,
On 2/10/22 21:56, Ferruh Yigit wrote:
> On 2/9/2022 12:51 PM, Jiayu Hu wrote:
>> Since dmadev is introduced in 21.11, to avoid the overhead of vhost DMA
>> abstraction layer and simplify application logics, this patch integrates
>> dmadev in asynchronous data path.
>>
>> Signed-off-by: Jiayu Hu<jiayu.hu@intel.com>
>> Signed-off-by: Sunil Pai G<sunil.pai.g@intel.com>
>
> Patch gives a build error with './devtools/test-meson-builds.sh' [1],
> for the minimum build test [2].
Sorry, I didn't run this script, and so didn't faced this issue.
> This seems because new header file (rte_vhost_async.h) included by
> 'buildtools/chkincs' and it is missing depended includes.
>
>
> Fixed in next-net by adding the includes [3],
> please confirm latest patch in next-net:
>
I agree with the changes you suggest.
Thanks,
Maxime
>
>
>
> [1]
> 19 In file included from
> buildtools/chkincs/chkincs.p/rte_vhost_async.c:1:
> 18
> /opt/dpdk_maintain/self/dpdk/lib/vhost/rte_vhost_async.h:18:19: error:
> expected ‘;’ before ‘int’
> 17 18 | __rte_experimental
> 16 | ^
> 15 | ;
> 14 19 | int rte_vhost_async_channel_register(int vid,
> uint16_t queue_id);
> 13 | ~~~
> 12
> /opt/dpdk_maintain/self/dpdk/lib/vhost/rte_vhost_async.h:19:47: error:
> unknown type name ‘uint16_t’
> 11 19 | int rte_vhost_async_channel_register(int vid,
> uint16_t queue_id);
> 10 | ^~~~~~~~
> 9 /opt/dpdk_maintain/self/dpdk/lib/vhost/rte_vhost_async.h:1:1:
> note: ‘uint16_t’ is defined in header ‘<stdint.h>’; did you forget to
> ‘#include <stdint.h>’?
> 8 +++ |+#include <stdint.h>
> 7 1 | /* SPDX-License-Identifier: BSD-3-Clause
> 6
> /opt/dpdk_maintain/self/dpdk/lib/vhost/rte_vhost_async.h:31:19: error:
> expected ‘;’ before ‘int’
> 5 31 | __rte_experimental
> 4 | ^
> 3 | ;
> 2 32 | int rte_vhost_async_channel_unregister(int vid,
> uint16_t queue_id);
> 1 | ~~~
>
> 37 In file included from
> buildtools/chkincs/chkincs.p/rte_vhost_async.c:1:
> 36
> /opt/dpdk_maintain/self/dpdk/lib/vhost/rte_vhost_async.h:95:24: error:
> ‘struct rte_mbuf’ declared inside parameter list will not be visible
> outside of this definition or declaration [-Werror]
> 35 95 | struct rte_mbuf **pkts, uint16_t
> count, int16_t dma_id,
> 34 |
>
> [2]
> meson -Dexamples=all --buildtype=debugoptimized --werror
> --default-library=shared -Ddisable_libs=*
> -Denable_drivers=bus/vdev,mempool/ring,net/null
> /opt/dpdk_maintain/self/dpdk/devtools/.. ./build-mini
>
>
> [3]
> diff --git a/lib/vhost/rte_vhost_async.h b/lib/vhost/rte_vhost_async.h
> index 11e6cfa7cb8d..b202c5540e5b 100644
> --- a/lib/vhost/rte_vhost_async.h
> +++ b/lib/vhost/rte_vhost_async.h
> @@ -5,6 +5,11 @@
> #ifndef _RTE_VHOST_ASYNC_H_
> #define _RTE_VHOST_ASYNC_H_
> +#include <stdint.h>
> +
> +#include <rte_compat.h>
> +#include <rte_mbuf.h>
> +
> /**
> * Register an async channel for a vhost queue
> *
>
prev parent reply other threads:[~2022-02-10 21:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-22 10:54 [RFC 0/1] integrate dmadev in vhost Jiayu Hu
2021-11-22 10:54 ` [RFC 1/1] vhost: integrate dmadev in asynchronous datapath Jiayu Hu
2021-12-24 10:39 ` Maxime Coquelin
2021-12-28 1:15 ` Hu, Jiayu
2022-01-03 10:26 ` Maxime Coquelin
2022-01-06 5:46 ` Hu, Jiayu
2021-12-03 3:49 ` [RFC 0/1] integrate dmadev in vhost fengchengwen
2021-12-30 21:55 ` [PATCH v1 " Jiayu Hu
2021-12-30 21:55 ` [PATCH v1 1/1] vhost: integrate dmadev in asynchronous datapath Jiayu Hu
2021-12-31 0:55 ` Liang Ma
2022-01-14 6:30 ` Xia, Chenbo
2022-01-17 5:39 ` Hu, Jiayu
2022-01-19 2:18 ` Xia, Chenbo
2022-01-20 17:00 ` Maxime Coquelin
2022-01-21 1:56 ` Hu, Jiayu
2022-01-24 16:40 ` [PATCH v2 0/1] integrate dmadev in vhost Jiayu Hu
2022-01-24 16:40 ` [PATCH v2 1/1] vhost: integrate dmadev in asynchronous datapath Jiayu Hu
2022-02-03 13:04 ` Maxime Coquelin
2022-02-07 1:34 ` Hu, Jiayu
2022-02-08 10:40 ` [PATCH v3 0/1] integrate dmadev in vhost Jiayu Hu
2022-02-08 10:40 ` [PATCH v3 1/1] vhost: integrate dmadev in asynchronous data-path Jiayu Hu
2022-02-08 17:46 ` Maxime Coquelin
2022-02-09 12:51 ` [PATCH v4 0/1] integrate dmadev in vhost Jiayu Hu
2022-02-09 12:51 ` [PATCH v4 1/1] vhost: integrate dmadev in asynchronous data-path Jiayu Hu
2022-02-10 7:58 ` Yang, YvonneX
2022-02-10 13:44 ` Maxime Coquelin
2022-02-10 15:14 ` Maxime Coquelin
2022-02-10 20:50 ` Ferruh Yigit
2022-02-10 21:01 ` Maxime Coquelin
2022-02-10 20:56 ` Ferruh Yigit
2022-02-10 21:00 ` Maxime Coquelin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=342f8ca7-5370-d845-8eb3-5acdc0ca2545@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=chenbo.xia@intel.com \
--cc=cheng1.jiang@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=i.maximets@ovn.org \
--cc=jiayu.hu@intel.com \
--cc=liangma@liangbit.com \
--cc=sunil.pai.g@intel.com \
--cc=xuan.ding@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).