mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
Fix Ethernet.Link.{i}.FlowControl param not taking effect
This commit is contained in:
parent
df6e91db4a
commit
3a244b6248
1 changed files with 8 additions and 2 deletions
|
|
@ -1019,8 +1019,11 @@ static int set_EthernetLink_FlowControl(char *refparam, struct dmctx *ctx, void
|
|||
}
|
||||
|
||||
port_s = ethernet___get_ethernet_interface_section(buf);
|
||||
if (port_s)
|
||||
if (port_s) {
|
||||
dmuci_set_value_by_section(port_s, "pause", b ? "1" : "0");
|
||||
dmuci_set_value_by_section(port_s, "rxpause", b ? "1" : "0");
|
||||
dmuci_set_value_by_section(port_s, "txpause", b ? "1" : "0");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1028,8 +1031,11 @@ static int set_EthernetLink_FlowControl(char *refparam, struct dmctx *ctx, void
|
|||
/* Ethernet.Link.{i}. ---> Ethernet.Interface.{i}. */
|
||||
|
||||
port_s = ethernet___get_ethernet_interface_section(device);
|
||||
if (port_s)
|
||||
if (port_s) {
|
||||
dmuci_set_value_by_section(port_s, "pause", b ? "1" : "0");
|
||||
dmuci_set_value_by_section(port_s, "rxpause", b ? "1" : "0");
|
||||
dmuci_set_value_by_section(port_s, "txpause", b ? "1" : "0");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue