From: Ira Weiny Date: Thu, 14 May 2015 00:02:58 +0000 (-0400) Subject: IB/core: Add per port immutable struct to ib_device X-Git-Tag: omap-for-v4.2/fixes-rc1^2~152^2~31^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7738613e7cb419179545910744b1777d87edac5c;p=pandora-kernel.git IB/core: Add per port immutable struct to ib_device As of commit 5eb620c81ce3 "IB/core: Add helpers for uncached GID and P_Key searches"; pkey_tbl_len and gid_tbl_len are immutable data which are stored in the ib_device. The per port core capability flags to be added later are also immutable data to be stored in the ib_device object. In preparation for this create a structure for per port immutable data and place the pkey and gid table lengths within this structure. "get_port_immutable" is added as a mandatory device function to allow the drivers to fill in this data. Signed-off-by: Ira Weiny Signed-off-by: Doug Ledford --- Reading git-diff-tree failed