Thread (50 messages) 50 messages, 7 authors, 2018-03-28
STALE2996d

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

From: Björn Töpel <hidden>
Date: 2018-01-31 13:55:31
Subsystem: bpf [core], bpf [general] (safe dynamic programs and tools), networking [general], the rest, xdp (express data path) · Maintainers: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds, David S. Miller, Jesper Dangaard Brouer, John Fastabend

From: Björn Töpel <redacted>

Extend xdp_buff to with a buff_pool and handle.

Signed-off-by: Björn Töpel <redacted>
---
 include/linux/filter.h | 1 +
 include/net/xdp.h      | 1 +
 2 files changed, 2 insertions(+)
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,
-- 
2.14.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help