[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1212662019.3039.14.camel@castor.localdomain>
Date: Thu, 05 Jun 2008 11:33:39 +0100
From: Richard Kennedy <richard@....demon.co.uk>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] Net: reorder udp_iter_state to remove padding on 64bit
builds
reorder udp_iter_state to remove padding on 64bit builds
shrinks from 24 to 16 bytes, moving to a smaller slab when CONFIG_NET_NS
is undefined & seq_net_private = {}
Signed-off-by: Richard Kennedy <richard@....demon.co.uk>
---
static analysis found this padding in udp_iter_state.
I've boot tested 2.6.26-rc4 + patch on desktop AMD64, and successfully
run a simple UDP test case.
Richard
diff --git a/include/net/udp.h b/include/net/udp.h
index ccce837..7a86848 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -196,8 +196,8 @@ struct udp_seq_afinfo {
struct udp_iter_state {
struct seq_net_private p;
sa_family_t family;
- struct hlist_head *hashtable;
int bucket;
+ struct hlist_head *hashtable;
};
#ifdef CONFIG_PROC_FS
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists