]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Merge branch 'vdpa' into next
authorDavid Ahern <dsahern@kernel.org>
Thu, 11 Feb 2021 16:16:49 +0000 (09:16 -0700)
committerDavid Ahern <dsahern@kernel.org>
Thu, 11 Feb 2021 16:16:49 +0000 (09:16 -0700)
commit143610383da51e1f868c6d5a2a5e2fb552293d18
treef8061c4c55104f9f943eac92e31091c73f8de30c
parent049708a002960e89f13002d06b3c378ae7ecacb3
parentc2ecc82b9d4cd3b71fa992afee05ac938eb1b66a
Merge branch 'vdpa' into next

Parav Pandit  says:

====================

Linux vdpa interface allows vdpa device management functionality.
This includes adding, removing, querying vdpa devices.

vdpa interface also includes showing supported management devices
which support such operations.

This patchset includes kernel uapi headers and a vdpa tool.

examples:

$ vdpa mgmtdev show
vdpasim:
  supported_classes net

$ vdpa mgmtdev show -jp
{
    "show": {
        "vdpasim": {
            "supported_classes": [ "net" ]
        }
    }
}

Create a vdpa device of type networking named as "foo2" from
the management device vdpasim_net:

$ vdpa dev add mgmtdev vdpasim_net name foo2

Show the newly created vdpa device by its name:
$ vdpa dev show foo2
foo2: type network mgmtdev vdpasim_net vendor_id 0 max_vqs 2 max_vq_size 25=
6

$ vdpa dev show foo2 -jp
{
    "dev": {
        "foo2": {
            "type": "network",
            "mgmtdev": "vdpasim_net",
            "vendor_id": 0,
            "max_vqs": 2,
            "max_vq_size": 256
        }
    }
}

Delete the vdpa device after its use:
$ vdpa dev del foo2

An example of PCI PF, VF and SF management device:
pci/0000:03.00:0
  supported_classes
    net
pci/0000:03.00:4
  supported_classes
    net
auxiliary/mlx5_core.sf.8
  supported_classes
    net

====================

Signed-off-by: David Ahern <dsahern@kernel.org>