]> git.ipfire.org Git - thirdparty/iproute2.git/commit
vdpa: Enable user to query vdpa device config layout
authorParav Pandit <parav@nvidia.com>
Fri, 17 Dec 2021 08:08:25 +0000 (10:08 +0200)
committerDavid Ahern <dsahern@kernel.org>
Sat, 18 Dec 2021 21:04:05 +0000 (14:04 -0700)
commita311f0c43a67be939dfafda563453a3f9bf30e42
treecb2ed3a260ee37495820fb94bb5bf1d9c3f87ca3
parent9d8882d5d86fe7a7aadf843d17a3e67db7c9d24a
vdpa: Enable user to query vdpa device config layout

Query the device configuration layout whenever kernel supports it.

An example of configuration layout of vdpa device of type network:

$ vdpa dev add name bar mgmtdev vdpasim_net

$ vdpa dev config show
bar: mac 00:35:09:19:48:05 link up link_announce false mtu 1500

$ vdpa dev config show -jp
{
    "config": {
        "bar": {
            "mac": "00:35:09:19:48:05",
            "link ": "up",
            "link_announce ": false,
            "mtu": 1500,
        }
    }
}

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/vdpa-dev.8
vdpa/vdpa.c