public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
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/2] batman-adv: add per VLAN interface attribute framework
Date: Thu, 20 Jun 2013 05:33:13 +0800	[thread overview]
Message-ID: <201306200533.13727.lindner_marek@yahoo.de> (raw)

On Thursday, June 13, 2013 02:04:19 Antonio Quartulli wrote:
> --- a/hard-interface.c
> +++ b/hard-interface.c
> @@ -643,6 +643,8 @@ static int batadv_hard_if_event(struct notifier_block
> *this,
> 
>  	if (batadv_softif_is_valid(net_dev) && event == NETDEV_REGISTER) {
>  		batadv_sysfs_add_meshif(net_dev);
> +		bat_priv = netdev_priv(net_dev);
> +		batadv_softif_create_vlan(bat_priv, BATADV_NO_FLAGS);
>  		return NOTIFY_DONE;
>  	}

When is this entry ever removed ? Did you try to rmmod the module with these 
patches enabled ?


> +       /* explicitly remove the associated TT local entry because it is 
marked
> +        * with the NOPURGE flag
> +        */
> +       batadv_tt_local_remove(bat_priv, dev->dev_addr, vid,
> +                              "vlan interface destroyed", false);

Curious. In batadv_interface_add_vid() you force the BATADV_VLAN_HAS_TAG tag 
onto each batadv_tt_local_add() call but on removal we don't have the flag 
set. Are you certain that is correct ?


> @@ -613,6 +632,8 @@ struct batadv_priv {
>  	struct work_struct cleanup_work;
>  	struct batadv_hard_iface __rcu *primary_if;  /* rcu protected pointer */
>  	struct batadv_algo_ops *bat_algo_ops;
> +	struct list_head softif_vlan_list;
> +	spinlock_t softif_vlan_list_lock; /* protects softif_vlan_list */
>  #ifdef CONFIG_BATMAN_ADV_BLA
>  	struct batadv_priv_bla bla;
>  #endif

Why do we need a full blown list ? Isn't hlist sufficient ?

Cheers,
Marek

             reply	other threads:[~2013-06-19 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 21:33 Marek Lindner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-12 18:04 [B.A.T.M.A.N.] [PATCHv5 1/2] batman-adv: add per VLAN interface attribute framework 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=201306200533.13727.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