Attention is currently required from: fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/27797 )
Change subject: osmo-bsc-{master,latest}/osmo-bsc.cfg: set AMR link adaptation params
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/27797
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ic1c46d54ef97278100bd52156ad5627418ef5c97
Gerrit-Change-Number: 27797
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 15 Apr 2022 04:53:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27796 )
Change subject: bsc/osmo-bsc.cfg: explicitly set AMR link adaptation parameters
......................................................................
bsc/osmo-bsc.cfg: explicitly set AMR link adaptation parameters
The default AMR link adaptation parameters have been changed in
the recent osmo-bsc, so set the old expected default explicitly.
Change-Id: I320d91a35bc50bdfe87c0384035a10b8672ef23c
Related: osmo-bsc.git Ic5f8d55d250976d8d4c9cae2d89480fd52326717
Related: SYS#5917
---
M bsc/osmo-bsc.cfg
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/bsc/osmo-bsc.cfg b/bsc/osmo-bsc.cfg
index f5c9c16..63a82b0 100644
--- a/bsc/osmo-bsc.cfg
+++ b/bsc/osmo-bsc.cfg
@@ -95,6 +95,18 @@
si5 neighbor-list add arfcn 10
si5 neighbor-list add arfcn 20
codec-support fr hr efr amr
+ amr tch-f modes 0 2 4 7
+ amr tch-f threshold ms 32 32 32
+ amr tch-f hysteresis ms 8 8 8
+ amr tch-f threshold bts 32 32 32
+ amr tch-f hysteresis bts 8 8 8
+ amr tch-f start-mode auto
+ amr tch-h modes 0 2 4
+ amr tch-h threshold ms 32 32
+ amr tch-h hysteresis ms 8 8
+ amr tch-h threshold bts 32 32
+ amr tch-h hysteresis bts 8 8
+ amr tch-h start-mode auto
gprs mode gprs
gprs routing area 0
gprs network-control-order nc0
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27796
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I320d91a35bc50bdfe87c0384035a10b8672ef23c
Gerrit-Change-Number: 27796
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
Attention is currently required from: fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27796 )
Change subject: bsc/osmo-bsc.cfg: explicitly set AMR link adaptation parameters
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27796
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I320d91a35bc50bdfe87c0384035a10b8672ef23c
Gerrit-Change-Number: 27796
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 15 Apr 2022 04:53:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27800 )
Change subject: RIFO: Fix issue in frame number bounds checking
......................................................................
RIFO: Fix issue in frame number bounds checking
You can't have a 'min' and 'max' FN because of the wrap
around this needs to be checked "all at once".
Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com>
Change-Id: Ie9024f84f79b458248786bca2343a1f8bffb9994
---
M src/octoi/frame_rifo.c
M src/octoi/frame_rifo.h
2 files changed, 5 insertions(+), 10 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/octoi/frame_rifo.c b/src/octoi/frame_rifo.c
index 7e8ddf7..9f25cf0 100644
--- a/src/octoi/frame_rifo.c
+++ b/src/octoi/frame_rifo.c
@@ -112,7 +112,7 @@
uint32_t bucket;
uint8_t *dst;
- if (fn > frame_rifo_max_in_fn(rifo) && fn < frame_rifo_min_in_fn(rifo))
+ if (!frame_rifo_fn_in_range(rifo, fn))
{
return -ERANGE;
}
diff --git a/src/octoi/frame_rifo.h b/src/octoi/frame_rifo.h
index f107537..6988710 100644
--- a/src/octoi/frame_rifo.h
+++ b/src/octoi/frame_rifo.h
@@ -13,16 +13,11 @@
indexed by physical offset in buf */
};
-/* maximum frame number we currently can store in the rifo */
-static inline uint32_t frame_rifo_max_in_fn(const struct frame_rifo *ff)
+/* can this frame number be stores in the rifo */
+static inline bool frame_rifo_fn_in_range(const struct frame_rifo *ff, uint32_t fn)
{
- return ff->next_out_fn + FRAMES_PER_FIFO - 1;
-}
-
-/* minimum frame number we currently can store in the rifo */
-static inline uint32_t frame_rifo_min_in_fn(const struct frame_rifo *ff)
-{
- return ff->next_out_fn - 1;
+ uint32_t d = fn - ff->next_out_fn;
+ return d < FRAMES_PER_FIFO;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27800
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ie9024f84f79b458248786bca2343a1f8bffb9994
Gerrit-Change-Number: 27800
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
Attention is currently required from: tnt.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27801 )
Change subject: RIFO: Add a test for bounds checking
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27801
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I048e1b8c2b918f7ca4b4327b89bf04430a2838bc
Gerrit-Change-Number: 27801
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: tnt <tnt(a)246tNt.com>
Gerrit-Comment-Date: Thu, 14 Apr 2022 20:25:00 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment