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.] [PATCHv5 1/9] batman-adv: make struct batadv_neigh_node algorithm agnostic
Date: Fri, 30 Aug 2013 23:28:11 +0200 [thread overview]
Message-ID: <20130830212811.GQ2896@ritirata.org> (raw)
In-Reply-To: <20130830212234.GP2896@ritirata.org>
[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]
On Fri, Aug 30, 2013 at 11:22:34PM +0200, Antonio Quartulli wrote:
> On Fri, Aug 30, 2013 at 12:20:01PM +0800, Marek Lindner wrote:
> > On Thursday, August 29, 2013 04:54:43 Antonio Quartulli wrote:
> > > - INIT_HLIST_NODE(&neigh_node->list);
> > > -
> > > memcpy(neigh_node->addr, neigh_addr, ETH_ALEN);
> > > - spin_lock_init(&neigh_node->lq_update_lock);
> > > + neigh_node->if_incoming = hard_iface;
> > > + neigh_node->orig_node = orig_node;
> > > +
> > > + spin_lock_bh(&orig_node->neigh_list_lock);
> > > + hlist_add_head_rcu(&neigh_node->list, &orig_node->neigh_list);
> > > + spin_unlock_bh(&orig_node->neigh_list_lock);
> > > +
> > > + INIT_LIST_HEAD(&neigh_node->bonding_list);
> > >
> > > /* extra reference for return */
> > > atomic_set(&neigh_node->refcount, 2);
> > >
> > > - batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
> > > - "Creating new neighbor %pM on interface %s\n", neigh_addr,
> > > - hard_iface->net_dev->name);
> > > -
> >
> > The init problem remains unresolved ?
>
> Could you be more specific and tell me which fields are not properly
> initialised?
maybe you were taking about neigh_node->list ? actually that may be missing and
we don't know if this neigh_noe is going to be immediately added to a list..so
better to initialise it.
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-08-30 21:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 20:54 [B.A.T.M.A.N.] [PATCHv5 0/9] Improving the routing protocol abstraction Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 1/9] batman-adv: make struct batadv_neigh_node algorithm agnostic Antonio Quartulli
2013-08-30 4:20 ` Marek Lindner
2013-08-30 21:22 ` Antonio Quartulli
2013-08-30 21:28 ` Antonio Quartulli [this message]
2013-08-31 18:18 ` Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 2/9] batman-adv: make struct batadv_orig_node " Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 3/9] batman-adv: add bat_orig_print API function Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 4/9] batman-adv: add bat_neigh_cmp " Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 5/9] batman-adv: add bat_neigh_is_equiv_or_better " Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 6/9] batman-adv: adapt bonding to use the new API functions Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 7/9] batman-adv: adapt the neighbor purging routine " Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 8/9] batman-adv: provide orig_node routing API Antonio Quartulli
2013-08-28 20:54 ` [B.A.T.M.A.N.] [PATCHv5 9/9] batman-adv: adapt the TT component to use the new API functions Antonio Quartulli
2013-08-28 21:55 ` [B.A.T.M.A.N.] [PATCHv5 0/9] Improving the routing protocol abstraction Antonio Quartulli
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=20130830212811.GQ2896@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