summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/pol
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-12-19 15:46:39 +0100
committerSander Vrijders <sander@ouroboros.rocks>2020-12-20 13:36:44 +0100
commitba6025c9ee7049fbc8ac91b5a1c91a853c4faccb (patch)
tree007f96653db9f0bc85182f406bdf111c6d98fdd3 /src/ipcpd/unicast/pol
parent5a26b4822380f8b8aed83937237fa0217b0a8b41 (diff)
downloadouroboros-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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pol')
-rw-r--r--src/ipcpd/unicast/pol/ca-mb-ecn.c2
-rw-r--r--src/ipcpd/unicast/pol/ca-mb-ecn.h1
-rw-r--r--src/ipcpd/unicast/pol/ca-nop.c2
-rw-r--r--src/ipcpd/unicast/pol/ca-nop.h1
4 files changed, 6 insertions, 0 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c
index 9560e211..75adba11 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.c
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c
@@ -220,11 +220,13 @@ void mb_ecn_ctx_update_ece(void * _ctx,
int mb_ecn_calc_ecn(int fd,
uint8_t * ecn,
+ qoscube_t qc,
size_t len)
{
size_t q;
(void) len;
+ (void) qc;
q = ipcp_flow_queued(fd);
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.h b/src/ipcpd/unicast/pol/ca-mb-ecn.h
index 30dba4a2..e22c7381 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.h
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.h
@@ -44,6 +44,7 @@ void mb_ecn_wnd_wait(ca_wnd_t wnd);
int mb_ecn_calc_ecn(int fd,
uint8_t * ecn,
+ qoscube_t qc,
size_t len);
ssize_t mb_ecn_print_stats(void * ctx,
diff --git a/src/ipcpd/unicast/pol/ca-nop.c b/src/ipcpd/unicast/pol/ca-nop.c
index ce210cfb..a75174c6 100644
--- a/src/ipcpd/unicast/pol/ca-nop.c
+++ b/src/ipcpd/unicast/pol/ca-nop.c
@@ -86,11 +86,13 @@ void nop_ctx_update_ece(void * ctx,
int nop_calc_ecn(int fd,
uint8_t * ecn,
+ qoscube_t qc,
size_t len)
{
(void) fd;
(void) len;
(void) ecn;
+ (void) qc;
return 0;
}
diff --git a/src/ipcpd/unicast/pol/ca-nop.h b/src/ipcpd/unicast/pol/ca-nop.h
index 859b52dc..cda9f0b1 100644
--- a/src/ipcpd/unicast/pol/ca-nop.h
+++ b/src/ipcpd/unicast/pol/ca-nop.h
@@ -44,6 +44,7 @@ void nop_wnd_wait(ca_wnd_t wnd);
int nop_calc_ecn(int fd,
uint8_t * ecn,
+ qoscube_t qc,
size_t len);
extern struct pol_ca_ops nop_ca_ops;