From patchwork Sat Mar 19 02:11:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Copeland X-Patchwork-Id: 8624631 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 907A89F44D for ; Sat, 19 Mar 2016 02:11:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBA2A2042A for ; Sat, 19 Mar 2016 02:11:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E3D1F20426 for ; Sat, 19 Mar 2016 02:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754481AbcCSCLu (ORCPT ); Fri, 18 Mar 2016 22:11:50 -0400 Received: from mail-qg0-f65.google.com ([209.85.192.65]:35162 "EHLO mail-qg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754348AbcCSCLn (ORCPT ); Fri, 18 Mar 2016 22:11:43 -0400 Received: by mail-qg0-f65.google.com with SMTP id 51so2132780qgy.2 for ; Fri, 18 Mar 2016 19:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobcopeland-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KbYxFukDxeafASHphBWqjfKIwdmc94KeKt2lrYMAVrc=; b=ByBZ60CyNjs+MhNahf54j3g/OR2P0+qjyiBZEkakq8zEG8wicKDgFtN0brcqcf9fvd //LTRqjLgYgVmeittLKCcIpWLoeZD/tdZyhAhHBwp1wjtevkft2tXHua0wExxkkEOfnj uCOaOTBqkqQ5BNwmQyuC++5irKqs94DjjITTnOtM3+Fc1ySzEYZ750VmcE87b3o0t0Xr /YZoiKdudwZEm5MubDGKW2arXJfvmGh/v29Zx7/FfDywcDRWsfmAJWw04R3uU/DJLy92 W0KI2Q/hlf4LPNMxVCguOTSUJyFSzikpTORDdTBCj6t1E8CQdJV0cgOmxKQbzNhAnLSb K/HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KbYxFukDxeafASHphBWqjfKIwdmc94KeKt2lrYMAVrc=; b=EEO/IB+8gfK+1UKK0bsUeiTR8wjflq5XQxn3iXt7WtNaCwMOFuHaaoj2TCanSSaEB4 zsiUKqCCsJz/wh2O0gj52hGUHzhbrE+CK/EfGFyBZKBbmQ6374c8W6/u6mpIe8seJwra PxICLd5wR0CEbSfgOYpRu6odLOK3CZEvJxCVXt4dkPPQB+rUrt3TbDBDY/bExiLsgDgl 2Ozr/GQWNNTVK4XUoxjKQyglmP2CxibLuqwx+Q291N4hhoED7vU4SvtSW6xKCPcmUg7X ttv/Ifjwpv0gTBGEldzCGQGB1MXk1ixgYh4k64mHDyORAdf9jrx+xc97B2lTUvmB0EiU 1KTg== X-Gm-Message-State: AD7BkJI0hk1+OO32NMMl+Y7GFIHorCSsZIP0vM8v2hYHCwuMZwnK+EWadjQwhVaNJBOEIg== X-Received: by 10.140.201.130 with SMTP id w124mr28140227qha.57.1458353502260; Fri, 18 Mar 2016 19:11:42 -0700 (PDT) Received: from hash ([2001:470:1d:6db:230:48ff:fe9d:9c89]) by smtp.gmail.com with ESMTPSA id 7sm7284422qhx.24.2016.03.18.19.11.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Mar 2016 19:11:41 -0700 (PDT) Received: from glass.lan ([192.168.1.51] helo=glass) by hash with esmtp (Exim 4.84_2) (envelope-from ) id 1ah6MS-000545-HW; Fri, 18 Mar 2016 22:11:28 -0400 Received: from bob by glass with local (Exim 4.86) (envelope-from ) id 1ah6Md-0002Ge-Mm; Fri, 18 Mar 2016 22:11:39 -0400 From: Bob Copeland To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Bob Copeland Subject: [PATCH 4/5] mac80211: mesh: reorder structure members Date: Fri, 18 Mar 2016 22:11:31 -0400 Message-Id: <1458353492-8654-5-git-send-email-me@bobcopeland.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1458353492-8654-1-git-send-email-me@bobcopeland.com> References: <1458353492-8654-1-git-send-email-me@bobcopeland.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reduce padding waste in struct mesh_table and struct rmc_entry by moving the smaller fields to the end. Signed-off-by: Bob Copeland --- net/mac80211/mesh.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 46b540a25d9d..4a59c034cc6d 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h @@ -133,11 +133,10 @@ struct mesh_path { * @rhash: the rhashtable containing struct mesh_paths, keyed by dest addr */ struct mesh_table { - atomic_t entries; /* Up to MAX_MESH_NEIGHBOURS */ struct hlist_head known_gates; spinlock_t gates_lock; - struct rhashtable rhead; + atomic_t entries; /* Up to MAX_MESH_NEIGHBOURS */ }; /* Recent multicast cache */ @@ -159,8 +158,8 @@ struct mesh_table { */ struct rmc_entry { struct hlist_node list; - u32 seqnum; unsigned long exp_time; + u32 seqnum; u8 sa[ETH_ALEN]; };