Skip to content

Commit a85fb33

Browse files
rleondledford
authored andcommitted
IB/cxgb3: Move user vendor structures
This patch moves cxgb3 vendor's specific structures to common UAPI folder which will be visible to all consumers. These structures are used by user-space library driver (libcxgb3) 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 <[email protected]> Reviewed-by: Steve Wise <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 3085e29 commit a85fb33

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,6 +3460,7 @@ L: [email protected]
34603460
W: http://www.openfabrics.org
34613461
S: Supported
34623462
F: drivers/infiniband/hw/cxgb3/
3463+
F: include/uapi/rdma/cxgb3-abi.h
34633464

34643465
CXGB4 ETHERNET DRIVER (CXGB4)
34653466
M: Hariprasad S <[email protected]>

drivers/infiniband/hw/cxgb3/iwch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
#include "cxgb3_offload.h"
3838
#include "iwch_provider.h"
39-
#include "iwch_user.h"
39+
#include <rdma/cxgb3-abi.h>
4040
#include "iwch.h"
4141
#include "iwch_cm.h"
4242

drivers/infiniband/hw/cxgb3/iwch_provider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include "iwch.h"
5959
#include "iwch_provider.h"
6060
#include "iwch_cm.h"
61-
#include "iwch_user.h"
61+
#include <rdma/cxgb3-abi.h>
6262
#include "common.h"
6363

6464
static struct ib_ah *iwch_ah_create(struct ib_pd *pd,

include/uapi/rdma/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ header-y += rdma_netlink.h
77
header-y += rdma_user_cm.h
88
header-y += hfi/
99
header-y += rdma_user_rxe.h
10+
header-y += cxgb3-abi.h
1011
header-y += mlx5-abi.h

drivers/infiniband/hw/cxgb3/iwch_user.h renamed to include/uapi/rdma/cxgb3-abi.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3030
* SOFTWARE.
3131
*/
32-
#ifndef __IWCH_USER_H__
33-
#define __IWCH_USER_H__
32+
#ifndef CXGB3_ABI_USER_H
33+
#define CXBG3_ABI_USER_H
34+
35+
#include <linux/types.h>
3436

3537
#define IWCH_UVERBS_ABI_VERSION 1
3638

@@ -71,4 +73,4 @@ struct iwch_create_qp_resp {
7173
struct iwch_reg_user_mr_resp {
7274
__u32 pbl_addr;
7375
};
74-
#endif
76+
#endif /* CXGB3_ABI_USER_H */

0 commit comments

Comments
 (0)