Subject: Re: [PATCH RFC iproute2] devlink: Add eswitch attr option for shared descriptors

From: Stephen Hemminger <[email-masked]>
Date: Wed, 28 Feb 2024 08:33:37 -0800

On Wed, 28 Feb 2024 17:25:48 +0200
William Tu <[email-masked]> 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 <[email-masked]>

This needs to target iproute2-next.

Please update man page for devlink as well.