[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200502055840.GB25211@nanopsycho.orion>
Date: Sat, 2 May 2020 07:58:40 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, kernel-team@...com,
jacob.e.keller@...el.com
Subject: Re: [PATCH iproute2-next v3] devlink: support kernel-side snapshot
id allocation
Thu, Apr 30, 2020 at 07:57:59PM CEST, kuba@...nel.org wrote:
>Make ID argument optional and read the snapshot info
>that kernel sends us.
>
>$ devlink region new netdevsim/netdevsim1/dummy
>netdevsim/netdevsim1/dummy: snapshot 0
>$ devlink -jp region new netdevsim/netdevsim1/dummy
>{
> "regions": {
> "netdevsim/netdevsim1/dummy": {
> "snapshot": [ 1 ]
> }
> }
>}
>$ devlink region show netdevsim/netdevsim1/dummy
>netdevsim/netdevsim1/dummy: size 32768 snapshot [0 1]
>
>v3: back to v1..
>
>Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists