Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/net/
Ddevlink.h119 struct devlink_port { struct
621 int (*snapshot)(struct devlink_port *port,
1175 int (*port_type_set)(struct devlink_port *devlink_port,
1188 int (*sb_port_pool_get)(struct devlink_port *devlink_port,
1191 int (*sb_port_pool_set)(struct devlink_port *devlink_port,
1194 int (*sb_tc_pool_bind_get)(struct devlink_port *devlink_port,
1199 int (*sb_tc_pool_bind_set)(struct devlink_port *devlink_port,
1209 int (*sb_occ_port_pool_get)(struct devlink_port *devlink_port,
1212 int (*sb_occ_tc_port_bind_get)(struct devlink_port *devlink_port,
1335 int (*port_function_hw_addr_get)(struct devlink *devlink, struct devlink_port *port,
[all …]
Ddsa.h217 struct devlink_port devlink_port; member
706 struct dsa_switch *dsa_devlink_port_to_ds(struct devlink_port *port) in dsa_devlink_port_to_ds()
714 static inline int dsa_devlink_port_to_port(struct devlink_port *port) in dsa_devlink_port_to_port()
/kernel/linux/linux-5.10/net/core/
Ddevlink.c151 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index()
154 struct devlink_port *devlink_port; in devlink_port_get_by_index() local
156 list_for_each_entry(devlink_port, &devlink->port_list, list) { in devlink_port_get_by_index()
157 if (devlink_port->index == port_index) in devlink_port_get_by_index()
158 return devlink_port; in devlink_port_get_by_index()
169 static struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs()
174 struct devlink_port *devlink_port; in devlink_port_get_from_attrs() local
176 devlink_port = devlink_port_get_by_index(devlink, port_index); in devlink_port_get_from_attrs()
177 if (!devlink_port) in devlink_port_get_from_attrs()
179 return devlink_port; in devlink_port_get_from_attrs()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c229 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_add() local
234 devlink_port_attrs_set(devlink_port, &attrs); in dpaa2_eth_dl_port_add()
236 err = devlink_port_register(priv->devlink, devlink_port, 0); in dpaa2_eth_dl_port_add()
240 devlink_port_type_eth_set(devlink_port, priv->net_dev); in dpaa2_eth_dl_port_add()
247 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_del() local
249 devlink_port_type_clear(devlink_port); in dpaa2_eth_dl_port_del()
250 devlink_port_unregister(devlink_port); in dpaa2_eth_dl_port_del()
Ddpaa2-eth.h569 struct devlink_port devlink_port; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c48 struct devlink_port devlink_port; member
1235 static void *__dl_port(struct devlink_port *devlink_port) in __dl_port() argument
1237 return container_of(devlink_port, struct mlxsw_core_port, devlink_port); in __dl_port()
1240 static int mlxsw_devlink_port_type_set(struct devlink_port *devlink_port, in mlxsw_devlink_port_type_set() argument
1243 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_port_type_set()
1245 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_port_type_set()
1255 static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_get() argument
1259 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_get()
1261 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_sb_port_pool_get()
1270 static int mlxsw_devlink_sb_port_pool_set(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_set() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c25 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc()
30 struct devlink_port *dl_port; in mlx5_esw_dl_port_alloc()
64 static void mlx5_esw_dl_port_free(struct devlink_port *dl_port) in mlx5_esw_dl_port_free()
72 struct devlink_port *dl_port; in mlx5_esw_offloads_devlink_port_register()
118 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Ddev.c578 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report()
914 struct devlink_port *devlink_port; in __nsim_dev_port_add() local
922 devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_add()
927 devlink_port_attrs_set(devlink_port, &attrs); in __nsim_dev_port_add()
928 err = devlink_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add()
943 devlink_port_type_eth_set(devlink_port, nsim_dev_port->ns->netdev); in __nsim_dev_port_add()
951 devlink_port_unregister(devlink_port); in __nsim_dev_port_add()
959 struct devlink_port *devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_del() local
962 devlink_port_type_clear(devlink_port); in __nsim_dev_port_del()
965 devlink_port_unregister(devlink_port); in __nsim_dev_port_del()
Dnetdevsim.h177 struct devlink_port devlink_port; member
Dnetdev.c236 static struct devlink_port *nsim_get_devlink_port(struct net_device *dev) in nsim_get_devlink_port()
240 return &ns->nsim_dev_port->devlink_port; in nsim_get_devlink_port()
/kernel/linux/linux-5.10/net/dsa/
Ddsa2.c254 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_setup()
314 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_setup()
356 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_teardown()
388 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_teardown()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.h13 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev);
Ddevlink.c33 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev) in mlx5e_get_devlink_port()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.h21 struct devlink_port *prestera_devlink_get_port(struct net_device *dev);
Dprestera_devlink.c107 struct devlink_port *prestera_devlink_get_port(struct net_device *dev) in prestera_devlink_get_port()
Dprestera.h66 struct devlink_port dl_port;
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_devlink.c398 devlink_port_attrs_set(&vsi->devlink_port, &attrs); in ice_devlink_create_port()
399 err = devlink_port_register(devlink, &vsi->devlink_port, vsi->idx); in ice_devlink_create_port()
421 devlink_port_type_clear(&vsi->devlink_port); in ice_devlink_destroy_port()
422 devlink_port_unregister(&vsi->devlink_port); in ice_devlink_destroy_port()
Dice.h289 struct devlink_port devlink_port; member
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Ddevlink.c420 static int mv88e6xxx_region_port_snapshot(struct devlink_port *devlink_port, in mv88e6xxx_region_port_snapshot() argument
425 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot()
426 int port = dsa_devlink_port_to_port(devlink_port); in mv88e6xxx_region_port_snapshot()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h159 struct devlink_port *dl_port;
430 struct devlink_port *port,
434 struct devlink_port *port,
669 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num);
DMakefile53 esw/devlink_port.o
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic.h38 struct devlink_port dl_port;
/kernel/linux/linux-5.10/include/linux/mlx4/
Ddriver.h93 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dintf.c269 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port) in mlx4_get_devlink_port()
273 return &info->devlink_port; in mlx4_get_devlink_port()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_port.h70 struct devlink_port dl_port;

12