Home
last modified time | relevance | path

Searched refs:nsim_dev (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/netdevsim/
A Ddev.c100 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_take_snapshot_write() local
141 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_trap_fa_cookie_read() local
248 struct nsim_dev *nsim_dev; in nsim_bus_dev_max_vfs_write() local
651 struct nsim_dev *nsim_dev; member
781 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_dev_trap_report() local
829 struct nsim_dev *nsim_dev; in nsim_dev_trap_report_work() local
833 nsim_dev = nsim_trap_data->nsim_dev; in nsim_dev_trap_report_work()
883 nsim_trap_data->nsim_dev = nsim_dev; in nsim_dev_traps_init()
1177 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_share_set() local
1193 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_max_set() local
[all …]
A Dnetdev.c85 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_mac() local
99 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_vlan() local
105 nsim_dev->vfconfigs[vf].qos = qos; in nsim_set_vf_vlan()
114 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rate() local
133 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_spoofchk() local
145 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rss_query_en() local
157 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_trust() local
170 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_get_vf_config() local
193 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_link_state() local
344 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port) in nsim_create() argument
[all …]
A Dnetdevsim.h74 struct nsim_dev *nsim_dev; member
113 void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev);
114 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,
119 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);
120 void nsim_bpf_dev_exit(struct nsim_dev *nsim_dev);
129 static inline int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
134 static inline void nsim_bpf_dev_exit(struct nsim_dev *nsim_dev) in nsim_bpf_dev_exit() argument
185 void nsim_dev_health_exit(struct nsim_dev *nsim_dev);
188 int nsim_dev_psample_init(struct nsim_dev *nsim_dev);
189 void nsim_dev_psample_exit(struct nsim_dev *nsim_dev);
[all …]
A Dudp_tunnels.c130 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev, in nsim_udp_tunnels_info_create() argument
136 if (nsim_dev->udp_ports.shared && nsim_dev->udp_ports.open_only) { in nsim_udp_tunnels_info_create()
137 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()
142 if (!nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
175 if (nsim_dev->udp_ports.sync_all) { in nsim_udp_tunnels_info_create()
184 if (nsim_dev->udp_ports.open_only) in nsim_udp_tunnels_info_create()
186 if (nsim_dev->udp_ports.ipv4_only) in nsim_udp_tunnels_info_create()
188 if (nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
203 void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev) in nsim_udp_tunnels_debugfs_create() argument
212 &nsim_dev->udp_ports.shared); in nsim_udp_tunnels_debugfs_create()
[all …]
A Dpsample.c133 static int nsim_dev_psample_enable(struct nsim_dev *nsim_dev) in nsim_dev_psample_enable() argument
142 devlink = priv_to_devlink(nsim_dev); in nsim_dev_psample_enable()
156 static int nsim_dev_psample_disable(struct nsim_dev *nsim_dev) in nsim_dev_psample_disable() argument
175 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_psample_enable_write() local
184 err = nsim_dev_psample_enable(nsim_dev); in nsim_dev_psample_enable_write()
198 int nsim_dev_psample_init(struct nsim_dev *nsim_dev) in nsim_dev_psample_init() argument
206 nsim_dev->psample = psample; in nsim_dev_psample_init()
253 kfree(nsim_dev->psample); in nsim_dev_psample_init()
257 void nsim_dev_psample_exit(struct nsim_dev *nsim_dev) in nsim_dev_psample_exit() argument
260 if (nsim_dev->psample->is_active) { in nsim_dev_psample_exit()
[all …]
A Dbpf.c30 struct nsim_dev *nsim_dev; member
218 static int nsim_bpf_create_prog(struct nsim_dev *nsim_dev, in nsim_bpf_create_prog() argument
229 state->nsim_dev = nsim_dev; in nsim_bpf_create_prog()
256 struct nsim_dev *nsim_dev = in nsim_bpf_verifier_prep() local
259 if (!nsim_dev->bpf_bind_accept) in nsim_bpf_verifier_prep()
582 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
590 nsim_dev->ddir); in nsim_bpf_dev_init()
594 nsim_dev->bpf_dev = bpf_offload_dev_create(&nsim_bpf_dev_ops, nsim_dev); in nsim_bpf_dev_init()
599 nsim_dev->bpf_bind_accept = true; in nsim_bpf_dev_init()
601 &nsim_dev->bpf_bind_accept); in nsim_bpf_dev_init()
[all …]
A Dhealth.c230 int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink) in nsim_dev_health_init() argument
232 struct nsim_dev_health *health = &nsim_dev->health; in nsim_dev_health_init()
251 health->ddir = debugfs_create_dir("health", nsim_dev->ddir); in nsim_dev_health_init()
275 void nsim_dev_health_exit(struct nsim_dev *nsim_dev) in nsim_dev_health_exit() argument
277 struct nsim_dev_health *health = &nsim_dev->health; in nsim_dev_health_exit()
A Dfib.c1486 nsim_fib_debugfs_init(struct nsim_fib_data *data, struct nsim_dev *nsim_dev) in nsim_fib_debugfs_init() argument
1488 data->ddir = debugfs_create_dir("fib", nsim_dev->ddir); in nsim_fib_debugfs_init()
1518 struct nsim_dev *nsim_dev; in nsim_fib_create() local
1526 nsim_dev = devlink_priv(devlink); in nsim_fib_create()
1527 err = nsim_fib_debugfs_init(data, nsim_dev); in nsim_fib_create()

Completed in 24 milliseconds