Re: [PATCH] Fix EMI unacked message detection in windowing mode

Olivier Dormond <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization MNC Mobile News Channel SA
Message-ID <20100708140146.12bb3637@angband>
Hi Vincent,

On Thu, 08 Jul 2010 13:47:47 +0200, Vincent CHAVANIS
<[email protected]> wrote:

> So, you will loop 100 times (in most cases for nothing) to find any
> unacked msg ? This is useless CPU usage don't you think ?

Sure. But the unacked messages can be in any slot of the ring-buffer.

The other solution would be to fix the sending logic to take the window
into account and wrap around the "trn" when it reaches "window" instead
of EMI2_MAX_TRN. It happens that I didn't look far enough to see how
much changes this would implies. I'll try to have a look at it later
today.

Cheers,

				Olivier


> Le 08/07/2010 10:52, Olivier Dormond a écrit :
> > Hello,
> >
> >   Here is a patch against 1.4.3 to fix the detection of non-acked
> > messages sent through EMI/UCP. The problem arise when the window
> > parameter is set to a non-default value. In this case the loop in
> > emi2_idleprocessing which search for unacked messages only examine
> > the first "window" messages of the ring-buffer and thus misses any
> > unacked message with a trn higher then "window".
> >
> > Cheers,
> >
> > 				Olivier
> >
> 



-- 
______________________________________________________________________
MNC Mobile News Channel SA              Direct phone: +41 21 317 50 25
Olivier Dormond                         Central:      +41 21 317 50 20
Av. de la Gare 10                       Fax:          +41 21 317 50 21
1003 Lausanne                           Email:          [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.