Defined in 2 files as a function:
- arch/powerpc/include/asm/checksum.h, line 130 (as a function)
- include/net/checksum.h, line 86 (as a function)
Referenced in 2 files:
Smatch caller information:
net/ipv6/esp6.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
drivers/net/ethernet/freescale/enetc/enetc.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ndev->tx_global_lock | ||
| HALF_LOCKED2 | bh |
net/kcm/kcmsock.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
| LOCK2 | &kcm->tx_mutex | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| TYPE_LOCK | (struct kcm_sock)->tx_mutex |
net/ipv4/ping.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
net/sched/act_ct.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/core/datagram.c csum_and_copy_to_iter() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/core/datagram.c csum_and_copy_to_iter() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/core/datagram.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | offset | 0-2147483646[c] |
| USER_DATA | 0 | sum | 0-69647[c] |
| USER_DATA | 1 | offset | (-4096)-4096[u] |
| UNITS | 1 | offset | unit_byte |
net/dsa/tag_lan9303.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh |
net/ipv6/rpl_iptunnel.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
net/ipv4/raw.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
| UNITS | 1 | offset | unit_byte |
drivers/net/vrf.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/core/skbuff.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| NOSPEC | 1 | offset | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | offset | s32min-s32max[c] |
| USER_DATA | 0 | sum | 0-264208[c] |
| USER_DATA | 1 | offset | s32min-s32max |
| UNITS | 1 | offset | unit_byte |
net/core/filter.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0-s32max |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
net/ipv4/tcp.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| UNITS | 1 | offset | unit_byte |
net/ipv6/xfrm6_input.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
net/ipv4/esp4.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
net/nsh/nsh.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
net/dsa/tag_8021q.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
net/sched/sch_frag.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &net->ipv4.mfc_mutex | ||
| HALF_LOCKED2 | &net->ipv6.mfc_mutex | ||
| HALF_LOCKED2 | &sk->sk_callback_lock | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | rcu_read | ||
| HALF_LOCKED2 | sk |
net/openvswitch/vport-netdev.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh |
net/sched/act_mpls.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/openvswitch/conntrack.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/mptcp/protocol.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 0 | sum | 1 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
| HALF_LOCKED2 | &msk->fallback_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | ssk |
net/ipv6/reassembly.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fq->q.lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct inet_frag_queue)->lock |
net/core/lwt_bpf.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
net/batman-adv/routing.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
| HALF_LOCKED2 | rcu_read |
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &rxq->lock | ||
| HALF_LOCKED2 | bh |
net/sched/act_vlan.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/ipv4/icmp.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
net/dsa/tag_ocelot.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
net/sunrpc/socklib.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| USER_DATA | 0 | sum | 0-264208[c] |
| UNITS | 1 | offset | unit_byte |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &transport->recv_mutex | ||
| HALF_LOCKED2 | bh |
net/ipv6/raw.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
| UNITS | 1 | offset | unit_byte |
net/ipv6/exthdrs.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/mptcp/subflow.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| UNITS | 1 | offset | unit_byte |
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | bh |
net/ipv6/seg6_local.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/sched/act_mirred.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/netfilter/nf_flow_table_ip.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-69647[c] |
net/ipv6/ioam6_iptunnel.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &net->ipv4.mfc_mutex | ||
| HALF_LOCKED2 | &net->ipv6.mfc_mutex | ||
| HALF_LOCKED2 | &sk->sk_callback_lock | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/openvswitch/actions.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/ipv6/seg6_iptunnel.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | offset | 0-131110 |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| CONSTRAINT | 1 | offset | <49 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sum | 0-264208[c] |
| USER_DATA | 1 | offset | 1-131110[c] |
| UNITS | 1 | offset | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh |
net/ipv6/icmp.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
net/ipv4/ip_output.c csum_block_add() -> csum_shift()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | sum | $1 |
| DATA_SOURCE | 1 | offset | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |