Skip to content

Commit c546b2a

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

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8086,6 +8086,7 @@ L: [email protected]
80868086
W: http://www.intel.com/Products/Server/Adapters/Server-Cluster/Server-Cluster-overview.htm
80878087
S: Supported
80888088
F: drivers/infiniband/hw/nes/
8089+
F: include/uapi/rdma/nes-abi.h
80898090

80908091
NETEM NETWORK EMULATOR
80918092
M: Stephen Hemminger <[email protected]>

drivers/infiniband/hw/nes/nes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ do { \
165165
#include "nes_hw.h"
166166
#include "nes_verbs.h"
167167
#include "nes_context.h"
168-
#include "nes_user.h"
168+
#include <rdma/nes-abi.h>
169169
#include "nes_cm.h"
170170
#include "nes_mgt.h"
171171

include/uapi/rdma/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ header-y += cxgb3-abi.h
1111
header-y += cxgb4-abi.h
1212
header-y += mlx4-abi.h
1313
header-y += mlx5-abi.h
14+
header-y += nes-abi.h
1415
header-y += ocrdma-abi.h

drivers/infiniband/hw/nes/nes_user.h renamed to include/uapi/rdma/nes-abi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*
3535
*/
3636

37-
#ifndef NES_USER_H
38-
#define NES_USER_H
37+
#ifndef NES_ABI_USER_H
38+
#define NES_ABI_USER_H
3939

4040
#include <linux/types.h>
4141

@@ -111,4 +111,4 @@ struct nes_create_qp_resp {
111111
__u32 nes_drv_opt;
112112
};
113113

114-
#endif /* NES_USER_H */
114+
#endif /* NES_ABI_USER_H */

0 commit comments

Comments
 (0)