All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: linus.luessing@c0d3.blue, b.a.t.m.a.n@lists.open-mesh.org
Cc: b.a.t.m.a.n@lists.open-mesh.org,
	Nicolas Escande <nico.escande@gmail.com>
Subject: Re: [PATCH v2] batman-adv: add dynamic, bridged-in TT VID detection support
Date: Thu, 14 Nov 2024 14:58:43 +0100	[thread overview]
Message-ID: <6100761.lOV4Wx5bFT@ripper> (raw)
In-Reply-To: <D5LY6JQJT9NV.2MI0DB2CLTO6D@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

On Thursday, 14 November 2024 14:48:52 CET Nicolas Escande wrote:
> Hi there,
> 
> We've been running this for a few time and it's very usefull. So is there any
> news on merging this into the kernel ? Or is the BLA thing blocking ?

I am not in favour of changing the behavior of batman-adv. Now everyone can 
increase the number of managed VLANs without any control by the node admin.

And as Linus wrote, it also shows odd behaviors. And Antonio also didn't write 
his opinion here. I have therefore downgraded it from PATCH to RFC (instead of 
simply rejecting it).

[...]
> Or maybe I missed something ?
>  
> ---
>  net/batman-adv/soft-interface.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
> index b61f35918b5d..d7de54734725 100644
> --- a/net/batman-adv/soft-interface.c
> +++ b/net/batman-adv/soft-interface.c
> @@ -599,7 +599,6 @@ batadv_softif_create_vlan(struct batadv_priv *bat_priv, unsigned short vid)
>  
>  	atomic_set(&vlan->ap_isolation, 0);
>  
> -	kref_get(&vlan->refcount);
>  	hlist_add_head_rcu(&vlan->list, &bat_priv->softif_vlan_list);
>  	spin_unlock_bh(&bat_priv->softif_vlan_list_lock);
>  
> 

This ref is for the VLAN list entry (just one line below the kref_get).
This patch is therefore definitely wrong.

Kind regards,
	Sven


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2024-11-14 13:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12 21:39 [PATCH v2] batman-adv: add dynamic, bridged-in TT VID detection support Linus Lüssing
2024-06-16 20:38 ` Linus Lüssing
2024-07-12 22:13   ` Linus Lüssing
2024-11-14 13:48 ` Nicolas Escande
2024-11-14 13:58   ` Sven Eckelmann [this message]
2024-11-14 14:53     ` Nicolas Escande
2024-11-14 18:06       ` Linus Lüssing
2024-11-21 15:10         ` Nicolas Escande
2024-11-24  9:47     ` Sven Eckelmann

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=6100761.lOV4Wx5bFT@ripper \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=linus.luessing@c0d3.blue \
    --cc=nico.escande@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.