[PATCH] fix handling of PORT_PROFILE_RESPONSE_INPROGRESS netlink message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



During function test of the 802.1Qbg implementation in lldpad we came
across a small problem in the handling of the netlink message
corresponding to PORT_PROFILE_RESPONSE_INPROGRESS. This should not
result in returning the default rc=1.


Signed-off-by: Gerhard Stenzel <gerhard.stenzel@xxxxxxxxxx>

diff --git a/src/util/macvtap.c b/src/util/macvtap.c
index 635458d..a6d9a57 100644
--- a/src/util/macvtap.c
+++ b/src/util/macvtap.c
@@ -1025,6 +1025,7 @@ getPortProfileStatus(struct nlattr **tb, int32_t
vf,
          if (is8021Qbg) {
              /* no in-progress here; may be missing */
              *status = PORT_PROFILE_RESPONSE_INPROGRESS;
+            rc = 0;
          } else {
              msg = _("no IFLA_PORT_RESPONSE found in netlink message");
              goto err_exit;

-- 
Best regards, 

Gerhard Stenzel, 
-----------------------------------------------------------------------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]