函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\xdp.h Create Date:2022-07-27 07:00:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Convert xdp_buff to xdp_frame

函数原型:static inline struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp)

返回类型:struct xdp_frame

参数:

类型参数名称
struct xdp_buff *xdp
104  如果 enum xdp_mem_type, but known size type 恒等于MEM_TYPE_ZERO_COPY则返回:xdp_convert_zc_to_xdp_frame(xdp)
108  headroom等于datadata_hard_start
109  metasize等于datadata_meta
110  metasize等于如果metasize大于0则metasize否则0
111  如果此条件成立可能性小(为编译器优化)((headroom - metasize) < xdp_frame的长度)则返回:NULL
115  xdp_frame等于data_hard_start
117  data等于data
118  len等于data_enddata
119  headroom等于headroomxdp_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  返回:xdp_frame
调用者
名称描述
dev_map_enqueue
cpu_map_enqueue