Function report |
Source Code:kernel\bpf\cpumap.c |
Create Date:2022-07-28 13:23:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpu_map_build_skb
Proto:static struct sk_buff *cpu_map_build_skb(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf, struct sk_buff *skb)
Type:struct sk_buff
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_cpu_map_entry * | rcpu | |
| struct xdp_frame * | xdpf | |
| struct sk_buff * | skb |
| 172 | hard_start_headroom = sizeof(structxdp_frame) + headroom |
| 191 | frame_size = SKB_DATA_ALIGN(len + hard_start_headroom) + SKB_DATA_ALIGN(sizeof(structskb_shared_info)) |
| 194 | pkt_data_start = data - hard_start_headroom |
| 195 | skb = build_skb_around(skb, pkt_data_start, frame_size) |
| 196 | If Value for the false possibility is greater at compile time(!skb) Then Return NULL |
| 201 | If metasize Then skb_metadata_set(skb, metasize) |
| 205 | protocol = eth_type_trans(skb, used by cpumap ) |
| 214 | xdp_release_frame(xdpf) |
| 219 | Return skb |
| Name | Describe |
|---|---|
| cpu_map_kthread_run |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |