Attention is currently required from: manawyrm, tnt.
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-e1d/+/27716 )

Change subject: RIFO: fix frame_rifo_in check on frame number wrap-around
......................................................................


Patch Set 1:

(1 comment)

File src/octoi/frame_rifo.c:

https://gerrit.osmocom.org/c/osmo-e1d/+/27716/comment/9d338bec_b8dd9532
PS1, Line 117:          if ( fn < rifo->next_out_fn - FRAMES_PER_FIFO )
I'm not really following here. so the previous check was whether we try to 
insert a frame number that is too large.  Your new check is for a frame number 
that is too small ("min_in_fn").

But the way how you nested the new if clause, it means -ERANGE is only returned 
if it's both larger than max_in_fn and smaller than "min_in_fn", i.e. never?

I guess we shold define a frame_rifo_min_in_fn() function similar to 
frame_rifo_max_in_fn() and then have an or-statement here if it's either less 
than min_in_fn or greater than max_in_fn?



--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27716
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1d
Gerrit-Branch: laforge/rifo
Gerrit-Change-Id: I88abfc77543d5c64b01f40944b2914e03e57d08f
Gerrit-Change-Number: 27716
Gerrit-PatchSet: 1
Gerrit-Owner: manawyrm <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: tnt <[email protected]>
Gerrit-CC: laforge <[email protected]>
Gerrit-Attention: manawyrm <[email protected]>
Gerrit-Attention: tnt <[email protected]>
Gerrit-Comment-Date: Sat, 09 Apr 2022 09:00:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to