netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: William Tu <witu@nvidia.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Jacob Keller <jacob.e.keller@intel.com>,
	bodong@nvidia.com, jiri@nvidia.com, netdev@vger.kernel.org,
	saeedm@nvidia.com,
	"aleksander.lobakin@intel.com" <aleksander.lobakin@intel.com>,
	ecree.xilinx@gmail.com, Yossi Kuperman <yossiku@nvidia.com>,
	William Tu <u9012063@gmail.com>
Subject: Re: [RFC PATCH v3 net-next] Documentation: devlink: Add devlink-sd
Date: Thu, 1 Feb 2024 20:26:44 -0800	[thread overview]
Message-ID: <49c079e3-1752-49fb-8f76-016b21a8dee0@nvidia.com> (raw)
In-Reply-To: <20240201193050.3b19111b@kernel.org>



On 2/1/24 7:30 PM, Jakub Kicinski wrote:
> External email: Use caution opening links or attachments
>
>
> On Thu, 1 Feb 2024 11:16:22 -0800 William Tu wrote:
>>>> I guess bnxt, ice, nfp are doing tx buffer sharing?
>>> I'm not familiar with ice. I'm 90% sure bnxt shares both Rx and Tx.
>>> I'm 99.9% sure nfp does.
>>>
>>> It'd be great if you could do the due diligence rather than guessing
>>> given that you're proposing uAPI extension :(
>>>
>> *
>>
>> (sorry again, html is detected in previous email)
>>
>> due diligence here:
> Thanks for collecting the deets!
>
> If I'm reading this right we have 3 drivers which straight up share
> queues. I don't remember anyone complaining about the queue sharing
> in my time at Netro. Meaning we can probably find reasonable defaults
> and not start with the full API? Just have the
>
>    devlink dev eswitch set DEV mode switchdev shared-descs enable
>
> extension to begin with?
yes, that's what I began with months ago, by just adding new devlink params.
We need at least two new parameters: enable/disable, and size of the pool.
I have right now is s.t like:
$ devlink dev eswitch set pci/0000:08:00.0 mode switchdev 
shared-descs-counts  1024
$ devlink dev eswitch set pci/0000:08:00.0 mode switchdev shared-descs 
enable
Once enabled, the default sharing scheme, described in the RFC, applies 
to all REP queues, and no way to customize the queue-to-pool mapping.

Then discuss with a couple people internally, and come up with this more 
flexible and generic API.

William


      reply	other threads:[~2024-02-02  4:26 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25  4:56 [RFC PATCH v2 net-next] Documentation: devlink: Add devlink-sd William Tu
2024-01-25 21:12 ` [RFC PATCH v3 " William Tu
2024-01-25 22:36 ` William Tu
2024-01-29 10:56   ` Simon Horman
2024-01-29 22:23     ` William Tu
2024-01-31  1:07   ` Jakub Kicinski
2024-01-31 18:47     ` William Tu
2024-01-31 19:06       ` Jakub Kicinski
2024-01-31 19:16         ` William Tu
2024-01-31 20:45           ` Jakub Kicinski
2024-01-31 21:37             ` William Tu
2024-01-31 21:41               ` Jacob Keller
2024-01-31 22:30                 ` Jakub Kicinski
2024-01-31 23:02                   ` William Tu
2024-01-31 23:17                     ` Jakub Kicinski
2024-02-01  2:23                       ` Samudrala, Sridhar
2024-02-01 14:00                         ` William Tu
2024-02-02  8:48                           ` Michal Swiatkowski
2024-02-02 15:27                             ` William Tu
2024-02-01 10:13                       ` Jiri Pirko
2024-02-02  4:00                         ` Jakub Kicinski
2024-02-02  7:46                           ` Jiri Pirko
2024-02-09  1:26                             ` Jakub Kicinski
2024-02-15 13:19                               ` Jiri Pirko
2024-02-15 17:41                                 ` Jacob Keller
2024-02-16  2:07                                   ` Jakub Kicinski
2024-02-16  8:15                                     ` Jiri Pirko
2024-02-16 21:42                                     ` Jacob Keller
2024-02-16 21:47                                     ` Jacob Keller
2024-02-19  8:59                                       ` Jiri Pirko
2024-02-16  8:10                                   ` Jiri Pirko
2024-02-16 21:44                                     ` Jacob Keller
2024-02-16  1:58                                 ` Jakub Kicinski
2024-02-16  8:06                                   ` Jiri Pirko
2024-02-17  2:43                                     ` Jakub Kicinski
2024-02-19  9:06                                       ` Jiri Pirko
2024-02-20 22:17                                         ` Jakub Kicinski
2024-02-01 19:16                       ` William Tu
2024-02-02  3:30                         ` Jakub Kicinski
2024-02-02  4:26                           ` William Tu [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=49c079e3-1752-49fb-8f76-016b21a8dee0@nvidia.com \
    --to=witu@nvidia.com \
    --cc=aleksander.lobakin@intel.com \
    --cc=bodong@nvidia.com \
    --cc=ecree.xilinx@gmail.com \
    --cc=jacob.e.keller@intel.com \
    --cc=jiri@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=saeedm@nvidia.com \
    --cc=u9012063@gmail.com \
    --cc=yossiku@nvidia.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).