]> git.ipfire.org Git - thirdparty/iproute2.git/commit
vdpa: Add support for setting the MAC address in vDPA tool.
authorCindy Lu <lulu@redhat.com>
Tue, 29 Oct 2024 08:40:07 +0000 (16:40 +0800)
committerDavid Ahern <dsahern@kernel.org>
Tue, 29 Oct 2024 23:24:43 +0000 (23:24 +0000)
commit9fe68807db20d20c0bbde2c5a3ac869e8d68c63b
tree8121b9df5830b2c5c01ff54eee594fb6c678e6c3
parent2d35b775a45c1f0cb75f82d91a272be65e98115e
vdpa: Add support for setting the MAC address in vDPA tool.

Add a new function in vDPA tool to support set MAC address.
Currently, the kernel only supports setting the MAC address.

Update the man page to include usage for setting the MAC address.

The usage is: vdpa dev set name vdpa_name mac **:**:**:**:**

here is example:
root@L1# vdpa -jp dev config show vdpa0
{
    "config": {
        "vdpa0": {
            "mac": "82:4d:e9:5d:d7:e6",
            "link ": "up",
            "link_announce ": false,
            "mtu": 1500
        }
    }
}

root@L1# vdpa dev set name vdpa0 mac 00:11:22:33:44:55

root@L1# vdpa -jp dev config show vdpa0
{
    "config": {
        "vdpa0": {
            "mac": "00:11:22:33:44:55",
            "link ": "up",
            "link_announce ": false,
            "mtu": 1500
        }
    }
}

Signed-off-by: Cindy Lu <lulu@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/vdpa-dev.8
vdpa/vdpa.c