All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH 0/2 net-next v2] Bring sizeof(net_device) down to < 2K bytes
Date: Fri, 10 Apr 2015 15:52:36 +0200	[thread overview]
Message-ID: <cover.1428672434.git.tgraf@suug.ch> (raw)

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.

Before:
/* size: 2176, cachelines: 34, members: 121 */

After:
/* size: 1984, cachelines: 31, members: 120 */


Thomas Graf (2):
  e1000e: Move pm_qos_req to e1000e adapter
  net_device: Reorder members to fill holes

 drivers/net/ethernet/intel/e1000e/e1000.h  |  1 +
 drivers/net/ethernet/intel/e1000e/netdev.c |  8 +++---
 include/linux/netdevice.h                  | 46 ++++++++++++++----------------
 3 files changed, 26 insertions(+), 29 deletions(-)

---
v2:
 - Moved pm_qos_req to e1000e adapter entirely as suggested by Daniel
 - Dropped patch 2 based on comment from Eric. __alignof__ is not
   reliable to derive alignment of kmalloc returned pointer.

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Graf <tgraf@suug.ch>
To: davem@davemloft.net
Cc: jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org,
	netdev@vger.kernel.org, eric.dumazet@gmail.com,
	daniel@iogearbox.net
Subject: [PATCH 0/2 net-next v2] Bring sizeof(net_device) down to < 2K bytes
Date: Fri, 10 Apr 2015 15:52:36 +0200	[thread overview]
Message-ID: <cover.1428672434.git.tgraf@suug.ch> (raw)

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.

Before:
/* size: 2176, cachelines: 34, members: 121 */

After:
/* size: 1984, cachelines: 31, members: 120 */


Thomas Graf (2):
  e1000e: Move pm_qos_req to e1000e adapter
  net_device: Reorder members to fill holes

 drivers/net/ethernet/intel/e1000e/e1000.h  |  1 +
 drivers/net/ethernet/intel/e1000e/netdev.c |  8 +++---
 include/linux/netdevice.h                  | 46 ++++++++++++++----------------
 3 files changed, 26 insertions(+), 29 deletions(-)

---
v2:
 - Moved pm_qos_req to e1000e adapter entirely as suggested by Daniel
 - Dropped patch 2 based on comment from Eric. __alignof__ is not
   reliable to derive alignment of kmalloc returned pointer.

             reply	other threads:[~2015-04-10 13:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10 13:52 Thomas Graf [this message]
2015-04-10 13:52 ` [PATCH 0/2 net-next v2] Bring sizeof(net_device) down to < 2K bytes Thomas Graf
2015-04-10 13:52 ` [Intel-wired-lan] [PATCH 1/2 net-next] e1000e: Move pm_qos_req to e1000e adapter Thomas Graf
2015-04-10 13:52   ` Thomas Graf
2015-04-10 15:59   ` [Intel-wired-lan] " Jeff Kirsher
2015-04-10 15:59     ` Jeff Kirsher
2015-04-10 13:52 ` [Intel-wired-lan] [PATCH 2/2 net-next] net_device: Reorder members to fill holes Thomas Graf
2015-04-10 13:52   ` Thomas Graf
2015-04-10 19:39   ` [Intel-wired-lan] " Eric Dumazet
2015-04-10 19:39     ` Eric Dumazet
2015-04-13 17:15 ` [Intel-wired-lan] [PATCH 0/2 net-next v2] Bring sizeof(net_device) down to < 2K bytes David Miller
2015-04-13 17:15   ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1428672434.git.tgraf@suug.ch \
    --to=tgraf@suug.ch \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.