函数逻辑报告 |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-27 14:39:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:bq_xmit_all
函数原型:static int bq_xmit_all(struct xdp_bulk_queue *bq, u32 flags, bool in_napi_ctx)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct xdp_bulk_queue * | bq | |
| u32 | flags | |
| bool | in_napi_ctx |
| 357 | 如果此条件成立可能性小(为编译器优化)(!count)则返回:0 |
| 367 | 如果sent小于0则 |
| 373 | out : |
| 374 | count等于0 |
| 376 | trace_xdp_devmap_xmit( & map, keep track of map index for tracepoint , sent, drops, dev_rx, dev, err) |
| 378 | dev_rx = NULL |
| 380 | 返回:0 |
| 381 | error : |
| 391 | 否则xdp_return_frame(xdpf) |
| 393 | drops自加 |
| 395 | 转到:out |
| 名称 | 描述 |
|---|---|
| __dev_map_flush | __dev_map_flush is called from xdp_do_flush_map() which _must_ be signaled* from the driver before returning from its napi->poll() routine. The poll()* routine is called either from busy_poll context or net_rx_action signaled* from NET_RX_SOFTIRQ |
| bq_enqueue | Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access. |
| dev_map_flush_old |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |