/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 30 struct devlink_port *dl_port; in mlx5_esw_dl_port_alloc() local 35 dl_port = kzalloc(sizeof(*dl_port), GFP_KERNEL); in mlx5_esw_dl_port_alloc() 36 if (!dl_port) in mlx5_esw_dl_port_alloc() 50 devlink_port_attrs_set(dl_port, &attrs); in mlx5_esw_dl_port_alloc() 52 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 53 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc() 54 devlink_port_attrs_pci_pf_set(dl_port, controller_num, pfnum, external); in mlx5_esw_dl_port_alloc() 56 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 57 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc() 58 devlink_port_attrs_pci_vf_set(dl_port, controller_num, pfnum, in mlx5_esw_dl_port_alloc() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 18 devlink_port_attrs_set(&priv->dl_port, &attrs); in mlx5e_devlink_port_register() 20 return devlink_port_register(devlink, &priv->dl_port, 1); in mlx5e_devlink_port_register() 25 devlink_port_type_eth_set(&priv->dl_port, priv->netdev); in mlx5e_devlink_port_type_eth_set() 30 devlink_port_unregister(&priv->dl_port); in mlx5e_devlink_port_unregister() 37 return &priv->dl_port; in mlx5e_get_devlink_port()
|
D | reporter_tx.c | 452 reporter = devlink_port_health_reporter_create(&priv->dl_port, &mlx5_tx_reporter_ops, in mlx5e_reporter_tx_create()
|
D | reporter_rx.c | 616 reporter = devlink_port_health_reporter_create(&priv->dl_port, &mlx5_rx_reporter_ops, in mlx5e_reporter_rx_create()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 81 devlink_port_attrs_set(&port->dl_port, &attrs); in prestera_devlink_port_register() 83 err = devlink_port_register(dl, &port->dl_port, port->fp_id); in prestera_devlink_port_register() 94 devlink_port_unregister(&port->dl_port); in prestera_devlink_port_unregister() 99 devlink_port_type_eth_set(&port->dl_port, port->dev); in prestera_devlink_port_set() 104 devlink_port_type_clear(&port->dl_port); in prestera_devlink_port_clear() 111 return &port->dl_port; in prestera_devlink_get_port()
|
D | prestera.h | 66 struct devlink_port dl_port; member
|
/kernel/linux/linux-5.10/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 \
|
/kernel/linux/linux-5.10/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 | 38 struct devlink_port dl_port; member
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 723 rc = devlink_port_params_register(&bp->dl_port, bnxt_dl_port_params, in bnxt_dl_params_register() 743 devlink_port_params_unregister(&bp->dl_port, bnxt_dl_port_params, in bnxt_dl_params_unregister() 782 devlink_port_attrs_set(&bp->dl_port, &attrs); in bnxt_dl_register() 783 rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); in bnxt_dl_register() 796 devlink_port_unregister(&bp->dl_port); in bnxt_dl_register() 814 devlink_port_unregister(&bp->dl_port); in bnxt_dl_unregister()
|
D | bnxt.h | 1996 struct devlink_port dl_port; member
|
D | bnxt.c | 12190 return &bp->dl_port; in bnxt_get_devlink_port() 12237 devlink_port_type_clear(&bp->dl_port); in bnxt_remove_one() 12823 devlink_port_type_eth_set(&bp->dl_port, bp->dev); in bnxt_init_one()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.c | 1205 struct devlink_port *dl_port; in mlx5e_vport_rep_load() local 1263 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_load() 1264 if (dl_port) in mlx5e_vport_rep_load() 1265 devlink_port_type_eth_set(dl_port, netdev); in mlx5e_vport_rep_load() 1291 struct devlink_port *dl_port; in mlx5e_vport_rep_unload() local 1294 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_unload() 1295 if (dl_port) in mlx5e_vport_rep_unload() 1296 devlink_port_type_clear(dl_port); in mlx5e_vport_rep_unload()
|
D | eswitch.h | 159 struct devlink_port *dl_port; member
|
D | en.h | 828 struct devlink_port dl_port; member
|