xdp_frags_tsize field will be used to store paged frame truesize for xdp_buff/xdp_frame. In order to not increase skb_shared_info size we will use a hole due to skb_shared_info alignment. gso_type filed will be used to store paged frame size. This is a preliminary patch to properly support xdp multi-buff Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> --- include/linux/skbuff.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index f19190820e63..0e345c5ccb4f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -522,6 +522,7 @@ struct skb_shared_info { unsigned short gso_segs; struct sk_buff *frag_list; struct skb_shared_hwtstamps hwtstamps; + /* used for xdp_{buff,frame} paged size */ unsigned int gso_type; u32 tskey; @@ -529,6 +530,7 @@ struct skb_shared_info { * Warning : all fields before dataref are cleared in __alloc_skb() */ atomic_t dataref; + unsigned int xdp_frags_tsize; /* Intermediate layers must ensure that destructor_arg * remains valid until skb destructor */ -- 2.31.1