xenomai.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Chen, Hongzhan" <hongzhan.chen@intel.com>,
	"xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: Re: [PATCH] testsuite: dpdk: Add l2fwd example which is based on DPDK.
Date: Tue, 31 Jan 2023 08:26:58 +0100	[thread overview]
Message-ID: <32e8a845-7f5b-3e0e-db97-087e123a662f@siemens.com> (raw)
In-Reply-To: <BY5PR11MB427681AA9D23FEFA04E1748CF2D09@BY5PR11MB4276.namprd11.prod.outlook.com>

On 31.01.23 06:10, Chen, Hongzhan wrote:
> 
> 
>> -----Original Message-----
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>> Sent: Thursday, January 19, 2023 1:44 AM
>> To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@lists.linux.dev
>> Subject: Re: [PATCH] testsuite: dpdk: Add l2fwd example which is based on
>> DPDK.
>>
>> On 18.01.23 14:05, Hongzhan Chen wrote:
>>> The L2 Forwarding sample application(l2fwd) is a simple
>>> example of packet processing using the Data Plane
>>> Development Kit (DPDK).
>>
>> Can you elaborate a bit on the envisioned use cases here and go more
>> into details in the accompanied documentation? The latter only describes
>> the "how", not at all the "why" (or "which use cases"). Some words on
>> the threading model (or limitations of it) would surely be good as well
>> ("how can I integrate this pattern into a real application?").
>>
>> Regarding the patch itself, you should go over it again and eliminate
>> debugging left-overs as well as unrelated changes (there is one at least
>> in testsuite/Makefile.am). The way of the integration looks fine to me
>> in principle.
>>
>> BTW, what prevents the usage of the VFIO driver so far?
> 
> I have not looked into and tried VFIO driver so far. Last time you told me that we may need to
> develop or port VFIO related drivers if we want to use VFIO-based dpdk in Xenomai but UIO-based 
> does not such issue. I maybe misunderstood what you guided. If the main difference between uio and vfio is that vfio is capable of programming the platform's IOMMU as described in [1], after vfio init, there is no linux syscall involved during receiving and transmitting packets just as UIO case, we can do same thing for VFIO with ported l2fwd.

I haven't looked into VFIO myself, but the key question is whether some
userspace activity in the primary domain could trigger mapping activity
of the driver in the secondary one. If not, VFIO should be fine. If so,
and that was the case for some RTnet drivers, we would need to avoid
that. I was just wondering if you explored the path already and could
share your experience.

Jan

> 
> Regards
> 
> Hongzhan Chen
> 
> [1]: https://spdk.io/doc/userspace.html#:~:text=The%20primary%20difference%20between%20uio,User%20Space%20for%20full%20details.
>>
>> Jan
>>
>> --
>> Siemens AG, Technology
>> Competence Center Embedded Linux
> 

-- 
Siemens AG, Technology
Competence Center Embedded Linux


  reply	other threads:[~2023-01-31  7:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 13:05 [PATCH] testsuite: dpdk: Add l2fwd example which is based on DPDK Hongzhan Chen
2023-01-18 17:43 ` Jan Kiszka
2023-01-31  5:10   ` Chen, Hongzhan
2023-01-31  7:26     ` Jan Kiszka [this message]
2023-02-02  0:36       ` Chen, Hongzhan
2023-02-02  1:09         ` Chen, Hongzhan

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=32e8a845-7f5b-3e0e-db97-087e123a662f@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=hongzhan.chen@intel.com \
    --cc=xenomai@lists.linux.dev \
    /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).