Home
last modified time | relevance | path

Searched refs:dl_port (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c30 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/
Ddevlink.c18 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()
Dreporter_tx.c452 reporter = devlink_port_health_reporter_create(&priv->dl_port, &mlx5_tx_reporter_ops, in mlx5e_reporter_tx_create()
Dreporter_rx.c616 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/
Dprestera_devlink.c81 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()
Dprestera.h66 struct devlink_port dl_port; member
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer.sh44 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/
Dionic_devlink.c92 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()
Dionic.h38 struct devlink_port dl_port; member
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c374 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()
Dnfp_port.h70 struct devlink_port dl_port; member
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.c723 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()
Dbnxt.h1996 struct devlink_port dl_port; member
Dbnxt.c12190 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/
Den_rep.c1205 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()
Deswitch.h159 struct devlink_port *dl_port; member
Den.h828 struct devlink_port dl_port; member