Re: [PATCH 6/6] net: mvneta: Statically assign queues to CPUs

2015-07-06 Thread Maxime Ripard
On Sun, Jul 05, 2015 at 03:00:11PM +0200, Willy Tarreau wrote: > Hi Thomas, > > On Fri, Jul 03, 2015 at 04:46:24PM +0200, Thomas Petazzoni wrote: > > Maxime, > > > > On Fri, 3 Jul 2015 16:25:51 +0200, Maxime Ripard wrote: > > > > > +static void mvneta_percpu_enable(void *arg) > > > +{ > > > + s

Re: [PATCH 6/6] net: mvneta: Statically assign queues to CPUs

2015-07-05 Thread Willy Tarreau
Hi Thomas, On Fri, Jul 03, 2015 at 04:46:24PM +0200, Thomas Petazzoni wrote: > Maxime, > > On Fri, 3 Jul 2015 16:25:51 +0200, Maxime Ripard wrote: > > > +static void mvneta_percpu_enable(void *arg) > > +{ > > + struct mvneta_port *pp = arg; > > + > > + enable_percpu_irq(pp->dev->irq, IRQ_TY

Re: [PATCH 6/6] net: mvneta: Statically assign queues to CPUs

2015-07-03 Thread Thomas Petazzoni
Maxime, On Fri, 3 Jul 2015 16:25:51 +0200, Maxime Ripard wrote: > +static void mvneta_percpu_enable(void *arg) > +{ > + struct mvneta_port *pp = arg; > + > + enable_percpu_irq(pp->dev->irq, IRQ_TYPE_NONE); > +} > + > static int mvneta_open(struct net_device *dev) > { > struct mvn

[PATCH 6/6] net: mvneta: Statically assign queues to CPUs

2015-07-03 Thread Maxime Ripard
Since the switch to per-CPU interrupts, we lost the ability to set which CPU was going to receive our RX interrupt, which was now only the CPU on which the mvneta_open function was run. We can now assign our queues to their respective CPUs, and make sure only this CPU is going to handle our traffi