diff options
author | Harald Welte <laforge@osmocom.org> | 2022-04-21 09:09:03 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-04-21 09:14:42 +0200 |
commit | e8e62c4b3125128ed75b59282ce3df18dd891855 (patch) | |
tree | 519480a4255a32239f24f42ef93385437bd3296e /include | |
parent | 42d2b80fd5d2ec83f20b06f573484fdbee95e915 (diff) |
octoi: Support setting IP DSCP and socket priority via VTY
Let's allow setting IP DSCP and socket priority via the VTY.
Note that you must still manually add a kernel egress QoS map from
socket priority to IEEE P802.1p PCP (Priority Code Point) like this:
ip link set dev eth0.7 type vlan egress-qos-map 0:0 1:1 5:5 6:6 7:7
This will create 1:1 mappings for socket priorities 0, 1, 5, 6 and 7 to
the respective IEEE PCP. A higher PCP typically means higher priority,
where voice is traditionally using "5".
Change-Id: Ic5a6c5a0ec67beb40be4ca95326aca5072a28958
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/octoi/octoi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/octoi/octoi.h b/include/osmocom/octoi/octoi.h index 48ec122..e7ebcaa 100644 --- a/include/osmocom/octoi/octoi.h +++ b/include/osmocom/octoi/octoi.h @@ -42,6 +42,8 @@ struct octoi_server { struct { struct llist_head accounts; /* list of octoi_account */ struct osmo_sockaddr_str local; /* local socket bind address/port */ + uint8_t dscp; /* IP DSCP value */ + uint8_t priority; /* Socket Priority value */ } cfg; }; @@ -54,6 +56,9 @@ struct octoi_client { struct osmo_sockaddr_str local; /* local socket bind address/port */ struct octoi_account *account; + + uint8_t dscp; /* IP DSCP value */ + uint8_t priority; /* Socket Priority value */ } cfg; }; |