]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: cq->irq_desc wasn't set in legacy EQ's
authorAmir Vadai <amirv@mellanox.com>
Wed, 16 Jul 2014 10:33:50 +0000 (13:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:28:32 +0000 (23:28 -0700)
commit62103cc4dde3d5eb0f63693da0022d4956e2a2fd
tree85f404788bb54c1503bb03705b9f16147a48acc4
parent5f98d825d988d442eb17132c023c88b6fb7ad269
net/mlx4_en: cq->irq_desc wasn't set in legacy EQ's

Fix a regression introduced by commit b5a2aa3 ("net/mlx4_en: Don't use
irq_affinity_notifier to track changes in IRQ affinity map").
When core is started in legacy EQ's (number of IRQ's < rx rings), cq->irq_desc
was NULL.  This caused a kernel crash under heavy traffic - when having more
than rx NAPI budget completions.
Fixed to have it set for both EQ modes.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_cq.c