/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 29 struct devlink_port *dl_port; in mlx5_esw_dl_port_alloc() local 34 dl_port = kzalloc(sizeof(*dl_port), GFP_KERNEL); in mlx5_esw_dl_port_alloc() 35 if (!dl_port) in mlx5_esw_dl_port_alloc() 49 devlink_port_attrs_set(dl_port, &attrs); in mlx5_esw_dl_port_alloc() 51 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 52 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc() 53 devlink_port_attrs_pci_pf_set(dl_port, controller_num, pfnum, external); in mlx5_esw_dl_port_alloc() 55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 56 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc() 57 devlink_port_attrs_pci_vf_set(dl_port, controller_num, pfnum, in mlx5_esw_dl_port_alloc() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 22 struct devlink_port *dl_port; in mlx5e_devlink_port_register() local 40 dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_register() 41 memset(dl_port, 0, sizeof(*dl_port)); in mlx5e_devlink_port_register() 42 devlink_port_attrs_set(dl_port, &attrs); in mlx5e_devlink_port_register() 44 return devlink_port_register(devlink, dl_port, dl_port_index); in mlx5e_devlink_port_register() 49 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_type_eth_set() local 51 devlink_port_type_eth_set(dl_port, priv->netdev); in mlx5e_devlink_port_type_eth_set() 56 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_unregister() local 58 devlink_port_unregister(dl_port); in mlx5e_devlink_port_unregister()
|
D | devlink.h | 18 return &priv->mdev->mlx5e_res.dl_port; in mlx5e_devlink_get_dl_port()
|
D | reporter_tx.c | 582 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_reporter_tx_create() local 585 reporter = devlink_port_health_reporter_create(dl_port, &mlx5_tx_reporter_ops, in mlx5e_reporter_tx_create()
|
D | reporter_rx.c | 717 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_reporter_rx_create() local 720 reporter = devlink_port_health_reporter_create(dl_port, &mlx5_rx_reporter_ops, in mlx5e_reporter_rx_create()
|
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/ |
D | sharedbuffer.sh | 44 local dl_port=$1; shift 50 max_occ=$(devlink sb -j occupancy show $dl_port \ 63 local dl_port=$1; shift 69 max_occ=$(devlink sb -j occupancy show $dl_port \ 82 local dl_port=$1; shift 88 max_occ=$(devlink sb -j occupancy show $dl_port \
|
/Linux-v5.15/drivers/net/ethernet/pensando/ionic/ |
D | ionic_devlink.c | 92 devlink_port_attrs_set(&ionic->dl_port, &attrs); in ionic_devlink_register() 93 err = devlink_port_register(dl, &ionic->dl_port, 0); in ionic_devlink_register() 100 devlink_port_type_eth_set(&ionic->dl_port, ionic->lif->netdev); in ionic_devlink_register() 108 devlink_port_unregister(&ionic->dl_port); in ionic_devlink_unregister()
|
D | ionic.h | 42 struct devlink_port dl_port; member
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | devlink.c | 13 struct devlink_port dl_port; member 167 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_get() argument 172 struct mlx5_core_dev *dev = devlink_priv(dl_port->devlink); in mlx5_devlink_sf_port_fn_state_get() 181 sf = mlx5_sf_lookup_by_index(table, dl_port->index); in mlx5_devlink_sf_port_fn_state_get() 251 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_set() argument 255 struct mlx5_core_dev *dev = devlink_priv(dl_port->devlink); in mlx5_devlink_sf_port_fn_state_set() 266 sf = mlx5_sf_lookup_by_index(table, dl_port->index); in mlx5_devlink_sf_port_fn_state_set() 291 err = mlx5_esw_offloads_sf_vport_enable(esw, &sf->dl_port, sf->hw_fn_id, in mlx5_sf_add()
|
D | sf.h | 27 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, 31 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port,
|
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 456 devlink_port_attrs_set(&port->dl_port, &attrs); in prestera_devlink_port_register() 458 err = devlink_port_register(dl, &port->dl_port, port->fp_id); in prestera_devlink_port_register() 469 devlink_port_unregister(&port->dl_port); in prestera_devlink_port_unregister() 474 devlink_port_type_eth_set(&port->dl_port, port->dev); in prestera_devlink_port_set() 479 devlink_port_type_clear(&port->dl_port); in prestera_devlink_port_clear() 486 return &port->dl_port; in prestera_devlink_get_port() 565 devlink = port->dl_port.devlink; in prestera_devlink_trap_report() 572 &port->dl_port, NULL); in prestera_devlink_trap_report()
|
D | prestera.h | 76 struct devlink_port dl_port; member
|
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 374 devlink_port_attrs_set(&port->dl_port, &attrs); in nfp_devlink_port_register() 378 return devlink_port_register(devlink, &port->dl_port, port->eth_id); in nfp_devlink_port_register() 383 devlink_port_unregister(&port->dl_port); in nfp_devlink_port_unregister() 388 devlink_port_type_eth_set(&port->dl_port, port->netdev); in nfp_devlink_port_type_eth_set() 393 devlink_port_type_clear(&port->dl_port); in nfp_devlink_port_type_clear() 404 return &port->dl_port; in nfp_devlink_get_devlink_port()
|
D | nfp_port.h | 70 struct devlink_port dl_port; member
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.c | 1126 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_load() local 1136 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_load() 1137 if (dl_port) in mlx5e_vport_uplink_rep_load() 1138 devlink_port_type_eth_set(dl_port, rpriv->netdev); in mlx5e_vport_uplink_rep_load() 1147 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_unload() local 1154 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_unload() 1155 if (dl_port) in mlx5e_vport_uplink_rep_unload() 1156 devlink_port_type_clear(dl_port); in mlx5e_vport_uplink_rep_unload() 1165 struct devlink_port *dl_port; in mlx5e_vport_vf_rep_load() local 1211 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_vf_rep_load() [all …]
|
D | devlink.h | 29 struct devlink_port *dl_port);
|
D | eswitch.h | 187 struct devlink_port *dl_port; member 678 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port, 682 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
|
D | devlink.c | 323 struct devlink_port *dl_port) in mlx5_devlink_trap_report() argument 339 devlink_trap_report(devlink, skb, dl_trap->item, dl_port, NULL); in mlx5_devlink_trap_report()
|
D | en_rx.c | 1827 struct devlink_port *dl_port; in mlx5e_trap_handle_rx_cqe() local 1850 dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_trap_handle_rx_cqe() 1851 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, dl_port); in mlx5e_trap_handle_rx_cqe()
|
D | eswitch_offloads.c | 3701 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port, in mlx5_esw_offloads_sf_vport_enable() argument 3710 err = mlx5_esw_devlink_sf_port_register(esw, dl_port, vport_num, controller, sfnum); in mlx5_esw_offloads_sf_vport_enable()
|
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 756 rc = devlink_port_params_register(&bp->dl_port, bnxt_dl_port_params, in bnxt_dl_params_register() 776 devlink_port_params_unregister(&bp->dl_port, bnxt_dl_port_params, in bnxt_dl_params_unregister() 818 devlink_port_attrs_set(&bp->dl_port, &attrs); in bnxt_dl_register() 819 rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); in bnxt_dl_register() 832 devlink_port_unregister(&bp->dl_port); in bnxt_dl_register() 850 devlink_port_unregister(&bp->dl_port); in bnxt_dl_unregister()
|
D | bnxt.h | 2043 struct devlink_port dl_port; member
|
D | bnxt.c | 12763 return &bp->dl_port; in bnxt_get_devlink_port() 12809 devlink_port_type_clear(&bp->dl_port); in bnxt_remove_one() 13380 devlink_port_type_eth_set(&bp->dl_port, bp->dev); in bnxt_init_one()
|
/Linux-v5.15/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.c | 2419 struct devlink_port *dl_port; in am65_cpsw_nuss_register_devlink() local 2455 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink() 2461 devlink_port_attrs_set(dl_port, &attrs); in am65_cpsw_nuss_register_devlink() 2463 ret = devlink_port_register(common->devlink, dl_port, port->port_id); in am65_cpsw_nuss_register_devlink() 2469 devlink_port_type_eth_set(dl_port, port->ndev); in am65_cpsw_nuss_register_devlink() 2477 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink() 2479 devlink_port_unregister(dl_port); in am65_cpsw_nuss_register_devlink() 2491 struct devlink_port *dl_port; in am65_cpsw_unregister_devlink() local 2497 dl_port = &port->devlink_port; in am65_cpsw_unregister_devlink() 2499 devlink_port_unregister(dl_port); in am65_cpsw_unregister_devlink()
|
/Linux-v5.15/include/linux/mlx5/ |
D | driver.h | 659 struct devlink_port dl_port; member
|