sky2: fix hang in napi_disable
If IRQ was never initialized, then calling napi_disable() would hang. Add more bookkeeping to track whether IRQ was ever initialized. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
738a849c8e
commit
282edcece3
@@ -2287,6 +2287,7 @@ struct sky2_hw {
|
||||
#define SKY2_HW_RSS_BROKEN 0x00000100
|
||||
#define SKY2_HW_VLAN_BROKEN 0x00000200
|
||||
#define SKY2_HW_RSS_CHKSUM 0x00000400 /* RSS requires chksum */
|
||||
#define SKY2_HW_IRQ_SETUP 0x00000800
|
||||
|
||||
u8 chip_id;
|
||||
u8 chip_rev;
|
||||
|
Reference in New Issue
Block a user