netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next-2.6 00/17] netdev: Fix queue count initialisation
@ 2010-09-27 18:23 Ben Hutchings
  2010-09-27 18:24 ` [PATCH net-next-2.6 01/17] net: Allow changing number of RX queues after device allocation Ben Hutchings
                   ` (17 more replies)
  0 siblings, 18 replies; 28+ messages in thread
From: Ben Hutchings @ 2010-09-27 18:23 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, linux-net-drivers

This adds the functions:
- netif_set_real_num_rx_queues() - set actual number of RX queues used
- netif_copy_real_num_queues() - copy queue counts from another device

and changes all drivers that currently set
net_device::real_num_tx_queues to use netif_set_real_num_tx_queues()
and/or these functions.

The changes are compile-tested only, except that:
- sfc and 8021q have been briefly tested
- gianfar and mv643xx_eth have not been compiled, since they are
  platform-specific

I noticed that the bonding driver sets its numbers of queues without
regard to its slave devices.  This makes some sense since a bond device
initially has no slave devices.  However, it seems to mean that a bond
device can pass up an skb with an out-of-range queue_index, triggering a
warning in get_rps_cpu().

Ben.

Ben Hutchings (17):
  net: Allow changing number of RX queues after device allocation
  net: Add netif_copy_real_num_queues() for use by virtual net drivers
  bnx2: Use netif_set_real_num_{rx,tx}_queues()
  bnx2x: Use netif_set_real_num_{rx,tx}_queues()
  cxgb3: Use netif_set_real_num_{rx,tx}_queues()
  cxgb4: Use netif_set_real_num_{rx,tx}_queues()
  cxgb4vf: Use netif_set_real_num_{rx,tx}_queues()
  gianfar: Use netif_set_real_num_rx_queues()
  igb: Use netif_set_real_num_{rx,tx}_queues()
  ixgbe: Use netif_set_real_num_{rx,tx}_queues()
  mlx4_en: Use netif_set_real_num_{rx,tx}_queues()
  mv643xx_eth: Use netif_set_real_num_{rx,tx}_queues()
  myri10ge: Use netif_set_real_num_{rx,tx}_queues()
  niu: Use netif_set_real_num_{rx,tx}_queues()
  sfc: Use netif_set_real_num_{rx,tx}_queues()
  tg3: Use netif_set_real_num_{rx,tx}_queues()
  8021q: Use netif_copy_real_num_queues() to set queue counts

 drivers/net/bnx2.c                 |    9 ++++--
 drivers/net/bnx2x/bnx2x_cmn.c      |    6 +++-
 drivers/net/cxgb3/cxgb3_main.c     |    5 +++-
 drivers/net/cxgb4/cxgb4_main.c     |    5 +++-
 drivers/net/cxgb4vf/cxgb4vf_main.c |    5 +++-
 drivers/net/gianfar.c              |    3 +-
 drivers/net/igb/igb_main.c         |   12 ++++++---
 drivers/net/ixgbe/ixgbe_main.c     |   16 ++++++++----
 drivers/net/mlx4/en_netdev.c       |    3 +-
 drivers/net/mv643xx_eth.c          |    3 +-
 drivers/net/myri10ge/myri10ge.c    |    5 ++-
 drivers/net/niu.c                  |    3 +-
 drivers/net/sfc/efx.c              |    3 +-
 drivers/net/tg3.c                  |    8 ++++-
 include/linux/netdevice.h          |   28 +++++++++++++++++++++-
 net/8021q/vlan.c                   |    2 +-
 net/core/dev.c                     |   45 ++++++++++++++++++++++++++++++++---
 net/core/net-sysfs.c               |   34 +++++++++++++++------------
 net/core/net-sysfs.h               |    4 +++
 19 files changed, 151 insertions(+), 48 deletions(-)

-- 
1.7.2.1

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2010-09-28 17:38 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 18:23 [PATCH net-next-2.6 00/17] netdev: Fix queue count initialisation Ben Hutchings
2010-09-27 18:24 ` [PATCH net-next-2.6 01/17] net: Allow changing number of RX queues after device allocation Ben Hutchings
2010-09-27 18:24 ` [PATCH net-next-2.6 02/17] net: Add netif_copy_real_num_queues() for use by virtual net drivers Ben Hutchings
2010-09-27 18:25 ` [PATCH net-next-2.6 03/17] bnx2: Use netif_set_real_num_{rx,tx}_queues() Ben Hutchings
2010-09-27 18:25 ` [PATCH net-next-2.6 04/17] bnx2x: " Ben Hutchings
2010-09-28  9:26   ` Vladislav Zolotarov
2010-09-28 12:59     ` Vladislav Zolotarov
2010-09-28 17:39       ` David Miller
2010-09-27 18:25 ` [PATCH net-next-2.6 05/17] cxgb3: " Ben Hutchings
2010-09-27 18:25 ` [PATCH net-next-2.6 06/17] cxgb4: " Ben Hutchings
2010-09-27 18:26 ` [PATCH net-next-2.6 07/17] cxgb4vf: " Ben Hutchings
2010-09-27 18:27 ` [PATCH net-next-2.6 08/17] gianfar: Use netif_set_real_num_rx_queues() Ben Hutchings
2010-09-27 18:28 ` [PATCH net-next-2.6 09/17] igb: Use netif_set_real_num_{rx,tx}_queues() Ben Hutchings
2010-09-27 18:28 ` [PATCH net-next-2.6 10/17] ixgbe: " Ben Hutchings
2010-09-27 18:29 ` [PATCH net-next-2.6 11/17] mlx4_en: " Ben Hutchings
2010-09-27 18:30 ` [PATCH net-next-2.6 12/17] mv643xx_eth: " Ben Hutchings
2010-09-28  4:18   ` Lennert Buytenhek
2010-09-27 18:30 ` [PATCH net-next-2.6 13/17] myri10ge: " Ben Hutchings
2010-09-27 18:30 ` [PATCH net-next-2.6 14/17] niu: " Ben Hutchings
2010-09-27 18:31 ` [PATCH net-next-2.6 15/17] sfc: " Ben Hutchings
2010-09-27 18:32 ` [PATCH net-next-2.6 16/17] tg3: " Ben Hutchings
2010-09-27 21:41   ` Matt Carlson
2010-09-27 21:44     ` Matt Carlson
2010-09-28  5:13       ` David Miller
2010-09-27 18:32 ` [PATCH net-next-2.6 17/17] 8021q: Use netif_copy_real_num_queues() to set queue counts Ben Hutchings
2010-09-28  5:12 ` [PATCH net-next-2.6 00/17] netdev: Fix queue count initialisation David Miller
2010-09-28 12:02   ` Ben Hutchings
2010-09-28 12:07     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).