提交 7d9f92e3 编写于 作者: W Wang Hai 提交者: Zheng Zengkai

kabi: net: reserve space for net rdma subsystem related structure

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4HE7P?from=project-issue
CVE: NA

--------

Reserve some fields beforehand for net rdma framework related structures prone
to change.

---------
Signed-off-by: NWang Hai <wanghai38@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NYue Haibing <yuehaibing@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6ba70efc
......@@ -20,6 +20,7 @@
#include <rdma/ib_verbs.h>
#include <rdma/ib_pack.h>
#include <net/net_namespace.h>
#include <linux/kabi.h>
/**
* struct rdma_dev_addr - Contains resolved RDMA hardware addresses
......@@ -43,6 +44,8 @@ struct rdma_dev_addr {
const struct ib_gid_attr *sgid_attr;
enum rdma_network_type network;
int hoplimit;
KABI_RESERVE(1)
};
/**
......
......@@ -12,6 +12,7 @@
#include <rdma/ib_addr.h>
#include <rdma/ib_sa.h>
#include <uapi/rdma/rdma_user_cm.h>
#include <linux/kabi.h>
/*
* Upon receiving a device removal event, users must destroy the associated
......@@ -67,6 +68,9 @@ struct rdma_conn_param {
u8 srq;
u32 qp_num;
u32 qkey;
KABI_RESERVE(1)
KABI_RESERVE(2)
};
struct rdma_ud_param {
......@@ -85,6 +89,8 @@ struct rdma_cm_event {
struct rdma_ud_param ud;
} param;
struct rdma_ucm_ece ece;
KABI_RESERVE(1)
};
struct rdma_cm_id;
......@@ -108,6 +114,8 @@ struct rdma_cm_id {
enum rdma_ucm_port_space ps;
enum ib_qp_type qp_type;
u8 port_num;
KABI_RESERVE(1)
};
struct rdma_cm_id *
......
......@@ -11,6 +11,7 @@
#include <rdma/restrack.h>
#include <rdma/rdma_netlink.h>
#include <linux/kabi.h>
struct ib_device;
struct ib_qp;
......@@ -41,6 +42,8 @@ struct rdma_counter {
struct mutex lock;
struct rdma_hw_stats *stats;
u8 port;
KABI_RESERVE(1)
};
void rdma_counter_init(struct ib_device *dev);
......
......@@ -5,6 +5,7 @@
#include <linux/netlink.h>
#include <uapi/rdma/rdma_netlink.h>
#include <linux/kabi.h>
enum {
RDMA_NLDEV_ATTR_EMPTY_STRING = 1,
......@@ -114,6 +115,9 @@ struct rdma_link_ops {
struct list_head list;
const char *type;
int (*newlink)(const char *ibdev_name, struct net_device *ndev);
KABI_RESERVE(1)
KABI_RESERVE(2)
};
void rdma_link_register(struct rdma_link_ops *ops);
......
......@@ -17,6 +17,7 @@
#include <rdma/ib_verbs.h>
#include <rdma/ib_mad.h>
#include <rdma/rdmavt_mr.h>
#include <linux/kabi.h>
#define RVT_MAX_PKEY_VALUES 16
......@@ -105,6 +106,8 @@ struct rvt_ibport {
*/
struct trap_list trap_lists[RVT_MAX_TRAP_LISTS];
struct timer_list trap_timer;
KABI_RESERVE(1)
};
#define RVT_CQN_MAX 16 /* maximum length of cq name */
......@@ -426,6 +429,9 @@ struct rvt_dev_info {
/* Memory Working Set Size */
struct rvt_wss *wss;
KABI_RESERVE(1)
KABI_RESERVE(2)
};
/**
......
......@@ -11,6 +11,7 @@
#include <rdma/ib_verbs.h>
#include <rdma/rdmavt_cq.h>
#include <rdma/rvt-abi.h>
#include <linux/kabi.h>
/*
* Atomic bit definitions for r_aflags.
*/
......@@ -441,6 +442,10 @@ struct rvt_qp {
atomic_t local_ops_pending; /* number of fast_reg/local_inv reqs */
KABI_RESERVE(1)
KABI_RESERVE(2)
/*
* This sge list MUST be last. Do not add anything below here.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册