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)
commit38463e2c290426262cd9a75fe66cbbe2925a68c2
treea229a81f1e3eed88dc788bad9c8317200e16a426
parentbe4f154d5ef0ca147ab6bcd38857a774133f5450
net/mlx4_en: Check device state when setting coalescing

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>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c