From: Matan Barak Date: Thu, 13 Nov 2014 12:45:29 +0000 (+0200) Subject: net/mlx4_core: Refactor mlx4_cmd_init and mlx4_cmd_cleanup X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~192^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc39f6d6fff2878c55ffa5ffb1828d7618c0a29;p=pandora-kernel.git net/mlx4_core: Refactor mlx4_cmd_init and mlx4_cmd_cleanup Refactoring mlx4_cmd_init and mlx4_cmd_cleanup such that partial init and cleanup are possible. After this refactoring, calling mlx4_cmd_init several times is safe. This is necessary in the VF init flow when mlx4_init_hca returns -EACCESS, we need to issue cleanup and re-attempt to call it with the slave flag. Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed