[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221123144641.339138-1-toke@redhat.com>
Date: Wed, 23 Nov 2022 15:46:40 +0100
From: Toke Høiland-Jørgensen <toke@...hat.com>
To: bpf@...r.kernel.org
Cc: Toke Høiland-Jørgensen <toke@...hat.com>,
John Fastabend <john.fastabend@...il.com>,
David Ahern <dsahern@...il.com>,
Martin KaFai Lau <martin.lau@...ux.dev>,
Jakub Kicinski <kuba@...nel.org>,
Willem de Bruijn <willemb@...gle.com>,
Jesper Dangaard Brouer <brouer@...hat.com>,
Anatoly Burakov <anatoly.burakov@...el.com>,
Alexander Lobakin <alexandr.lobakin@...el.com>,
Magnus Karlsson <magnus.karlsson@...il.com>,
Maryam Tahhan <mtahhan@...hat.com>,
Stanislav Fomichev <sdf@...gle.com>, xdp-hints@...-project.net,
netdev@...r.kernel.org
Subject: [PATCH bpf-next 1/2] xdp: Add drv_priv pointer to struct xdp_buff
This allows drivers to add more context data to the xdp_buff object, which
they can use for metadata kfunc implementations.
Cc: John Fastabend <john.fastabend@...il.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Martin KaFai Lau <martin.lau@...ux.dev>
Cc: Jakub Kicinski <kuba@...nel.org>
Cc: Willem de Bruijn <willemb@...gle.com>
Cc: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: Anatoly Burakov <anatoly.burakov@...el.com>
Cc: Alexander Lobakin <alexandr.lobakin@...el.com>
Cc: Magnus Karlsson <magnus.karlsson@...il.com>
Cc: Maryam Tahhan <mtahhan@...hat.com>
Cc: Stanislav Fomichev <sdf@...gle.com>
Cc: xdp-hints@...-project.net
Cc: netdev@...r.kernel.org
Signed-off-by: Toke Høiland-Jørgensen <toke@...hat.com>
---
include/net/xdp.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/net/xdp.h b/include/net/xdp.h
index 348aefd467ed..27c54ad3c8e2 100644
--- a/include/net/xdp.h
+++ b/include/net/xdp.h
@@ -84,6 +84,7 @@ 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 */
+ void *drv_priv;
};
static __always_inline bool xdp_buff_has_frags(struct xdp_buff *xdp)
--
2.38.1
Powered by blists - more mailing lists