mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
fix handling of PORT_PROFILE_RESPONSE_INPROGRESS netlink message
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. - src/util/macvtap.c: fix getPortProfileStatus() to return 0 in that case and also fix an indentation problem
This commit is contained in:
parent
40a0e82c87
commit
e4fb6a3c7d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user