]> git.ipfire.org Git - thirdparty/iproute2.git/commit
vdpa: Enable user to set mtu of the vdpa device
authorParav Pandit <parav@nvidia.com>
Fri, 17 Dec 2021 08:08:27 +0000 (10:08 +0200)
committerDavid Ahern <dsahern@kernel.org>
Sat, 18 Dec 2021 21:04:14 +0000 (14:04 -0700)
commit167e33f3be88c0fbe206df25145b850ddf3897a2
treeaf7e17edc442ccd138806002b784481761317108
parent384938f9b00f2d203603e0919f23ae6857a14d96
vdpa: Enable user to set mtu of the vdpa device

Implement mtu setting for vdpa device.

$ vdpa mgmtdev show
vdpasim_net:
  supported_classes net

Add the device with mac address and mtu:
$ vdpa dev add name bar mgmtdev vdpasim_net mac 00:11:22:33:44:55 mtu 9000

In above command only mac address or only mtu can also be set.

View the config after setting:
$ vdpa dev config show
bar: mac 00:11:22:33:44:55 link up link_announce false mtu 9000

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