Home
last modified time | relevance | path

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

/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
245 struct nsim_dev *nsim_dev; in nsim_bus_dev_max_vfs_write() local
669 struct nsim_dev *nsim_dev; member
799 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_dev_trap_report() local
847 struct nsim_dev *nsim_dev; in nsim_dev_trap_report_work() local
851 nsim_dev = nsim_trap_data->nsim_dev; in nsim_dev_trap_report_work()
907 nsim_trap_data->nsim_dev = nsim_dev; in nsim_dev_traps_init()
1207 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_share_set() local
1223 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_max_set() local
[all …]
A Dnetdevsim.h104 struct nsim_dev *nsim_dev; member
146 struct netdevsim *nsim_create(struct nsim_dev *nsim_dev,
155 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,
160 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);
161 void nsim_bpf_dev_exit(struct nsim_dev *nsim_dev);
226 void nsim_dev_health_exit(struct nsim_dev *nsim_dev);
247 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev);
248 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev);
251 int nsim_dev_psample_init(struct nsim_dev *nsim_dev);
252 void nsim_dev_psample_exit(struct nsim_dev *nsim_dev);
[all …]
A Dudp_tunnels.c125 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev, in nsim_udp_tunnels_info_create() argument
131 if (nsim_dev->udp_ports.shared && nsim_dev->udp_ports.open_only) { in nsim_udp_tunnels_info_create()
132 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()
137 if (!nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
169 if (nsim_dev->udp_ports.sync_all) { in nsim_udp_tunnels_info_create()
176 if (nsim_dev->udp_ports.open_only) in nsim_udp_tunnels_info_create()
178 if (nsim_dev->udp_ports.ipv4_only) in nsim_udp_tunnels_info_create()
180 if (nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
198 void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev) in nsim_udp_tunnels_debugfs_create() argument
201 &nsim_dev->udp_ports.sync_all); 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()
581 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
589 nsim_dev->ddir); in nsim_bpf_dev_init()
593 nsim_dev->bpf_dev = bpf_offload_dev_create(&nsim_bpf_dev_ops, nsim_dev); in nsim_bpf_dev_init()
598 nsim_dev->bpf_bind_accept = true; in nsim_bpf_dev_init()
600 &nsim_dev->bpf_bind_accept); in nsim_bpf_dev_init()
[all …]
A Dnetdev.c188 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_mac() local
202 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_vlan() local
208 nsim_dev->vfconfigs[vf].qos = qos; in nsim_set_vf_vlan()
217 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rate() local
236 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_spoofchk() local
248 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rss_query_en() local
260 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_trust() local
273 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_get_vf_config() local
296 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_link_state() local
1079 struct netdevsim *nsim_create(struct nsim_dev *nsim_dev, in nsim_create() argument
[all …]
A Dhwstats.c221 struct nsim_dev *nsim_dev; in nsim_dev_hwstats_enable_ifindex() local
226 nsim_dev = container_of(hwstats, struct nsim_dev, hwstats); in nsim_dev_hwstats_enable_ifindex()
227 net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_enable_ifindex()
404 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_init() argument
406 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_init()
407 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_init()
418 hwstats->ddir = debugfs_create_dir("hwstats", nsim_dev->ddir); in nsim_dev_hwstats_init()
470 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_exit() argument
472 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_exit()
473 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_exit()
A Dhealth.c178 int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink) in nsim_dev_health_init() argument
180 struct nsim_dev_health *health = &nsim_dev->health; in nsim_dev_health_init()
199 health->ddir = debugfs_create_dir("health", nsim_dev->ddir); in nsim_dev_health_init()
223 void nsim_dev_health_exit(struct nsim_dev *nsim_dev) in nsim_dev_health_exit() argument
225 struct nsim_dev_health *health = &nsim_dev->health; in nsim_dev_health_exit()
A Dfib.c1520 nsim_fib_debugfs_init(struct nsim_fib_data *data, struct nsim_dev *nsim_dev) in nsim_fib_debugfs_init() argument
1522 data->ddir = debugfs_create_dir("fib", nsim_dev->ddir); in nsim_fib_debugfs_init()
1556 struct nsim_dev *nsim_dev; in nsim_fib_create() local
1564 nsim_dev = devlink_priv(devlink); in nsim_fib_create()
1565 err = nsim_fib_debugfs_init(data, nsim_dev); in nsim_fib_create()

Completed in 36 milliseconds