Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Ddevlink_port.c29 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()
60 return dl_port; in mlx5_esw_dl_port_alloc()
65 kfree(dl_port); in mlx5_esw_dl_port_free()
71 struct devlink_port *dl_port; in mlx5_esw_offloads_devlink_port_register() local
85 if (!dl_port) in mlx5_esw_offloads_devlink_port_register()
98 vport->dl_port = dl_port; in mlx5_esw_offloads_devlink_port_register()
126 vport->dl_port = NULL; in mlx5_esw_offloads_devlink_port_unregister()
167 vport->dl_port = dl_port; in mlx5_esw_devlink_sf_port_register()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Ddevlink.c22 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()
A Ddevlink.h18 return &priv->mdev->mlx5e_res.dl_port; in mlx5e_devlink_get_dl_port()
A Dreporter_tx.c593 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_reporter_tx_create() local
596 reporter = devlink_port_health_reporter_create(dl_port, &mlx5_tx_reporter_ops, in mlx5e_reporter_tx_create()
A Dreporter_rx.c753 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_reporter_rx_create() local
756 reporter = devlink_port_health_reporter_create(dl_port, &mlx5_rx_reporter_ops, in mlx5e_reporter_rx_create()
/linux/tools/testing/selftests/drivers/net/mlxsw/
A 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 \
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_devlink.c86 devlink_port_attrs_set(&ionic->dl_port, &attrs); in ionic_devlink_register()
87 err = devlink_port_register(dl, &ionic->dl_port, 0); in ionic_devlink_register()
93 devlink_port_type_eth_set(&ionic->dl_port, ionic->lif->netdev); in ionic_devlink_register()
103 devlink_port_unregister(&ionic->dl_port); in ionic_devlink_unregister()
A Dionic.h43 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_devlink.c432 devlink_port_attrs_set(&port->dl_port, &attrs); in prestera_devlink_port_register()
434 err = devlink_port_register(dl, &port->dl_port, port->fp_id); in prestera_devlink_port_register()
445 devlink_port_unregister(&port->dl_port); in prestera_devlink_port_unregister()
450 devlink_port_type_eth_set(&port->dl_port, port->dev); in prestera_devlink_port_set()
455 devlink_port_type_clear(&port->dl_port); in prestera_devlink_port_clear()
462 return &port->dl_port; in prestera_devlink_get_port()
541 devlink = port->dl_port.devlink; in prestera_devlink_trap_report()
548 &port->dl_port, NULL); in prestera_devlink_trap_report()
A Dprestera.h111 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_rep.c1140 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_load() local
1151 if (dl_port) in mlx5e_vport_uplink_rep_load()
1161 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_unload() local
1169 if (dl_port) in mlx5e_vport_uplink_rep_unload()
1170 devlink_port_type_clear(dl_port); in mlx5e_vport_uplink_rep_unload()
1179 struct devlink_port *dl_port; in mlx5e_vport_vf_rep_load() local
1226 if (dl_port) in mlx5e_vport_vf_rep_load()
1227 devlink_port_type_eth_set(dl_port, netdev); in mlx5e_vport_vf_rep_load()
1274 struct devlink_port *dl_port; in mlx5e_vport_rep_unload() local
1283 if (dl_port) in mlx5e_vport_rep_unload()
[all …]
A Ddevlink.h29 struct devlink_port *dl_port);
A Deswitch.h190 struct devlink_port *dl_port; member
694 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
698 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
A Ddevlink.c328 struct devlink_port *dl_port) in mlx5_devlink_trap_report() argument
344 devlink_trap_report(devlink, skb, dl_trap->item, dl_port, NULL); in mlx5_devlink_trap_report()
A Den_rx.c2393 struct devlink_port *dl_port; in mlx5e_trap_handle_rx_cqe() local
2416 dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_trap_handle_rx_cqe()
2417 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, dl_port); in mlx5e_trap_handle_rx_cqe()
A Deswitch_offloads.c3748 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port, in mlx5_esw_offloads_sf_vport_enable() argument
3757 err = mlx5_esw_devlink_sf_port_register(esw, dl_port, vport_num, controller, sfnum); in mlx5_esw_offloads_sf_vport_enable()
/linux/drivers/net/ethernet/netronome/nfp/
A 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()
A Dnfp_port.h70 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
A Ddevlink.c15 struct devlink_port dl_port; member
170 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_get() argument
175 struct mlx5_core_dev *dev = devlink_priv(dl_port->devlink); in mlx5_devlink_sf_port_fn_state_get()
184 sf = mlx5_sf_lookup_by_index(table, dl_port->index); in mlx5_devlink_sf_port_fn_state_get()
256 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_set() argument
260 struct mlx5_core_dev *dev = devlink_priv(dl_port->devlink); in mlx5_devlink_sf_port_fn_state_set()
271 sf = mlx5_sf_lookup_by_index(table, dl_port->index); in mlx5_devlink_sf_port_fn_state_set()
296 err = mlx5_esw_offloads_sf_vport_enable(esw, &sf->dl_port, sf->hw_fn_id, in mlx5_sf_add()
A Dsf.h27 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/drivers/net/ethernet/ti/
A Dam65-cpsw-nuss.c2430 struct devlink_port *dl_port; in am65_cpsw_nuss_register_devlink() local
2459 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
2465 devlink_port_attrs_set(dl_port, &attrs); in am65_cpsw_nuss_register_devlink()
2467 ret = devlink_port_register(common->devlink, dl_port, port->port_id); in am65_cpsw_nuss_register_devlink()
2473 devlink_port_type_eth_set(dl_port, port->ndev); in am65_cpsw_nuss_register_devlink()
2481 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
2483 devlink_port_unregister(dl_port); in am65_cpsw_nuss_register_devlink()
2492 struct devlink_port *dl_port; in am65_cpsw_unregister_devlink() local
2500 dl_port = &port->devlink_port; in am65_cpsw_unregister_devlink()
2502 devlink_port_unregister(dl_port); in am65_cpsw_unregister_devlink()
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_devlink.c1212 devlink_port_attrs_set(&bp->dl_port, &attrs); in bnxt_dl_register()
1213 rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); in bnxt_dl_register()
1228 devlink_port_unregister(&bp->dl_port); in bnxt_dl_register()
1241 devlink_port_unregister(&bp->dl_port); in bnxt_dl_unregister()
A Dbnxt.h2127 struct devlink_port dl_port; member
A Dbnxt.c12814 return &bp->dl_port; in bnxt_get_devlink_port()
12860 devlink_port_type_clear(&bp->dl_port); in bnxt_remove_one()
13443 devlink_port_type_eth_set(&bp->dl_port, bp->dev); in bnxt_init_one()
/linux/include/linux/mlx5/
A Ddriver.h644 struct devlink_port dl_port; member

Completed in 140 milliseconds