Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Sunil Kovvuri
On Sun, Aug 30, 2015 at 2:50 PM, Aleksey Makarov wrote: > On 29.08.2015 04:44, Alexey Klimov wrote: > >>> -static irqreturn_t nicvf_intr_handler(int irq, void *nicvf_irq) >>> +static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq) >>> +{ >>> + struct nicvf_cq_poll *cq_poll = (struct

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Aleksey Makarov
On 29.08.2015 04:44, Alexey Klimov wrote: -static irqreturn_t nicvf_intr_handler(int irq, void *nicvf_irq) +static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq) +{ + struct nicvf_cq_poll *cq_poll = (struct nicvf_cq_poll *)cq_irq; + struct nicvf *nic = cq_poll->nicvf; +

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Aleksey Makarov
On 29.08.2015 04:44, Alexey Klimov wrote: -static irqreturn_t nicvf_intr_handler(int irq, void *nicvf_irq) +static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq) +{ + struct nicvf_cq_poll *cq_poll = (struct nicvf_cq_poll *)cq_irq; + struct nicvf *nic = cq_poll-nicvf; +

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-30 Thread Sunil Kovvuri
On Sun, Aug 30, 2015 at 2:50 PM, Aleksey Makarov feumil...@gmail.com wrote: On 29.08.2015 04:44, Alexey Klimov wrote: -static irqreturn_t nicvf_intr_handler(int irq, void *nicvf_irq) +static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq) +{ + struct nicvf_cq_poll *cq_poll =

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Alexey Klimov
Hi Aleksey, let me add few minor points below. On Fri, Aug 28, 2015 at 5:59 PM, Aleksey Makarov wrote: > From: Sunil Goutham > > Rework interrupt handler to avoid checking IRQ affinity of > CQ interrupts. Now separate handlers are registered for each IRQ > including RBDR. Also register

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread David Miller
From: Aleksey Makarov Date: Fri, 28 Aug 2015 17:59:58 +0300 > @@ -251,6 +251,8 @@ struct cmp_queue { > void*desc; > struct q_desc_mem dmem; > struct cmp_queue_stats stats; > + int irq; > + cpumask_t affinity_mask; > }

[PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham Rework interrupt handler to avoid checking IRQ affinity of CQ interrupts. Now separate handlers are registered for each IRQ including RBDR. Also register interrupt handlers for only those which are being used. Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov ---

[PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Aleksey Makarov
From: Sunil Goutham sgout...@cavium.com Rework interrupt handler to avoid checking IRQ affinity of CQ interrupts. Now separate handlers are registered for each IRQ including RBDR. Also register interrupt handlers for only those which are being used. Signed-off-by: Sunil Goutham

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Alexey Klimov
Hi Aleksey, let me add few minor points below. On Fri, Aug 28, 2015 at 5:59 PM, Aleksey Makarov aleksey.maka...@auriga.com wrote: From: Sunil Goutham sgout...@cavium.com Rework interrupt handler to avoid checking IRQ affinity of CQ interrupts. Now separate handlers are registered for each

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread David Miller
From: Aleksey Makarov aleksey.maka...@auriga.com Date: Fri, 28 Aug 2015 17:59:58 +0300 @@ -251,6 +251,8 @@ struct cmp_queue { void*desc; struct q_desc_mem dmem; struct cmp_queue_stats stats; + int irq; + cpumask_t affinity_mask; }