]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Set VF MAC and VLAN ID in two different operations
authorDmitrii Shcherbakov <dmitrii.shcherbakov@canonical.com>
Tue, 1 Feb 2022 08:28:51 +0000 (11:28 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Feb 2022 15:52:05 +0000 (16:52 +0100)
commit86fc0c25768326abcfebbdd17dbe1074d145f652
tree71a44899e8284c036c81b6a9f69be7c2a2441581
parent76a7ff99dbcfb0400ecebf418a429b16c5228b62
Set VF MAC and VLAN ID in two different operations

This has a benefit of being able to handle error codes for those
operations separately which is useful when drivers allow setting a MAC
address but do not allow setting a VLAN (which is the case with some
SmartNIC DPUs).

Signed-off-by: Dmitrii Shcherbakov <dmitrii.shcherbakov@canonical.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virnetdev.c
src/util/virnetdevpriv.h [new file with mode: 0644]
tests/virnetdevtest.c