Skip to content

vdpa tool to query and set config layout

Parav Pandit netdev virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- addressed comments from David
- added man page
- using get_u16
- using strcmp() instead of matches() for arguments

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vdpa: Update kernel headersinclude/uapi/linux/virtio_net.h vdpa/include/uapi/linux/vdpa.h+88 -00 replies
2/4vdpa: Enable user to query vdpa device config layoutman/man8/vdpa-dev.8 vdpa/vdpa.c+131 -00 replies
3/4vdpa: Enable user to set mac address of vdpa deviceman/man8/vdpa-dev.8 vdpa/vdpa.c+53 -100 replies
4/4vdpa: Enable user to set mtu of the vdpa deviceman/man8/vdpa-dev.8 vdpa/vdpa.c+36 -27 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [iproute2-next v2 0/4] vdpa tool to query and set config layout

This series implements querying and setting of the mac address and mtu device config fields of the vdpa device of type net.

An example of query and set as below.

$ vdpa dev add name bar mgmtdev vdpasim_net mac 00:11:22:33:44:55 mtu 9000
$ vdpa dev config show
bar: mac 00:11:22:33:44:55 link up link_announce false mtu 9000
$ vdpa dev config show -jp
{
    "config": {
        "bar": {
            "mac": "00:11:22:33:44:55",
            "link ": "up",
            "link_announce ": false,
            "mtu": 1500,
        }
    }
}

patch summary:
patch-1 updates the kernel headers
patch-2 implements the query command
patch-3 implements setting the mac address of vdpa dev config space patch-4 implements setting the mtu of vdpa dev config space

changelog:
v1->v2:
- addressed comments from David
- added man page
- using get_u16
- using strcmp() instead of matches() for arguments

Parav Pandit (4):
vdpa: Update kernel headers
vdpa: Enable user to query vdpa device config layout
vdpa: Enable user to set mac address of vdpa device
vdpa: Enable user to set mtu of the vdpa device

 include/uapi/linux/virtio_net.h |  81 ++++++++++++++
 man/man8/vdpa-dev.8             |  42 ++++++++
 vdpa/include/uapi/linux/vdpa.h  |   7 ++
 vdpa/vdpa.c                     | 184 ++++++++++++++++++++++++++++++--
 4 files changed, 305 insertions(+), 9 deletions(-)
 create mode 100644 include/uapi/linux/virtio_net.h
Signature · 1 line
2.26.2