From: Jack Morgenstein Date: Tue, 13 Dec 2011 04:13:48 +0000 (+0000) Subject: mlx4_core: mtt modifications for SRIOV X-Git-Tag: v3.3-rc1~182^2~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea51b377abcdf0f3fab0119879be373bda69afb1;p=pandora-kernel.git mlx4_core: mtt modifications for SRIOV MTTs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have "work" functions whose names start with "__", and "request" functions (same name, no __). If we are operating in multifunction mode, the request function actually results in comm-channel commands being sent (ALLOC_RES or FREE_RES). The PF-driver comm-channel handler will ultimately invoke the "work" (__) function and return the result. If we are not in multifunction mode, the "work" handler is invoked immediately. Signed-off-by: Jack Morgenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed