diff mbox series

[RFC,18/24] xdp: added buff_pool support to struct xdp_buff

Message ID 20180131135356.19134-19-bjorn.topel@gmail.com
State RFC, archived
Delegated to: David Miller
Headers show
Series Introducing AF_XDP support | expand

Commit Message

Björn Töpel Jan. 31, 2018, 1:53 p.m. UTC
From: Björn Töpel <bjorn.topel@intel.com>

Extend xdp_buff to with a buff_pool and handle.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
---
 include/linux/filter.h | 1 +
 include/net/xdp.h      | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/filter.h b/include/linux/filter.h
index 43cacfe2cc2a..fbf6adb0fabd 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -504,6 +504,7 @@  struct xdp_buff {
 	void *data_end;
 	void *data_meta;
 	void *data_hard_start;
+	unsigned long bp_handle;
 	struct xdp_rxq_info *rxq;
 };
 
diff --git a/include/net/xdp.h b/include/net/xdp.h
index b2362ddfa694..fee3278e3d52 100644
--- a/include/net/xdp.h
+++ b/include/net/xdp.h
@@ -37,6 +37,7 @@  struct xdp_rxq_info {
 	struct net_device *dev;
 	u32 queue_index;
 	u32 reg_state;
+	struct buff_pool *bpool;
 } ____cacheline_aligned; /* perf critical, avoid false-sharing */
 
 int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,