pull request: batman-adv 2012-11-07
Message ID | 1352315502-20324-1-git-send-email-ordex@autistici.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers |
Return-Path: <ordex@autistici.org> Received: from contumacia.investici.org (contumacia.investici.org [178.255.144.35]) by open-mesh.org (Postfix) with ESMTPS id D905460166C for <b.a.t.m.a.n@lists.open-mesh.org>; Wed, 7 Nov 2012 20:12:29 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass reason="1024-bit key; insecure key" header.i=@autistici.org header.b=e6JFjoqH; dkim-adsp=pass; dkim-atps=neutral Received: from [178.255.144.35] (contumacia [178.255.144.35]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id D1AEFE8ABC; Wed, 7 Nov 2012 19:12:28 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 contumacia.investici.org D1AEFE8ABC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1352315549; bh=mGZLhNnho1/kfTsWOtjWocSTbpENlxfROmSJWd5NsTo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=e6JFjoqHgxT1bKSy8eQrVXiRsV+Tp/oT0ui7db+0C4povJdaa8Ya72bWo6P7iSlqw 52Sgp8VyqHmf5hwy2eRF7hDC9aXZsxVFwhMf+vOr1yhXY/6sgispXUa9CQkNOdXrai GUfZSFjsyCxzh+g9rJiLfUrODrC30CYVGIo4lomw= From: Antonio Quartulli <ordex@autistici.org> To: davem@davemloft.net Date: Wed, 7 Nov 2012 20:11:30 +0100 Message-Id: <1352315502-20324-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org Subject: [B.A.T.M.A.N.] pull request: batman-adv 2012-11-07 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n@lists.open-mesh.org> List-Id: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n.lists.open-mesh.org> List-Unsubscribe: <https://lists.open-mesh.org/mm/options/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=unsubscribe> List-Archive: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/> List-Post: <mailto:b.a.t.m.a.n@lists.open-mesh.org> List-Help: <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=help> List-Subscribe: <https://lists.open-mesh.org/mm/listinfo/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=subscribe> X-List-Received-Date: Wed, 07 Nov 2012 19:12:30 -0000 |
Pull-request
git://git.open-mesh.org/linux-merge.git tags/batman-adv-for-davemMessage
Antonio Quartulli
Nov. 7, 2012, 7:11 p.m. UTC
Hello David, first of all thank you for having made us aware of the packet format problem in batman-adv! The impact of __packed on performances was not entirely known to me, in particular for what concerns the RISC arch. We have to change a number of packet formats before we can remove __packed everywhere which will obviously break compatibility. However we already scheduled a compatibility break because we want to heavily improve our packet formats and to provide a more flexible framework that would allow us to add new types and features while reducing the probability of breaking compatibility again and again as happened in the past (we are implementing TypeLengthValue (TLV) containers among other things). To avoid breaking compatibility (at least) twice we decided to fix now (in this patchset) what is fixable with no consequences to compatibility while we would ilike to defer the remaining changes for the scheduled compatibility break. In this patchset you have the two new features intended for net-next/linux-3.8: 1) the new UNICAST_4ADDR packet type 2) the Distributed ARP Table (DAT) component The new packet type has been reviewed to entirely address the alignment issue. At the same time we also reviewed the other packet types but as I told you before, we will send these changes later. Other than that you have patch 02/12 that removes the __packed attribute from the structures where it was not really needed. Please, let me know if there is any problem. Thank you very much, Antonio The following changes since commit 6f0a0986e328dd61610d898a09c9f4aa960ae64a: usbnet: runtime wake up device before calling usbnet_{read|write}_cmd (2012-11-07 03:53:38 -0500) are available in the git repository at: git://git.open-mesh.org/linux-merge.git tags/batman-adv-for-davem for you to fetch changes up to 9affec6be810d1d529cb9dc95126119451696ba6: batman-adv: enable fast client detection using unicast_4addr packets (2012-11-07 20:00:24 +0100) ---------------------------------------------------------------- Included changes: - minimal fixes to the packet layout to avoid the __packed attribute when not needed - new packet type called UNICAST_4ADDR: in this packet it is possible to find both source and destination node (in the classic UNICAST header only the destination field exists). - a new feature: Distributed ARP Table (D.A.T.). It aims to reduce ARP lookups latency by means of a simil-DHT approach. ---------------------------------------------------------------- Antonio Quartulli (9): batman-adv: add UNICAST_4ADDR packet type batman-adv: Distributed ARP Table - add a new debug log level batman-adv: Distributed ARP Table - create DHT helper functions batman-adv: Distributed ARP Table - implement local storage batman-adv: Distributed ARP Table - add ARP parsing functions batman-adv: Distributed ARP Table - add snooping functions for ARP messages batman-adv: Distributed ARP Table - add compile option batman-adv: Distributed ARP Table - add runtime switch batman-adv: enable fast client detection using unicast_4addr packets Martin Hundebøll (1): batman-adv: Add get_ethtool_stats() support for DAT Sven Eckelmann (2): batman-adv: Reserve extra bytes in skb for better alignment batman-adv: Mark correctly aligned headers not as __packed Documentation/networking/batman-adv.txt | 3 +- net/batman-adv/Kconfig | 10 + net/batman-adv/Makefile | 1 + net/batman-adv/bat_iv_ogm.c | 8 +- net/batman-adv/debugfs.c | 20 + net/batman-adv/distributed-arp-table.c | 1066 +++++++++++++++++++++++++++++++ net/batman-adv/distributed-arp-table.h | 167 +++++ net/batman-adv/hard-interface.c | 3 + net/batman-adv/icmp_socket.c | 4 +- net/batman-adv/main.c | 9 + net/batman-adv/main.h | 13 +- net/batman-adv/originator.c | 2 + net/batman-adv/packet.h | 68 +- net/batman-adv/routing.c | 51 +- net/batman-adv/send.c | 4 + net/batman-adv/soft-interface.c | 28 +- net/batman-adv/sysfs.c | 7 + net/batman-adv/translation-table.c | 20 +- net/batman-adv/types.h | 73 +++ net/batman-adv/unicast.c | 135 +++- net/batman-adv/unicast.h | 36 +- net/batman-adv/vis.c | 9 +- 22 files changed, 1682 insertions(+), 55 deletions(-) create mode 100644 net/batman-adv/distributed-arp-table.c create mode 100644 net/batman-adv/distributed-arp-table.h
Comments
From: Antonio Quartulli <ordex@autistici.org> Date: Wed, 7 Nov 2012 20:11:30 +0100 > Hello David, > > first of all thank you for having made us aware of the packet format problem in > batman-adv! The impact of __packed on performances was not entirely known to me, > in particular for what concerns the RISC arch. > > We have to change a number of packet formats before we can remove __packed > everywhere which will obviously break compatibility. > > However we already scheduled a compatibility break because we want to > heavily improve our packet formats and to provide a more flexible framework that > would allow us to add new types and features while reducing the probability of > breaking compatibility again and again as happened in the past (we are > implementing TypeLengthValue (TLV) containers among other things). > > To avoid breaking compatibility (at least) twice we decided to fix now (in this > patchset) what is fixable with no consequences to compatibility while we would > ilike to defer the remaining changes for the scheduled compatibility break. > > In this patchset you have the two new features intended for net-next/linux-3.8: > 1) the new UNICAST_4ADDR packet type > 2) the Distributed ARP Table (DAT) component > > The new packet type has been reviewed to entirely address the alignment issue. > At the same time we also reviewed the other packet types but as I told you > before, we will send these changes later. > > Other than that you have patch 02/12 that removes the __packed attribute from > the structures where it was not really needed. Pulled, thanks.