Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\xdp.h Create Date:2022-07-28 06:01:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Convert xdp_buff to xdp_frame

Proto:static inline struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp)

Type:struct xdp_frame

Parameter:

TypeParameterName
struct xdp_buff *xdp
104  If enum xdp_mem_type, but known size type == MEM_TYPE_ZERO_COPY Then Return xdp_convert_zc_to_xdp_frame(xdp)
108  headroom = data - data_hard_start
109  metasize = data - data_meta
110  metasize = If metasize > 0 Then metasize Else 0
111  If Value for the false possibility is greater at compile time((headroom - metasize) < size of xdp_frame ) Then Return NULL
115  xdp_frame = data_hard_start
117  data = data
118  len = data_end - data
119  headroom = headroom - size of xdp_frame
120  metasize = metasize
123  Lifetime of xdp_rxq_info is limited to NAPI/enqueue time, * while mem info is valid on remote CPU. = mem
125  Return xdp_frame
Caller
NameDescribe
dev_map_enqueue
cpu_map_enqueue