Commit 8281ed1d authored by Baisong Zhong's avatar Baisong Zhong Committed by Zheng Zengkai
Browse files

tcp: Add some stub info for KABI consistency

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4PY1Q


CVE: NA

--------------------------------

We add stub info in some structures to maintain the consistency of KABI

Signed-off-by: default avatarBaisong Zhong <zhongbaisong@huawei.com>
Reviewed-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f2e3e943
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include <linux/splice.h>
#include <linux/in6.h>
#include <linux/if_packet.h>
#include <linux/llist.h>
#include <net/flow.h>
#include <net/page_pool.h>
#include <linux/kabi.h>
@@ -732,6 +733,7 @@ struct sk_buff {
		};
		struct rb_node		rbnode; /* used in netem, ip4 defrag, and tcp stack */
		struct list_head	list;
		struct llist_node	ll_node;
	};

	union {
+1 −1
Original line number Diff line number Diff line
@@ -344,9 +344,9 @@ struct ipcm6_cookie {
	struct sockcm_cookie sockc;
	__s16 hlimit;
	__s16 tclass;
	__u16 gso_size;
	__s8  dontfrag;
	struct ipv6_txoptions *opt;
	__u16 gso_size;
};

static inline void ipcm6_init(struct ipcm6_cookie *ipc6)
+3 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@

#include <linux/atomic.h>
#include <linux/refcount.h>
#include <linux/llist.h>
#include <net/dst.h>
#include <net/checksum.h>
#include <net/tcp_states.h>
@@ -405,6 +406,8 @@ struct sock {
		struct sk_buff	*head;
		struct sk_buff	*tail;
	} sk_backlog;
	struct llist_head defer_list;

#define sk_rmem_alloc sk_backlog.rmem_alloc

	int			sk_forward_alloc;