From: "Linus Lüssing" <linus.luessing@web.de>
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.] [PATCHv8 3/5] batman-adv: Modified forwarding behaviour for multicast packets
Date: Thu, 15 Aug 2013 20:02:12 +0200 [thread overview]
Message-ID: <20130815180212.GA8728@Linus-Debian> (raw)
In-Reply-To: <20130815134549.GA1982@pandem0nium>
On Thu, Aug 15, 2013 at 03:45:49PM +0200, Simon Wunderlich wrote:
> Hey Linus,
>
> I'm currently playing a little with this patchset ...
>
> On Tue, Aug 13, 2013 at 10:23:58AM +0200, Linus Lüssing wrote:
> > [...]
> > + count = atomic_read(&tt_global_entry->orig_list_count);
> > [...]
> > + atomic_inc(&tt_global->orig_list_count);
> > [...]
> > + atomic_set(&tt_global_entry->orig_list_count, 0);
> > [...]
> > @@ -830,12 +833,14 @@ struct batadv_tt_local_entry {
> > * struct batadv_tt_global_entry - translation table global entry data
> > * @common: general translation table data
> > * @orig_list: list of orig nodes announcing this non-mesh client
> > + * @orig_list_count: number of items in the orig_list
> > * @list_lock: lock protecting orig_list
> > * @roam_at: time at which TT_GLOBAL_ROAM was set
> > */
> > struct batadv_tt_global_entry {
> > struct batadv_tt_common_entry common;
> > struct hlist_head orig_list;
> > + atomic_t orig_list_count;
> > spinlock_t list_lock; /* protects orig_list */
> > unsigned long roam_at;
>
> You never decrease this orig_list_count, do you? But actually you should
> when a node leaves the group. What I've tried is:
>
> Node 1 pings a multicast address
> -> no group member, nothing is sent
> Node 2 is added to the group
> -> multicast is now sent as unicast
> Node 3 is added to the group
> -> multicast is now sent as broadcast
> Node 2 is removed from the group
> -> multicast is still sent as broadcast (should be unicast!)
> Node 3 is removed from the group
> -> nothing is sent (as to be expected).
>
> Could you please check the removal case?
>
> Thanks,
> Simon
Hrm, stupid regression introduced with v8 while rebasing...
Sorry and thanks for spotting it! Going to send v9 in a minute.
next prev parent reply other threads:[~2013-08-15 18:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 8:23 [B.A.T.M.A.N.] Basic Multicast Optimizations Linus Lüssing
2013-08-13 8:23 ` [B.A.T.M.A.N.] [PATCHv8 1/5] batman-adv: Multicast Listener Announcements via Translation Table Linus Lüssing
2013-08-13 8:23 ` [B.A.T.M.A.N.] [PATCHv8 2/5] batman-adv: Announce new capability via multicast TVLV Linus Lüssing
2013-08-13 8:23 ` [B.A.T.M.A.N.] [PATCHv8 3/5] batman-adv: Modified forwarding behaviour for multicast packets Linus Lüssing
2013-08-15 13:45 ` Simon Wunderlich
2013-08-15 18:02 ` Linus Lüssing [this message]
2013-08-13 8:23 ` [B.A.T.M.A.N.] [PATCHv8 4/5] batman-adv: Add IPv4 link-local/IPv6-ll-all-nodes multicast support Linus Lüssing
2013-08-13 8:24 ` [B.A.T.M.A.N.] [PATCHv8 5/5] batman-adv: Send multicast packets to nodes with a WANT_ALL flag Linus Lüssing
2013-08-15 13:56 ` [B.A.T.M.A.N.] Basic Multicast Optimizations Simon Wunderlich
2013-08-15 18:25 ` Linus Lüssing
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=20130815180212.GA8728@Linus-Debian \
--to=linus.luessing@web.de \
--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