From: Yishai Hadas Date: Sun, 25 Jan 2015 14:59:40 +0000 (+0200) Subject: net/mlx4_core: Manage interface state for Reset flow cases X-Git-Tag: fixes-v4.0-rc1~150^2~151^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c69453e294c9f16da977b68e658a8028b854c209;p=pandora-kernel.git net/mlx4_core: Manage interface state for Reset flow cases We need to manage interface state to sync between reset flow and some other relative cases such as remove_one. This has to be done to prevent certain races. For example in case software stack is down as a result of unload call, the remove_one should skip the unload phase. Implement the remove_one case, handling AER and other cases comes next. The interface can be up/down, upon remove_one, the state will include an extra bit indicating that the device is cleaned-up, forcing other tasks to finish before the final cleanup. Signed-off-by: Yishai Hadas Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed