Home
last modified time | relevance | path

Searched refs:nsim_dev_port (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/net/netdevsim/
Ddev.c392 struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_debugfs_init() argument
395 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init()
400 nsim_dev_port->ddir = debugfs_create_dir(port_ddir_name, in nsim_dev_port_debugfs_init()
402 if (IS_ERR(nsim_dev_port->ddir)) in nsim_dev_port_debugfs_init()
403 return PTR_ERR(nsim_dev_port->ddir); in nsim_dev_port_debugfs_init()
406 if (nsim_dev_port_is_vf(nsim_dev_port)) { in nsim_dev_port_debugfs_init()
409 debugfs_create_u16("tx_share", 0400, nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
411 debugfs_create_u16("tx_max", 0400, nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
413 nsim_dev_port->rate_parent = debugfs_create_file("rate_parent", in nsim_dev_port_debugfs_init()
415 nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
[all …]
Dnetdevsim.h102 struct nsim_dev_port *nsim_dev_port; member
143 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port);
267 struct nsim_dev_port { struct
377 static inline bool nsim_dev_port_is_pf(struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_is_pf() argument
379 return nsim_dev_port->port_type == NSIM_DEV_PORT_TYPE_PF; in nsim_dev_port_is_pf()
382 static inline bool nsim_dev_port_is_vf(struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_is_vf() argument
384 return nsim_dev_port->port_type == NSIM_DEV_PORT_TYPE_VF; in nsim_dev_port_is_vf()
Dudp_tunnels.c148 ns->nsim_dev_port->ddir, in nsim_udp_tunnels_info_create()
154 ns->nsim_dev_port->ddir, in nsim_udp_tunnels_info_create()
160 ns->nsim_dev_port->ddir, in nsim_udp_tunnels_info_create()
163 debugfs_create_file("udp_ports_reset", 0200, ns->nsim_dev_port->ddir, in nsim_udp_tunnels_info_create()
Dnetdev.c728 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port) in nsim_create() argument
744 ns->nsim_dev_port = nsim_dev_port; in nsim_create()
747 SET_NETDEV_DEVLINK_PORT(dev, &nsim_dev_port->devlink_port); in nsim_create()
749 if (nsim_dev_port_is_pf(nsim_dev_port)) in nsim_create()
756 ns->pp_dfs = debugfs_create_file("pp_hold", 0600, nsim_dev_port->ddir, in nsim_create()
779 if (nsim_dev_port_is_pf(ns->nsim_dev_port)) { in nsim_destroy()
786 if (nsim_dev_port_is_pf(ns->nsim_dev_port)) in nsim_destroy()
Dethtool.c201 ethtool = debugfs_create_dir("ethtool", ns->nsim_dev_port->ddir); in nsim_ethtool_init()
Dipsec.c292 ns->nsim_dev_port->ddir, ns, in nsim_ipsec_init()
Dbpf.c617 struct dentry *ddir = ns->nsim_dev_port->ddir; in nsim_bpf_init()