]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow VF vlanid to be passed as a pointer
authorDmitrii Shcherbakov <dmitrii.shcherbakov@canonical.com>
Tue, 1 Feb 2022 08:28:52 +0000 (11:28 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Feb 2022 15:52:05 +0000 (16:52 +0100)
commit73961771a1cfec3c0f43caec9d117d2fbcc7af39
tree41b287c870e871464e56b0fd41316964f95e74c3
parent86fc0c25768326abcfebbdd17dbe1074d145f652
Allow VF vlanid to be passed as a pointer

There should be a way to show no intent in programming a VLAN at all
(including clearing it). This allows handling error conditions
differently when VLAN clearing is explicit (vlan id == 0) vs implicit
(vlanid == NULL - try to clear it if possible).

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/hypervisor/virhostdev.c
src/util/virnetdev.c
src/util/virnetdevpriv.h
tests/virnetdevtest.c