Unverified Commit 60d6f4d9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14223 v2 kabi: net: reserve space for xdp subsystem related structure

parents 52a7f2e9 f8cb6156
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -54,6 +54,9 @@ enum xdp_mem_type {
struct xdp_mem_info {
	u32 type; /* enum xdp_mem_type, but known size type */
	u32 id;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

struct page_pool;
@@ -74,6 +77,9 @@ struct xdp_rxq_info {

struct xdp_txq_info {
	struct net_device *dev;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

enum xdp_buff_flags {
@@ -92,6 +98,11 @@ struct xdp_buff {
	struct xdp_txq_info *txq;
	u32 frame_sz; /* frame size to deduce data_hard_end/reserved tailroom*/
	u32 flags; /* supported values defined in xdp_buff_flags */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static __always_inline bool xdp_buff_has_frags(struct xdp_buff *xdp)
@@ -181,6 +192,11 @@ struct xdp_frame {
	struct net_device *dev_rx; /* used by cpumap */
	u32 frame_sz;
	u32 flags; /* supported values defined in xdp_buff_flags */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static __always_inline bool xdp_frame_has_frags(struct xdp_frame *frame)
@@ -198,6 +214,9 @@ struct xdp_frame_bulk {
	int count;
	void *xa;
	void *q[XDP_BULK_QUEUE_SIZE];

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

static __always_inline void xdp_frame_bulk_init(struct xdp_frame_bulk *bq)