]> git.baikalelectronics.ru Git - kernel.git/commit
qlge: Fix qlge_update_hw_vlan_features to handle if interface is down
authorMarcelo Leitner <mleitner@redhat.com>
Fri, 30 Jan 2015 11:56:01 +0000 (09:56 -0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2015 01:51:14 +0000 (17:51 -0800)
commit36ecdaac5bb57cf65a7022d21e4e7cc747e9b769
treefba3cc66ad8d8a2c4b6b402f844b1f87bc61068a
parent8bcad8c7e6ec372295c207bc260ba41e419c2b17
qlge: Fix qlge_update_hw_vlan_features to handle if interface is down

Currently qlge_update_hw_vlan_features() will always first put the
interface down, then update features and then bring it up again. But it
is possible to hit this code while the adapter is down and this causes a
non-paired call to napi_disable(), which will get stuck.

This patch fixes it by skipping these down/up actions if the interface
is already down.

Fixes: 86be285a94b3 ("qlge: Enhance nested VLAN (Q-in-Q) handling.")
Cc: Harish Patil <harish.patil@qlogic.com>
Signed-off-by: Marcelo Ricardo Leitner <mleitner@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_main.c