/linux-6.1.9/include/net/ |
D | devlink.h | 111 struct devlink_port *devlink_port; member 119 struct devlink_port { struct 666 int (*snapshot)(struct devlink_port *port, 1234 int (*port_type_set)(struct devlink_port *devlink_port, 1236 int (*port_split)(struct devlink *devlink, struct devlink_port *port, 1238 int (*port_unsplit)(struct devlink *devlink, struct devlink_port *port, 1247 int (*sb_port_pool_get)(struct devlink_port *devlink_port, 1250 int (*sb_port_pool_set)(struct devlink_port *devlink_port, 1253 int (*sb_tc_pool_bind_get)(struct devlink_port *devlink_port, 1258 int (*sb_tc_pool_bind_set)(struct devlink_port *devlink_port, [all …]
|
/linux-6.1.9/net/core/ |
D | devlink.c | 374 #define ASSERT_DEVLINK_PORT_REGISTERED(devlink_port) \ argument 375 WARN_ON_ONCE(!(devlink_port)->registered) 376 #define ASSERT_DEVLINK_PORT_NOT_REGISTERED(devlink_port) \ argument 377 WARN_ON_ONCE((devlink_port)->registered) 378 #define ASSERT_DEVLINK_PORT_INITIALIZED(devlink_port) \ argument 379 WARN_ON_ONCE(!(devlink_port)->initialized) 381 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index() 384 struct devlink_port *devlink_port; in devlink_port_get_by_index() local 386 list_for_each_entry(devlink_port, &devlink->port_list, list) { in devlink_port_get_by_index() 387 if (devlink_port->index == port_index) in devlink_port_get_by_index() [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 227 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_add() local 232 devlink_port_attrs_set(devlink_port, &attrs); in dpaa2_eth_dl_port_add() 234 err = devlink_port_register(priv->devlink, devlink_port, 0); in dpaa2_eth_dl_port_add() 238 devlink_port_type_eth_set(devlink_port, priv->net_dev); in dpaa2_eth_dl_port_add() 245 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_del() local 247 devlink_port_type_clear(devlink_port); in dpaa2_eth_dl_port_del() 248 devlink_port_unregister(devlink_port); in dpaa2_eth_dl_port_del()
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_devlink.c | 637 ice_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_split() 710 ice_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_unsplit() 990 struct devlink_port *devlink_port; in ice_devlink_create_pf_port() local 998 devlink_port = &pf->devlink_port; in ice_devlink_create_pf_port() 1015 devlink_port_attrs_set(devlink_port, &attrs); in ice_devlink_create_pf_port() 1018 err = devlink_port_register(devlink, devlink_port, vsi->idx); in ice_devlink_create_pf_port() 1036 struct devlink_port *devlink_port; in ice_devlink_destroy_pf_port() local 1038 devlink_port = &pf->devlink_port; in ice_devlink_destroy_pf_port() 1040 devlink_port_type_clear(devlink_port); in ice_devlink_destroy_pf_port() 1041 devlink_port_unregister(devlink_port); in ice_devlink_destroy_pf_port() [all …]
|
D | ice_repr.c | 33 if (repr->vf->devlink_port.devlink) in ice_repr_get_phys_port_name() 137 static struct devlink_port * 142 return &repr->vf->devlink_port; in ice_repr_get_devlink_port() 346 devlink_port_type_eth_set(&vf->devlink_port, repr->netdev); in ice_repr_add()
|
D | ice_vf_lib.h | 133 struct devlink_port devlink_port; member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 22 struct devlink_port *dl_port; in mlx5e_devlink_port_register() 56 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_type_eth_set() 63 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_unregister() 73 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev) in mlx5e_get_devlink_port()
|
D | devlink.h | 13 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev); 15 static inline struct devlink_port *
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 48 struct devlink_port devlink_port; member 1263 static void *__dl_port(struct devlink_port *devlink_port) in __dl_port() argument 1265 return container_of(devlink_port, struct mlxsw_core_port, devlink_port); in __dl_port() 1269 struct devlink_port *port, in mlxsw_devlink_port_split() 1284 struct devlink_port *port, in mlxsw_devlink_port_unsplit() 1327 static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_get() argument 1331 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_get() 1333 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_sb_port_pool_get() 1342 static int mlxsw_devlink_sb_port_pool_set(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_set() argument 1347 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_set() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 24 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc() 29 struct devlink_port *dl_port; in mlx5_esw_dl_port_alloc() 63 static void mlx5_esw_dl_port_free(struct devlink_port *dl_port) in mlx5_esw_dl_port_free() 71 struct devlink_port *dl_port; in mlx5_esw_offloads_devlink_port_register() 129 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port() 137 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port, in mlx5_esw_devlink_sf_port_register()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | sf.h | 27 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,
|
D | devlink.c | 15 struct devlink_port dl_port; 170 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, 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()
|
/linux-6.1.9/drivers/net/netdevsim/ |
D | dev.c | 822 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report() 1363 struct devlink_port *devlink_port; in __nsim_dev_port_add() local 1375 devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_add() 1386 devlink_port_attrs_set(devlink_port, &attrs); in __nsim_dev_port_add() 1387 err = devl_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add() 1403 err = devl_rate_leaf_create(&nsim_dev_port->devlink_port, in __nsim_dev_port_add() 1409 devlink_port_type_eth_set(devlink_port, nsim_dev_port->ns->netdev); in __nsim_dev_port_add() 1419 devl_port_unregister(devlink_port); in __nsim_dev_port_add() 1427 struct devlink_port *devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_del() local 1431 devl_rate_leaf_destroy(&nsim_dev_port->devlink_port); in __nsim_dev_port_del() [all …]
|
D | netdevsim.h | 233 struct devlink_port devlink_port; member
|
/linux-6.1.9/net/dsa/ |
D | dsa2.c | 466 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_setup() 519 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_teardown() 532 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_setup() 611 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_teardown() 689 static int dsa_devlink_sb_port_pool_get(struct devlink_port *dlp, in dsa_devlink_sb_port_pool_get() 703 static int dsa_devlink_sb_port_pool_set(struct devlink_port *dlp, in dsa_devlink_sb_port_pool_set() 719 dsa_devlink_sb_tc_pool_bind_get(struct devlink_port *dlp, in dsa_devlink_sb_tc_pool_bind_get() 736 dsa_devlink_sb_tc_pool_bind_set(struct devlink_port *dlp, in dsa_devlink_sb_tc_pool_bind_set() 776 static int dsa_devlink_sb_occ_port_pool_get(struct devlink_port *dlp, in dsa_devlink_sb_occ_port_pool_get() 792 dsa_devlink_sb_occ_tc_port_bind_get(struct devlink_port *dlp, in dsa_devlink_sb_occ_tc_port_bind_get()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 30 struct devlink_port *dl_port, in nfp_devlink_fill_eth_port_from_id() 64 nfp_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_split() 90 nfp_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_unsplit() 374 struct devlink_port *nfp_devlink_get_devlink_port(struct net_device *netdev) in nfp_devlink_get_devlink_port()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.h | 193 struct devlink_port *dl_port; 505 int mlx5_devlink_port_function_hw_addr_get(struct devlink_port *port, 508 int mlx5_devlink_port_function_hw_addr_set(struct devlink_port *port, 698 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num); 703 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port, 707 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
|
D | devlink.h | 29 struct devlink_port *dl_port);
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.h | 57 struct devlink_port devlink_port; member
|
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.h | 21 struct devlink_port *prestera_devlink_get_port(struct net_device *dev);
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_net.c | 32 static struct ocelot *devlink_port_to_ocelot(struct devlink_port *dlp) in devlink_port_to_ocelot() 37 static int devlink_port_to_port(struct devlink_port *dlp) in devlink_port_to_port() 64 static int ocelot_devlink_sb_port_pool_get(struct devlink_port *dlp, in ocelot_devlink_sb_port_pool_get() 75 static int ocelot_devlink_sb_port_pool_set(struct devlink_port *dlp, in ocelot_devlink_sb_port_pool_set() 88 ocelot_devlink_sb_tc_pool_bind_get(struct devlink_port *dlp, in ocelot_devlink_sb_tc_pool_bind_get() 102 ocelot_devlink_sb_tc_pool_bind_set(struct devlink_port *dlp, in ocelot_devlink_sb_tc_pool_bind_set() 132 static int ocelot_devlink_sb_occ_port_pool_get(struct devlink_port *dlp, in ocelot_devlink_sb_occ_port_pool_get() 145 ocelot_devlink_sb_occ_tc_port_bind_get(struct devlink_port *dlp, in ocelot_devlink_sb_occ_tc_port_bind_get() 174 struct devlink_port *dlp = &ocelot->devlink_ports[port]; in ocelot_port_devlink_init() 192 struct devlink_port *dlp = &ocelot->devlink_ports[port]; in ocelot_port_devlink_teardown() [all …]
|
/linux-6.1.9/include/linux/mlx4/ |
D | driver.h | 93 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port);
|
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/ |
D | devlink.c | 623 static int mv88e6xxx_region_port_snapshot(struct devlink_port *devlink_port, in mv88e6xxx_region_port_snapshot() argument 628 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot() 629 int port = dsa_devlink_port_to_port(devlink_port); in mv88e6xxx_region_port_snapshot()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | intf.c | 269 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()
|
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic.h | 43 struct devlink_port dl_port;
|