net/mlx4_en: Check device state when setting coalescing
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 12 Sep 2013 15:11:20 +0000 (18:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Sep 2013 03:42:15 +0000 (23:42 -0400)
When the device is down, CQs are freed. We must check the device state
to avoid issuing firmware commands on non existing CQs.

CC: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found