From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: [PATCH 0/3 net-next] Bring sizeof(net_device) down to < 2K bytes Date: Fri, 10 Apr 2015 01:43:25 +0200 Message-ID: Cc: jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, eric.dumazet@gmail.com To: davem@davemloft.net Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:56804 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754166AbbDIXni (ORCPT ); Thu, 9 Apr 2015 19:43:38 -0400 Sender: netdev-owner@vger.kernel.org List-ID: The size of struct net_device crossed the 2K boundary a while ago which is a waste in combination with many net namespaces. This series brings the size of struct net_device down to well below 2K in total size with a typical configuration. Some reserves a several holes leave room for further expansion. Thomas Graf (3): e1000: Allocate pm_qos_req as needed net_device: Reorder members to fill holes net_device: Add minimal padding to allow for net_device pointer alignment drivers/net/ethernet/intel/e1000e/netdev.c | 15 ++++++++--- include/linux/kernel.h | 2 ++ include/linux/netdevice.h | 41 ++++++++++++++---------------- net/core/dev.c | 3 +-- 4 files changed, 33 insertions(+), 28 deletions(-) -- @Jeff: I only boot tested the e1000 in a virtual machine.