DPDK patches and discussions
 help / color / mirror / Atom feed
From: fengchengwen <fengchengwen@huawei.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	WanRenyong <wanry@yunsilicon.com>
Cc: <dev@dpdk.org>, <ferruh.yigit@amd.com>, <thomas@monjalon.net>
Subject: Re: [PATCH v2 05/19] net/xsc: add ioctl command interface
Date: Sat, 14 Sep 2024 14:33:36 +0800	[thread overview]
Message-ID: <bf070848-7b19-477f-8613-8b5f7a4bf57c@huawei.com> (raw)
In-Reply-To: <20240913195429.1e6f174b@hermes.local>

On 2024/9/14 10:54, Stephen Hemminger wrote:
> On Fri, 13 Sep 2024 10:55:08 +0800
> "WanRenyong" <wanry@yunsilicon.com> wrote:
> 
>>>  
>>>> Ioctl API is used for interaction between PMD and kernel driver. As you
>>>> said, ioctl is
>>>>
>>>> the worst API, should I consider using read and write instead?  
>>> It seemed the ioctl couldn't handle VF located in VM, and interact 
>>> with PF driver which run in host kernel.  
>>>> If not, could you please give me some advice?  
>>> If your NIC support firmware, could consider use firmware as mid-man between DPDK and kernel.
>>>  
>>>>  
>> Hello, fengchenwen,
>>
>> Thanks for your reply.
>> Sorry for not describing it clearly. We know how to implement the 
>> bifurcation functionality. The main issue is that ioctl is used 
>> forcommunication with the kernel driver by PMD, but ioctl is not 
>> considered a good API, we need to find a better approach. Implemented 
>> via firmware might be a good idea, but it's complex, we can think about 
>> it in the further.Recently shoud I consider using read and write 
>> instead?  Is there any advise?
> 
> 
> There are already several pre-existing ways to do bifurcation in drivers.
> 1. RDMA which is used by mlx5 and mana drivers.
> 2. using SR-IOV and queue steering. (Intel did this but not sure if it still exists)
> 3. BPF
> 
> It seems unlikely a new approach using ioctl() that only works on your device
> would be accepted by the netdev developers.

I just "grep -rn ioctl | wc -l" and found there are 518.
Some of them are net driver which open char device.

Ioctl could be an option as long as it meets current and future needs.


      reply	other threads:[~2024-09-14  6:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-11  2:07 WanRenyong
2024-09-11  3:48 ` Stephen Hemminger
2024-09-12  4:07   ` WanRenyong
2024-09-11  3:49 ` Stephen Hemminger
2024-09-12  4:07   ` WanRenyong
2024-09-11  3:50 ` Stephen Hemminger
2024-09-12  4:14   ` WanRenyong
2024-09-12  5:50     ` Stephen Hemminger
2024-09-12  8:19       ` WanRenyong
2024-09-12  9:18         ` fengchengwen
2024-09-13  2:55           ` WanRenyong
2024-09-14  2:54             ` Stephen Hemminger
2024-09-14  6:33               ` fengchengwen [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=bf070848-7b19-477f-8613-8b5f7a4bf57c@huawei.com \
    --to=fengchengwen@huawei.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    --cc=wanry@yunsilicon.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).