mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
bridge: Fix forward delay APIs
Due to copy&paste error in c1df2c14b590b3d68b707aa4f3a570f95a6bc548, 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)
|
if ((fd = virNetDevSetupControl(brname, &ifr)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = virNetDevBridgeSet(brname, "stp_state", MS_TO_JIFFIES(delay),
|
ret = virNetDevBridgeSet(brname, "forward_delay", MS_TO_JIFFIES(delay),
|
||||||
fd, &ifr);
|
fd, &ifr);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@ -426,7 +426,7 @@ int virNetDevBridgeGetSTPDelay(const char *brname,
|
|||||||
if ((fd = virNetDevSetupControl(brname, &ifr)) < 0)
|
if ((fd = virNetDevSetupControl(brname, &ifr)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = virNetDevBridgeGet(brname, "stp_state", &i,
|
ret = virNetDevBridgeGet(brname, "forward_delay", &i,
|
||||||
fd, &ifr);
|
fd, &ifr);
|
||||||
*delayms = JIFFIES_TO_MS(i);
|
*delayms = JIFFIES_TO_MS(i);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user