Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/cxgb4: Move user vendor structures

This patch moves cxgb4 vendor's specific structures to
common UAPI folder which will be visible to all consumers.

These structures are used by user-space library driver
(libcxgb4) and currently manually copied to that library.

This move will allow cross-compile against these files and
simplify introduction of vendor specific data.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Leon Romanovsky and committed by
Doug Ledford
e44ee2fd a85fb338

+9 -6
+1
MAINTAINERS
··· 3482 3482 W: http://www.openfabrics.org 3483 3483 S: Supported 3484 3484 F: drivers/infiniband/hw/cxgb4/ 3485 + F: include/uapi/rdma/cxgb4-abi.h 3485 3486 3486 3487 CXGB4VF ETHERNET DRIVER (CXGB4VF) 3487 3488 M: Casey Leedom <leedom@chelsio.com>
+1 -1
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
··· 58 58 #include "cxgb4.h" 59 59 #include "cxgb4_uld.h" 60 60 #include "l2t.h" 61 - #include "user.h" 61 + #include <rdma/cxgb4-abi.h> 62 62 63 63 #define DRV_NAME "iw_cxgb4" 64 64 #define MOD DRV_NAME ":"
+6 -5
drivers/infiniband/hw/cxgb4/user.h include/uapi/rdma/cxgb4-abi.h
··· 29 29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30 30 * SOFTWARE. 31 31 */ 32 - #ifndef __C4IW_USER_H__ 33 - #define __C4IW_USER_H__ 32 + #ifndef CXGB4_ABI_USER_H 33 + #define CXGB4_ABI_USER_H 34 + 35 + #include <linux/types.h> 34 36 35 37 #define C4IW_UVERBS_ABI_VERSION 3 36 38 ··· 53 51 __u32 reserved; /* explicit padding (optional for i386) */ 54 52 }; 55 53 56 - 57 54 enum { 58 - C4IW_QPF_ONCHIP = (1<<0) 55 + C4IW_QPF_ONCHIP = (1 << 0) 59 56 }; 60 57 61 58 struct c4iw_create_qp_resp { ··· 78 77 __u32 status_page_size; 79 78 __u32 reserved; /* explicit padding (optional for i386) */ 80 79 }; 81 - #endif 80 + #endif /* CXGB4_ABI_USER_H */
+1
include/uapi/rdma/Kbuild
··· 8 8 header-y += hfi/ 9 9 header-y += rdma_user_rxe.h 10 10 header-y += cxgb3-abi.h 11 + header-y += cxgb4-abi.h 11 12 header-y += mlx5-abi.h