From patchwork Fri Jul 9 14:51:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 302 Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (Postfix) with SMTP id D99E81545B5 for ; Fri, 9 Jul 2010 16:51:30 +0200 (CEST) Received: (qmail invoked by alias); 09 Jul 2010 14:51:29 -0000 Received: from i59F6BF3A.versanet.de (EHLO sven-desktop.lazhur.ath.cx) [89.246.191.58] by mail.gmx.net (mp026) with SMTP; 09 Jul 2010 16:51:29 +0200 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX1/ydNUMxFbyqHE7XRaTXwJF7m+R9I9QhyA16CLCrx RQ4p4QW+pPCLiR From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Fri, 9 Jul 2010 16:51:25 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34-1-amd64; KDE/4.4.4; x86_64; ; ) References: <20100707193047.422ac235@rechenknecht> <1278523926-29219-2-git-send-email-an.langer@gmx.de> In-Reply-To: <1278523926-29219-2-git-send-email-an.langer@gmx.de> MIME-Version: 1.0 Message-Id: <201007091651.27867.sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 14:51:31 -0000 Andreas Langer wrote: > + if (atomic_read(&bat_priv->frag_enabled) && batman_if->net_dev->mtu < > + ETH_DATA_LEN + BAT_HEADER_LEN) > + bat_info(soft_device, > + "The MTU of interface %s is too small (%zi) to handle " > + "the transport of batman-adv packets. Packets going " > + "over this interface will be fragmented on layer2 " > + "which could impact the performance. Setting the MTU " > + "to %zi would solve the problem.\n", > + batman_if->dev, batman_if->net_dev->mtu, > + ETH_DATA_LEN + BAT_HEADER_LEN); > + > + if (!atomic_read(&bat_priv->frag_enabled) && batman_if->net_dev->mtu < > + ETH_DATA_LEN + BAT_HEADER_LEN) > + bat_info(soft_device, > + "The MTU of interface %s is too small (%zi) to handle " > + "the transport of batman-adv packets. If you experience" > + " problems getting traffic through try increasing the " > + "MTU to %zi.\n", > + batman_if->dev, batman_if->net_dev->mtu, > + ETH_DATA_LEN + BAT_HEADER_LEN); > + > if (hardif_is_iface_up(batman_if)) > hardif_activate_interface(soft_device, bat_priv, batman_if); Nach der Aenderung der Argumente muesstest du das erste %zi wieder in ein %i umaendern: diff --git a/batman-adv/hard-interface.c b/batman-adv/hard-interface.c index 1177e93..9dbbe2b 100644 --- a/batman-adv/hard-interface.c +++ b/batman-adv/hard-interface.c @@ -276,7 +276,7 @@ int hardif_enable_interface(struct batman_if *batman_if) if (atomic_read(&bat_priv->frag_enabled) && batman_if->net_dev->mtu < ETH_DATA_LEN + BAT_HEADER_LEN) bat_info(soft_device, - "The MTU of interface %s is too small (%zi) to handle " + "The MTU of interface %s is too small (%i) to handle " "the transport of batman-adv packets. Packets going " "over this interface will be fragmented on layer2 " "which could impact the performance. Setting the MTU " @@ -287,7 +287,7 @@ int hardif_enable_interface(struct batman_if *batman_if) if (!atomic_read(&bat_priv->frag_enabled) && batman_if->net_dev->mtu < ETH_DATA_LEN + BAT_HEADER_LEN) bat_info(soft_device, - "The MTU of interface %s is too small (%zi) to handle " + "The MTU of interface %s is too small (%i) to handle " "the transport of batman-adv packets. If you experience" " problems getting traffic through try increasing the " "MTU to %zi.\n",