From: Antonio Quartulli <ordex@autistici.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: generalise size in bitarray API
Date: Fri, 6 Jul 2012 00:16:07 +0200 [thread overview]
Message-ID: <20120705221607.GN2917@ritirata.org> (raw)
In-Reply-To: <201207060000.00086.lindner_marek@yahoo.de>
[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]
On Thu, Jul 05, 2012 at 11:59:59PM +0200, Marek Lindner wrote:
> On Monday, July 02, 2012 15:22:58 Antonio Quartulli wrote:
> > /* sequence number is much newer, probably missed a lot of packets
> > */ - if (seq_num_diff >= BATADV_TQ_LOCAL_WINDOW_SIZE &&
> > + if (seq_num_diff >= size &&
> > seq_num_diff < BATADV_EXPECTED_SEQNO_RANGE) {
> > batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
> > "We missed a lot of packets (%i) !\n",
> > seq_num_diff - 1);
> > - bitmap_zero(seq_bits, BATADV_TQ_LOCAL_WINDOW_SIZE);
> > + bitmap_zero(seq_bits, size);
> > if (set_mark)
> > - batadv_set_bit(seq_bits, 0);
> > + batadv_set_bit(seq_bits, 0, size);
> > return 1;
> > }
> >
> > @@ -80,15 +81,15 @@ int batadv_bit_get_packet(void *priv, unsigned long
> > *seq_bits, * packet should be dropped without calling this function if the
> > * seqno window is protected.
> > */
> > - if (seq_num_diff <= -BATADV_TQ_LOCAL_WINDOW_SIZE ||
> > + if (seq_num_diff <= -size ||
> > seq_num_diff >= BATADV_EXPECTED_SEQNO_RANGE) {
>
> Without addressing BATADV_EXPECTED_SEQNO_RANGE this change does not make sense
> for batadv_bit_get_packet(). Looking at the function as a whole I'd say it is
> very specific for the OGM handling. Thus, it will be difficult to use it for
> anything else or do you have a sample use case ?
Hi,
mh, no we don't. Drop this patch, I'd say we need a more sophisticated changed
:)
Thank you,
>
> Regards,
> Marek
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2012-07-05 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 13:22 [B.A.T.M.A.N.] [PATCH] batman-adv: generalise size in bitarray API Antonio Quartulli
2012-07-05 21:59 ` Marek Lindner
2012-07-05 22:16 ` Antonio Quartulli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120705221607.GN2917@ritirata.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox