lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180131135356.19134-19-bjorn.topel@gmail.com>
Date:   Wed, 31 Jan 2018 14:53:50 +0100
From:   Björn Töpel <bjorn.topel@...il.com>
To:     bjorn.topel@...il.com, magnus.karlsson@...el.com,
        alexander.h.duyck@...el.com, alexander.duyck@...il.com,
        john.fastabend@...il.com, ast@...com, brouer@...hat.com,
        willemdebruijn.kernel@...il.com, daniel@...earbox.net,
        netdev@...r.kernel.org
Cc:     Björn Töpel <bjorn.topel@...el.com>,
        michael.lundkvist@...csson.com, jesse.brandeburg@...el.com,
        anjali.singhai@...el.com, jeffrey.b.shaw@...el.com,
        ferruh.yigit@...el.com, qi.z.zhang@...el.com
Subject: [RFC PATCH 18/24] xdp: added buff_pool support to struct xdp_buff

From: Björn Töpel <bjorn.topel@...el.com>

Extend xdp_buff to with a buff_pool and handle.

Signed-off-by: Björn Töpel <bjorn.topel@...el.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ