From: Marek Lindner <lindner_marek@yahoo.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.] [PATCHv5 1/9] batman-adv: make struct batadv_neigh_node algorithm agnostic
Date: Fri, 30 Aug 2013 12:20:01 +0800 [thread overview]
Message-ID: <201308301220.01356.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1377723291-3335-2-git-send-email-ordex@autistici.org>
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 ?
> @@ -470,8 +472,7 @@ batadv_find_bond_router(struct batadv_orig_node
> *primary_orig, * does not exist as rcu version
> */
> list_del_rcu(&primary_orig->bond_list);
> - list_add_rcu(&primary_orig->bond_list,
> - &router->bonding_list);
> + list_add_rcu(&primary_orig->bond_list, &router->bonding_list);
> spin_unlock_bh(&primary_orig->neigh_list_lock);
>
> out:
Did you forget to remove this section or did you choose to ignore my previous
comment ?
Please do not resend your patchset before *all* comments have been addressed
or list "open issues" in your cover letter.
Cheers,
Marek
next prev parent reply other threads:[~2013-08-30 4:20 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 [this message]
2013-08-30 21:22 ` Antonio Quartulli
2013-08-30 21:28 ` Antonio Quartulli
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=201308301220.01356.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.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