From: Marek Lindner <mareklindner@neomailbox.ch>
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.] Question concerning batman-adv bug #173 "Mesh packets on bat0"
Date: Wed, 18 Feb 2015 19:26:43 +0800 [thread overview]
Message-ID: <2282256.5kOumjqyC5@voltaire> (raw)
In-Reply-To: <OF6F534CD3.B9570448-ONC1257DF0.00289AC2-C1257DF0.0029BB69@phoenixcontact.com>
[-- Attachment #1.1: Type: text/plain, Size: 3083 bytes --]
=2D-nextPart2394197.oXrfbe7zVp
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
On Wednesday, February 18, 2015 08:35:49 Andreas Pape wrote:
> I'm interested if there is any progress concerning the bug entry #173 (
> http://www.open-mesh.org/issues/173).
>
> I'm currently observing something similiar on an embedded system running
> an older kernel 2.6.32.26. Batman-adv versions up to 2013.1.0 work
> flawlessly out of the box. All newer versions show the phenomenon
> described in bug #173.
> In my case I found out, that the batadv_batman_skb_recv function is never
> called again as soon as I add bat0 to the bridge interface I use.
> If I use the bat0 interface outside a bridge, everything works fine up to
> the latest version I tested (which was 2014.4.0) even with the old kernel
> version.
Can you please try the attached patch and check whether it makes any
difference? If the symptoms are the same, please provide step-by-step
instructions how you create / configure your interfaces.
Thanks,
Marek
=2D-nextPart2394197.oXrfbe7zVp
Content-Disposition: attachment; filename="0001-do-not-call-master-netdev_ops-ndo_init.patch"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-patch; charset="UTF-8"; name="0001-do-not-call-master-netdev_ops-ndo_init.patch"
From=2097dd927aca3747e1a054303638011f93373c96bf Mon Sep 17 00:00:00 2001
From: Marek Lindner <mareklindner@neomailbox.ch>
Date: Wed, 18 Feb 2015 19:24:06 +0800
Subject: [PATCH] do not call master->netdev_ops->ndo_init
=2D--
hard-interface.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hard-interface.c b/hard-interface.c
index fbda6b5..010a403 100644
=2D-- a/hard-interface.c
+++ b/hard-interface.c
@@ -349,7 +349,7 @@ batadv_hardif_deactivate_interface(struct batadv_hard_iface *hard_iface)
* is free'd and master can correctly change its internal state.
* Return 0 on success, a negative value representing the error otherwise
*/
=2Dstatic int batadv_master_del_slave(struct batadv_hard_iface *slave,
+/*tatic int batadv_master_del_slave(struct batadv_hard_iface *slave,
struct net_device *master)
{
int ret;
@@ -362,7 +362,7 @@ static int batadv_master_del_slave(struct batadv_hard_iface *slave,
ret = master->netdev_ops->ndo_del_slave(master, slave->net_dev);
return ret;
=2D}
+}*/
int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
const char *iface_name)
@@ -403,10 +403,10 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
/* check if the interface is enslaved in another virtual one and
* in that case unlink it first
*/
=2D master = netdev_master_upper_dev_get(hard_iface->net_dev);
+ /* master = netdev_master_upper_dev_get(hard_iface->net_dev);
ret = batadv_master_del_slave(hard_iface, master);
if (ret)
=2D goto err_dev;
+ goto err_dev; */
hard_iface->soft_iface = soft_iface;
bat_priv = netdev_priv(hard_iface->soft_iface);
=2D-
2.1.4
=2D-nextPart2394197.oXrfbe7zVp--
This is a multi-part message in MIME format.
[-- Attachment #1.2: Type: text/plain, Size: 946 bytes --]
On Wednesday, February 18, 2015 08:35:49 Andreas Pape wrote:
> I'm interested if there is any progress concerning the bug entry #173 (
> http://www.open-mesh.org/issues/173).
>
> I'm currently observing something similiar on an embedded system running
> an older kernel 2.6.32.26. Batman-adv versions up to 2013.1.0 work
> flawlessly out of the box. All newer versions show the phenomenon
> described in bug #173.
> In my case I found out, that the batadv_batman_skb_recv function is never
> called again as soon as I add bat0 to the bridge interface I use.
> If I use the bat0 interface outside a bridge, everything works fine up to
> the latest version I tested (which was 2014.4.0) even with the old kernel
> version.
Can you please try the attached patch and check whether it makes any
difference? If the symptoms are the same, please provide step-by-step
instructions how you create / configure your interfaces.
Thanks,
Marek
[-- Attachment #1.3: 0001-do-not-call-master-netdev_ops-ndo_init.patch --]
[-- Type: text/x-patch, Size: 1672 bytes --]
From 97dd927aca3747e1a054303638011f93373c96bf Mon Sep 17 00:00:00 2001
From: Marek Lindner <mareklindner@neomailbox.ch>
Date: Wed, 18 Feb 2015 19:24:06 +0800
Subject: [PATCH] do not call master->netdev_ops->ndo_init
---
hard-interface.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hard-interface.c b/hard-interface.c
index fbda6b5..010a403 100644
--- a/hard-interface.c
+++ b/hard-interface.c
@@ -349,7 +349,7 @@ batadv_hardif_deactivate_interface(struct batadv_hard_iface *hard_iface)
* is free'd and master can correctly change its internal state.
* Return 0 on success, a negative value representing the error otherwise
*/
-static int batadv_master_del_slave(struct batadv_hard_iface *slave,
+/*tatic int batadv_master_del_slave(struct batadv_hard_iface *slave,
struct net_device *master)
{
int ret;
@@ -362,7 +362,7 @@ static int batadv_master_del_slave(struct batadv_hard_iface *slave,
ret = master->netdev_ops->ndo_del_slave(master, slave->net_dev);
return ret;
-}
+}*/
int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
const char *iface_name)
@@ -403,10 +403,10 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
/* check if the interface is enslaved in another virtual one and
* in that case unlink it first
*/
- master = netdev_master_upper_dev_get(hard_iface->net_dev);
+ /* master = netdev_master_upper_dev_get(hard_iface->net_dev);
ret = batadv_master_del_slave(hard_iface, master);
if (ret)
- goto err_dev;
+ goto err_dev; */
hard_iface->soft_iface = soft_iface;
bat_priv = netdev_priv(hard_iface->soft_iface);
--
2.1.4
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-02-18 11:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 7:35 [B.A.T.M.A.N.] Question concerning batman-adv bug #173 "Mesh packets on bat0" Andreas Pape
2015-02-18 11:26 ` Marek Lindner [this message]
2015-02-18 12:28 ` [B.A.T.M.A.N.] Antwort: " Andreas Pape
2015-02-18 13:55 ` Marek Lindner
2015-02-18 14:56 ` [B.A.T.M.A.N.] Antwort: " Andreas Pape
2015-02-18 15:22 ` [B.A.T.M.A.N.] Antwort: " Andreas Pape
2015-02-18 15:45 ` Marek Lindner
2015-02-18 16:10 ` [B.A.T.M.A.N.] Antwort: " Andreas Pape
2015-02-19 4:15 ` Marek Lindner
2015-02-19 8:31 ` Andreas Pape
2015-02-19 9:40 ` Marek Lindner
2015-02-19 10:28 ` [B.A.T.M.A.N.] Antwort: " Andreas Pape
2015-02-19 10:36 ` Marek Lindner
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=2282256.5kOumjqyC5@voltaire \
--to=mareklindner@neomailbox.ch \
--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