[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240228083337.18bfc306@hermes.local>
Date: Wed, 28 Feb 2024 08:33:37 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: William Tu <witu@...dia.com>
Cc: <netdev@...r.kernel.org>, <jiri@...dia.com>, <bodong@...dia.com>,
<tariqt@...dia.com>, <yossiku@...dia.com>, <kuba@...nel.org>
Subject: Re: [PATCH RFC iproute2] devlink: Add eswitch attr option for
shared descriptors
On Wed, 28 Feb 2024 17:25:48 +0200
William Tu <witu@...dia.com> wrote:
> Add two eswitch attrs: shrdesc_mode and shrdesc_count.
> shrdesc_mode: to enable a sharing memory buffer for
> representor's rx buffer, and shrdesc_count: to control the
> number of buffers in this shared memory pool.
>
> An example use case:
> $ devlink dev eswitch show pci/0000:08:00.0
> pci/0000:08:00.0: mode legacy inline-mode none encap-mode basic \
> shrdesc-mode none shrdesc-count 0
> $ devlink dev eswitch set pci/0000:08:00.0 mode switchdev \
> shrdesc-mode basic shrdesc-count 1024
> $ devlink dev eswitch show pci/0000:08:00.0
> pci/0000:08:00.0: mode switchdev inline-mode none encap-mode basic \
> shrdesc-mode basic shrdesc-count 1024
>
> Signed-off-by: William Tu <witu@...dia.com>
This needs to target iproute2-next.
Please update man page for devlink as well.
Powered by blists - more mailing lists