Defined in 1 files as a prototype:
Defined in 2 files as a function:
- include/net/switchdev.h, line 378 (as a function)
- net/switchdev/switchdev.c, line 993 (as a function)
Referenced in 13 files:
- drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c, line 2236
- drivers/net/ethernet/marvell/prestera/prestera_switchdev.c, line 670
- drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
- drivers/net/ethernet/microchip/lan966x/lan966x_lag.c, line 142
- drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c, line 265
- drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c, line 196
- drivers/net/ethernet/mscc/ocelot_net.c, line 1398
- drivers/net/ethernet/rocker/rocker_ofdpa.c, line 2588
- drivers/net/ethernet/ti/am65-cpsw-nuss.c, line 2945
- drivers/net/ethernet/ti/cpsw_new.c, line 1554
- drivers/net/ethernet/ti/icssg/icssg_prueth.c, line 1908
- net/dsa/port.c, line 512
- net/switchdev/switchdev.c, line 1018
Smatch caller information:
drivers/net/ethernet/mscc/ocelot_net.c ocelot_netdevice_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 1-u64max |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | atomic_nb | 1893496320009912320 |
| PARAM_VALUE | 4 | blocking_nb | 381469064173043712 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| CAPPED_DATA | 0 | brport_dev | 1 |
| DATA_SOURCE | 0 | brport_dev | $1 |
| DATA_SOURCE | 1 | dev | $0 |
| DATA_SOURCE | 6 | extack | $3 |
| PARAM_COMPARE | 1 | dev->priv | == $2 |
| PARAM_COMPARE | 2 | ctx | == $1->priv |
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/microchip/lan966x/lan966x_lag.c lan966x_lag_port_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | brport_dev->flags | 1024-u32max |
| PARAM_VALUE | 0 | brport_dev->priv_flags | 4-u32max |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | atomic_nb | 8809305865727238144 |
| PARAM_VALUE | 4 | blocking_nb | 4930051289977102336 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| CAPPED_DATA | 0 | brport_dev | 1 |
| DATA_SOURCE | 0 | brport_dev | $1 |
| DATA_SOURCE | 2 | ctx | $0 |
| DATA_SOURCE | 6 | extack | $3 |
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c dpaa2_switch_port_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->ethsw_data | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io->mutex->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io->spinlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io->spinlock.owner | (-1) |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io->spinlock.owner_cpu | u32max |
| PARAM_VALUE | 1 | dev->priv->ethsw_data->mc_io->spinlock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | dev->priv->fdb | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->netdev->dev.parent->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->netdev->dev.parent->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->netdev->dev.parent->dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->priv->netdev->dev.parent->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 1 | dev->priv->pvid | 4095 |
| PARAM_VALUE | 1 | *dev->priv->netdev->name | 0-255 |
| PARAM_VALUE | 1 | *dev->priv->vlans | 4,253-254 |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | atomic_nb | 7590667090314301440 |
| PARAM_VALUE | 4 | blocking_nb | 4916402317480300544 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 1 | dev | $0 |
| DATA_SOURCE | 6 | extack | $2 |
| PARAM_COMPARE | 1 | dev->priv | == $2 |
| PARAM_COMPARE | 2 | ctx | == $1->priv |
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_port_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 6 | extack | $2 |
| UNITS | 0 | brport_dev | unit_byte |
| UNITS | 1 | dev | unit_byte |
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp_bridge_port_create() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| CAPPED_DATA | 0 | brport_dev | 1 |
| DATA_SOURCE | 0 | brport_dev | $1 |
| DATA_SOURCE | 6 | extack | $2 |
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp_bridge_vxlan_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | brport_dev->rtnl_link_ops | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 0 | brport_dev | $2 |
| DATA_SOURCE | 6 | extack | $4 |
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c sparx5_port_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 6 | extack | $2 |
drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c lan966x_port_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | atomic_nb | 8809305865727238144 |
| PARAM_VALUE | 4 | blocking_nb | 4930051289977102336 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| CAPPED_DATA | 0 | brport_dev | 1 |
| DATA_SOURCE | 0 | brport_dev | $1 |
| DATA_SOURCE | 2 | ctx | $0 |
| DATA_SOURCE | 6 | extack | $3 |
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/ti/cpsw_new.c cpsw_netdevice_port_link() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | brport_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | brport_dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 0 | brport_dev | $0 |
| DATA_SOURCE | 1 | dev | $0 |
| DATA_SOURCE | 6 | extack | $2 |
net/dsa/port.c dsa_port_bridge_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 4096-ptr_max |
| PARAM_VALUE | 3 | atomic_nb | 3885215109822955520 |
| PARAM_VALUE | 4 | blocking_nb | 7707469912871845888 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 2 | ctx | $0 |
| DATA_SOURCE | 6 | extack | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | brport_dev | unit_byte |
drivers/net/ethernet/marvell/prestera/prestera_switchdev.c prestera_bridge_port_join() -> switchdev_bridge_port_offload()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | ctx | 0 |
| PARAM_VALUE | 3 | atomic_nb | 0 |
| PARAM_VALUE | 4 | blocking_nb | 0 |
| PARAM_VALUE | 5 | tx_fwd_offload | 0 |
| DATA_SOURCE | 6 | extack | $2 |
| UNITS | 0 | brport_dev | unit_byte |