From 3a244b6248af8a2c4a5a24de425eb7a6e0cc78b7 Mon Sep 17 00:00:00 2001 From: Rahul Thakur Date: Wed, 13 Dec 2023 15:17:06 +0000 Subject: [PATCH] Fix Ethernet.Link.{i}.FlowControl param not taking effect --- libbbfdm/dmtree/tr181/ethernet.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libbbfdm/dmtree/tr181/ethernet.c b/libbbfdm/dmtree/tr181/ethernet.c index 75b8881e..fc104279 100644 --- a/libbbfdm/dmtree/tr181/ethernet.c +++ b/libbbfdm/dmtree/tr181/ethernet.c @@ -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; }