Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 12 files:
- drivers/net/ethernet/broadcom/bnxt/bnxt.c, line 4639
- drivers/net/ethernet/cavium/thunder/nicvf_main.c, line 1867
- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c, line 2751
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c, line 2863
- drivers/net/ethernet/mellanox/mlx4/en_netdev.c
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c, line 5243
- drivers/net/ethernet/microsoft/mana/mana_bpf.c, line 161
- drivers/net/ethernet/qlogic/qede/qede_main.c, line 2300
- drivers/net/hyperv/netvsc_bpf.c, line 153
- drivers/net/virtio_net.c, line 6056
- drivers/net/xen-netfront.c, line 1656
- kernel/bpf/syscall.c, line 2606
Smatch caller information:
drivers/net/xen-netfront.c xennet_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | i | |
| HALF_LOCKED2 | &dev->lock |
drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_init_one_rx_ring() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| PARAM_VALUE | 1 | i | 1 |
| RX_PATH | |||
| NOCHECK_CALL |
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dpaa2_eth_setup_xdp() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |
drivers/net/ethernet/cavium/thunder/nicvf_main.c nicvf_xdp_setup() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c otx2_xdp_setup() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/qlogic/qede/qede_main.c qede_start_queues() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | i | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &edev->qede_lock |
drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | i | unit_array_size |
| LOCK2 | &priv->state_lock | ||
| HALF_LOCKED2 | &netdev->lock | ||
| TYPE_LOCK | (struct mlx5e_priv)->state_lock |
drivers/net/hyperv/netvsc_bpf.c netvsc_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/microsoft/mana/mana_bpf.c mana_chn_setxdp() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | i | |
| UNITS | 1 | i | unit_array_size |
| HALF_LOCKED2 | &ndev->lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_en_try_alloc_resources() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| PARAM_VALUE | 1 | i | 0-s32max |
| CAPPED_DATA | 1 | i | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | i | unit_array_size |
| LOCK2 | &mdev->state_lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |
drivers/net/virtio_net.c virtnet_xdp_set() -> bpf_prog_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| PARAM_VALUE | 0 | prog->aux | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |