Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c26 struct devlink_port *dl_port) in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() argument
41 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
42 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
43 devlink_port_attrs_pci_pf_set(dl_port, controller_num, pfnum, external); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
46 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
47 devlink_port_attrs_pci_vf_set(dl_port, controller_num, pfnum, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
50 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
51 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
52 devlink_port_attrs_pci_vf_set(dl_port, 0, pfnum, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c15 struct mlx5_devlink_port dl_port; member
23 static void *mlx5_sf_by_dl_port(struct devlink_port *dl_port) in mlx5_sf_by_dl_port() argument
25 struct mlx5_devlink_port *mlx5_dl_port = mlx5_devlink_port_get(dl_port); in mlx5_sf_by_dl_port()
27 return container_of(mlx5_dl_port, struct mlx5_sf, dl_port); in mlx5_sf_by_dl_port()
145 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_get() argument
150 struct mlx5_core_dev *dev = devlink_priv(dl_port->devlink); in mlx5_devlink_sf_port_fn_state_get()
152 struct mlx5_sf *sf = mlx5_sf_by_dl_port(dl_port); in mlx5_devlink_sf_port_fn_state_get()
174 vport = mlx5_devlink_port_vport_get(&sf->dl_port.dl_port); in mlx5_sf_activate()
176 err = mlx5_devlink_port_fn_max_io_eqs_set_sf_default(&sf->dl_port.dl_port, in mlx5_sf_activate()
227 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_set() argument
[all …]
H A Dsf.h24 struct devlink_port **dl_port);
26 struct devlink_port *dl_port,
28 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port,
32 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port,
/linux/tools/testing/selftests/drivers/net/mlxsw/
H 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/sfc/
H A Defx_devlink.c39 mport_desc = container_of(port, struct mae_mport_desc, dl_port); in efx_devlink_port_addr_get()
89 mport_desc = container_of(port, struct mae_mport_desc, dl_port); in efx_devlink_port_addr_set()
132 static void efx_devlink_del_port(struct devlink_port *dl_port) in efx_devlink_del_port() argument
134 if (!dl_port) in efx_devlink_del_port()
136 devl_port_unregister(dl_port); in efx_devlink_del_port()
150 devlink_port_attrs_pci_vf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port()
154 devlink_port_attrs_pci_pf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port()
162 mport->dl_port.index = mport->mport_id; in efx_devlink_add_port()
164 return devl_port_register_with_ops(efx->devlink, &mport->dl_port, in efx_devlink_add_port()
665 return &mport->dl_port; in ef100_set_devlink_port()
[all …]
H A Def100_rep.h60 struct devlink_port *dl_port; member
H A Dmae.h47 struct devlink_port dl_port; member
H A Dnet_driver.h1150 struct devlink_port *dl_port; member
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_devlink.c84 devlink_port_attrs_set(&ionic->dl_port, &attrs); in ionic_devlink_register()
85 err = devlink_port_register(dl, &ionic->dl_port, 0); in ionic_devlink_register()
91 SET_NETDEV_DEVLINK_PORT(ionic->lif->netdev, &ionic->dl_port); in ionic_devlink_register()
101 devlink_port_unregister(&ionic->dl_port); in ionic_devlink_unregister()
H A Dionic.h45 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_devlink.c30 struct devlink_port *dl_port, in nfp_devlink_fill_eth_port_from_id() argument
33 struct nfp_port *port = container_of(dl_port, struct nfp_port, dl_port); in nfp_devlink_fill_eth_port_from_id()
341 SET_NETDEV_DEVLINK_PORT(port->netdev, &port->dl_port); in nfp_devlink_port_register()
358 devlink_port_attrs_set(&port->dl_port, &attrs); in nfp_devlink_port_register()
362 return devl_port_register_with_ops(devlink, &port->dl_port, in nfp_devlink_port_register()
368 devl_port_unregister(&port->dl_port); in nfp_devlink_port_unregister()
H A Dnfp_port.h83 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Ddevlink.c73 devlink_port_attrs_set(&mlx5e_dev->dl_port, &attrs); in mlx5e_devlink_port_register()
75 return devlink_port_register(devlink, &mlx5e_dev->dl_port, in mlx5e_devlink_port_register()
81 devlink_port_unregister(&mlx5e_dev->dl_port); in mlx5e_devlink_port_unregister()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h180 struct devlink_port dl_port; member
184 static inline void mlx5_devlink_port_init(struct mlx5_devlink_port *dl_port, in mlx5_devlink_port_init() argument
187 dl_port->vport = vport; in mlx5_devlink_port_init()
190 static inline struct mlx5_devlink_port *mlx5_devlink_port_get(struct devlink_port *dl_port) in mlx5_devlink_port_get() argument
192 return container_of(dl_port, struct mlx5_devlink_port, dl_port); in mlx5_devlink_port_get()
195 static inline struct mlx5_vport *mlx5_devlink_port_vport_get(struct devlink_port *dl_port) in mlx5_devlink_port_vport_get() argument
197 return mlx5_devlink_port_get(dl_port)->vport; in mlx5_devlink_port_vport_get()
229 struct mlx5_devlink_port *dl_port; member
782 struct mlx5_devlink_port *dl_port,
791 struct mlx5_devlink_port *dl_port, u32 controller, u32 sfnum);
[all …]
H A Ddevlink.h45 struct devlink_port *dl_port);
H A Den_rep.c1429 struct devlink_port *dl_port) in mlx5e_rep_vnic_reporter_create() argument
1434 reporter = devl_port_health_reporter_create(dl_port, in mlx5e_rep_vnic_reporter_create()
1519 struct devlink_port *dl_port; in mlx5e_vport_vf_rep_load() local
1553 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, in mlx5e_vport_vf_rep_load()
1555 if (!IS_ERR(dl_port)) { in mlx5e_vport_vf_rep_load()
1556 SET_NETDEV_DEVLINK_PORT(netdev, dl_port); in mlx5e_vport_vf_rep_load()
1557 mlx5e_rep_vnic_reporter_create(priv, dl_port); in mlx5e_vport_vf_rep_load()
H A Ddevlink.c345 struct devlink_port *dl_port) in mlx5_devlink_trap_report() argument
361 devlink_trap_report(devlink, skb, dl_trap->item, dl_port, NULL); in mlx5_devlink_trap_report()
H A Deswitch.c1146 struct mlx5_devlink_port *dl_port, u32 controller, u32 sfnum) in mlx5_eswitch_load_sf_vport() argument
1155 err = mlx5_esw_offloads_init_sf_rep(esw, vport, dl_port, controller, sfnum); in mlx5_eswitch_load_sf_vport()
H A Den.h946 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c427 devlink_port_attrs_set(&port->dl_port, &attrs); in prestera_devlink_port_register()
429 err = devlink_port_register(dl, &port->dl_port, port->fp_id); in prestera_devlink_port_register()
440 devlink_port_unregister(&port->dl_port); in prestera_devlink_port_unregister()
519 devlink = port->dl_port.devlink; in prestera_devlink_trap_report()
526 &port->dl_port, NULL); in prestera_devlink_trap_report()
H A Dprestera.h134 struct devlink_port dl_port; member
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth.h149 struct devlink_port dl_port; member
H A Dfuneth_main.c1524 devlink_port_attrs_set(&fp->dl_port, &attrs); in fun_dl_port_register()
1526 return devlink_port_register(dl, &fp->dl_port, idx); in fun_dl_port_register()
1760 SET_NETDEV_DEVLINK_PORT(netdev, &fp->dl_port); in fun_create_netdev()
1807 devlink_port_unregister(&fp->dl_port); in fun_create_netdev()
1827 devlink_port_unregister(&fp->dl_port); in fun_destroy_netdev()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_devlink.c1262 devlink_port_attrs_set(&bp->dl_port, &attrs); in bnxt_dl_register()
1263 rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); in bnxt_dl_register()
1278 devlink_port_unregister(&bp->dl_port); in bnxt_dl_register()
1291 devlink_port_unregister(&bp->dl_port); in bnxt_dl_unregister()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c3227 struct devlink_port *dl_port; in am65_cpsw_nuss_register_devlink() local
3256 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
3265 devlink_port_attrs_set(dl_port, &attrs); in am65_cpsw_nuss_register_devlink()
3267 ret = devlink_port_register(common->devlink, dl_port, port->port_id); in am65_cpsw_nuss_register_devlink()
3280 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
3282 devlink_port_unregister(dl_port); in am65_cpsw_nuss_register_devlink()
3291 struct devlink_port *dl_port; in am65_cpsw_unregister_devlink() local
3299 dl_port = &port->devlink_port; in am65_cpsw_unregister_devlink()
3301 devlink_port_unregister(dl_port); in am65_cpsw_unregister_devlink()

12