Message ID | 20221123144641.339138-1-toke@redhat.com (mailing list archive) |
---|---|
State | Deferred |
Delegated to: | BPF |
Headers | show |
Series | [bpf-next,1/2] xdp: Add drv_priv pointer to struct xdp_buff | expand |
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)
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@gmail.com> Cc: David Ahern <dsahern@gmail.com> Cc: Martin KaFai Lau <martin.lau@linux.dev> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Willem de Bruijn <willemb@google.com> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Cc: Anatoly Burakov <anatoly.burakov@intel.com> Cc: Alexander Lobakin <alexandr.lobakin@intel.com> Cc: Magnus Karlsson <magnus.karlsson@gmail.com> Cc: Maryam Tahhan <mtahhan@redhat.com> Cc: Stanislav Fomichev <sdf@google.com> Cc: xdp-hints@xdp-project.net Cc: netdev@vger.kernel.org Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> --- include/net/xdp.h | 1 + 1 file changed, 1 insertion(+)