Function report |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-28 13:22:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.
Proto:static int bq_enqueue(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf, struct net_device *dev_rx)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_dtab_netdev * | obj | |
| struct xdp_frame * | xdpf | |
| struct net_device * | dev_rx |
| 440 | flush_list = this_cpu_ptr(flush_list) |
| 441 | bq = this_cpu_ptr(bulkq) |
| 443 | If Value for the false possibility is greater at compile time(count == DEV_MAP_BULK_SIZE) Then bq_xmit_all(bq, 0, true) |
| 455 | If Not prev Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks. |
| 458 | Return 0 |
| Name | Describe |
|---|---|
| dev_map_enqueue |
| 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 |