From: Hadar Hen Zion Date: Thu, 21 Mar 2013 05:55:55 +0000 (+0000) Subject: net/mlx4_core: Disallow releasing VF QPs which have steering rules X-Git-Tag: v3.9-rc5~28^2~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c473ae7e5826c108e52f4a9d75425fd4c6f9ed1;p=pandora-kernel.git net/mlx4_core: Disallow releasing VF QPs which have steering rules VF QPs must not be released when they have steering rules attached to them. For that end, introduce a reference count field to the QP object in the SRIOV resource tracker which is incremented/decremented when steering rules are attached/detached to it. QPs can be released by VF only when their ref count is zero. Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed