mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
bridge: Fix forward delay APIs
Due to copy&paste error in c1df2c14b5
,
virNetDevBridge[SG]etSTPDelay APIs were accessing wrong file.
This commit is contained in:
parent
b2cb24f48b
commit
2d5046d31f
@ -395,7 +395,7 @@ int virNetDevBridgeSetSTPDelay(const char *brname,
|
||||
if ((fd = virNetDevSetupControl(brname, &ifr)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = virNetDevBridgeSet(brname, "stp_state", MS_TO_JIFFIES(delay),
|
||||
ret = virNetDevBridgeSet(brname, "forward_delay", MS_TO_JIFFIES(delay),
|
||||
fd, &ifr);
|
||||
|
||||
cleanup:
|
||||
@ -426,7 +426,7 @@ int virNetDevBridgeGetSTPDelay(const char *brname,
|
||||
if ((fd = virNetDevSetupControl(brname, &ifr)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = virNetDevBridgeGet(brname, "stp_state", &i,
|
||||
ret = virNetDevBridgeGet(brname, "forward_delay", &i,
|
||||
fd, &ifr);
|
||||
*delayms = JIFFIES_TO_MS(i);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user