Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1232920

[PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make rxq_def useful

From Gregory CLEMENT <gregory.clement@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make rxq_def useful
Date 2015-09-25 18:20 +0200
Message-ID <qcDT3-6vz-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

As stated in the first version: "this patchset reworks the Marvell
neta driver in order to really support its per-CPU interrupts, instead
of faking them as SPI, and allow the use of any RX queue instead of
the hardcoded RX queue 0 that we have currently."

Following the review which has been done, Maxime started adding the
CPU hotplug support. I continued his work a few weeks ago and here is
the result.

Since the 1st version the main change is this CPU hotplug support, in
order to validate it I powered up and down the CPUs while performing
iperf. I ran the tests during hours: the kernel didn't crash and the
network interfaces were still usable. Of course it impacted the
performance, but continuously power down and up the CPUs is not
something we usually do.

I also reorganized the series, the 3 first patches should go through
the irq subsystem, whereas the 4 others should go to the network
subsystem.

However, there is a runtime dependency between the two parts. Patch 5
depend on the patch 3 to be able to use the percpu irq.

Thanks,

Gregory

PS: Thanks to Willy who gave me some pointers on how to deal with the
NAPI.

Maxime Ripard (7):
  genirq: Fix the documentation of request_percpu_irq
  irq: Export per-cpu irq allocation and de-allocation functions
  irqchip: armada-370-xp: Rework per-cpu interrupts handling
  net: mvneta: Fix CPU_MAP registers initialisation
  net: mvneta: Handle per-cpu interrupts
  net: mvneta: Allow different queues
  net: mvneta: Statically assign queues to CPUs

 drivers/irqchip/irq-armada-370-xp.c   |  14 +-
 drivers/net/ethernet/marvell/mvneta.c | 316 +++++++++++++++++++++++-----------
 kernel/irq/manage.c                   |   9 +-
 3 files changed, 226 insertions(+), 113 deletions(-)

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make rxq_def useful Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-09-25 18:20 +0200
  [PATCH v2 7/7] net: mvneta: Statically assign queues to CPUs Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-09-25 18:20 +0200
  [PATCH v2 5/7] net: mvneta: Handle per-cpu interrupts Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-09-25 18:20 +0200
  [PATCH v2 4/7] net: mvneta: Fix CPU_MAP registers initialisation Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-09-25 18:20 +0200
  [PATCH v2 1/7] genirq: Fix the documentation of request_percpu_irq Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-09-25 18:20 +0200
  Re: [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make  rxq_def useful David Miller <davem@davemloft.net> - 2015-09-29 21:00 +0200
    Re: [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make  rxq_def useful Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 17:00 +0200
      Re: [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make  rxq_def useful David Miller <davem@davemloft.net> - 2015-09-30 17:50 +0200
        Re: [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make  rxq_def useful Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 19:50 +0200
  Re: [PATCH v2 0/7] net: mvneta: Switch to per-CPU irq and make  rxq_def useful Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 17:00 +0200

csiph-web