diff options
author | Dimitri Staessens <[email protected]> | 2020-12-19 15:46:39 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2020-12-20 13:36:44 +0100 |
commit | ba6025c9ee7049fbc8ac91b5a1c91a853c4faccb (patch) | |
tree | 007f96653db9f0bc85182f406bdf111c6d98fdd3 /src/ipcpd/unicast/dt.c | |
parent | 5a26b4822380f8b8aed83937237fa0217b0a8b41 (diff) | |
download | ouroboros-ba6025c9ee7049fbc8ac91b5a1c91a853c4faccb.tar.gz ouroboros-ba6025c9ee7049fbc8ac91b5a1c91a853c4faccb.zip |
ipcpd: Pass qoscube to ECN marking function
The ECN marking function should be able to use the packet QoS to allow
prioritizing traffic under congestion. Not yet implemented in MB-ECN.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast/dt.c')
-rw-r--r-- | src/ipcpd/unicast/dt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/unicast/dt.c b/src/ipcpd/unicast/dt.c index 1360371a..92c0f270 100644 --- a/src/ipcpd/unicast/dt.c +++ b/src/ipcpd/unicast/dt.c @@ -480,7 +480,7 @@ static void packet_handler(int fd, return; } - (void) ca_calc_ecn(ofd, head + dt_pci_info.ecn_o, len); + (void) ca_calc_ecn(ofd, head + dt_pci_info.ecn_o, qc, len); ret = ipcp_flow_write(ofd, sdb); if (ret < 0) { @@ -816,7 +816,7 @@ int dt_write_packet(uint64_t dst_addr, dt_pci.eid = eid; dt_pci.ecn = 0; - (void) ca_calc_ecn(fd, &dt_pci.ecn, len); + (void) ca_calc_ecn(fd, &dt_pci.ecn, qc, len); dt_pci_ser(head, &dt_pci); |