Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/netdevsim/
Ddev.c395 struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_debugfs_init() argument
398 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init()
403 nsim_dev_port->ddir = debugfs_create_dir(port_ddir_name, in nsim_dev_port_debugfs_init()
405 if (IS_ERR(nsim_dev_port->ddir)) in nsim_dev_port_debugfs_init()
406 return PTR_ERR(nsim_dev_port->ddir); in nsim_dev_port_debugfs_init()
409 if (nsim_dev_port_is_vf(nsim_dev_port)) { in nsim_dev_port_debugfs_init()
412 debugfs_create_u16("tx_share", 0400, nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
414 debugfs_create_u16("tx_max", 0400, nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
416 nsim_dev_port->rate_parent = debugfs_create_file("rate_parent", in nsim_dev_port_debugfs_init()
418 nsim_dev_port->ddir, in nsim_dev_port_debugfs_init()
[all …]
Dnetdevsim.h75 struct nsim_dev_port *nsim_dev_port; member
108 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port);
231 struct nsim_dev_port { struct
341 static inline bool nsim_dev_port_is_pf(struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_is_pf() argument
343 return nsim_dev_port->port_type == NSIM_DEV_PORT_TYPE_PF; in nsim_dev_port_is_pf()
346 static inline bool nsim_dev_port_is_vf(struct nsim_dev_port *nsim_dev_port) in nsim_dev_port_is_vf() argument
348 return nsim_dev_port->port_type == NSIM_DEV_PORT_TYPE_VF; in nsim_dev_port_is_vf()
Dnetdev.c245 return &ns->nsim_dev_port->devlink_port; in nsim_get_devlink_port()
344 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port) in nsim_create() argument
360 ns->nsim_dev_port = nsim_dev_port; in nsim_create()
364 if (nsim_dev_port_is_pf(nsim_dev_port)) in nsim_create()
383 if (nsim_dev_port_is_pf(ns->nsim_dev_port)) { in nsim_destroy()
388 if (nsim_dev_port_is_pf(ns->nsim_dev_port)) in nsim_destroy()
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()
Dethtool.c179 ethtool = debugfs_create_dir("ethtool", ns->nsim_dev_port->ddir); in nsim_ethtool_init()
Dipsec.c287 ns->nsim_dev_port->ddir, ns, in nsim_ipsec_init()
Dbpf.c621 struct dentry *ddir = ns->nsim_dev_port->ddir; in nsim_bpf_init()