Home
last modified time | relevance | path

Searched refs:nsim_dev (Results 1 – 9 of 9) 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
245 struct nsim_dev *nsim_dev; in nsim_bus_dev_max_vfs_write() local
654 struct nsim_dev *nsim_dev; member
784 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_dev_trap_report() local
832 struct nsim_dev *nsim_dev; in nsim_dev_trap_report_work() local
836 nsim_dev = nsim_trap_data->nsim_dev; in nsim_dev_trap_report_work()
892 nsim_trap_data->nsim_dev = nsim_dev; in nsim_dev_traps_init()
1179 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_share_set() local
1195 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_max_set() local
[all …]
A Dnetdevsim.h101 struct nsim_dev *nsim_dev; member
150 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,
155 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);
156 void nsim_bpf_dev_exit(struct nsim_dev *nsim_dev);
165 static inline int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
221 void nsim_dev_health_exit(struct nsim_dev *nsim_dev);
242 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev);
243 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev);
246 int nsim_dev_psample_init(struct nsim_dev *nsim_dev);
247 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 Dnetdev.c135 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_mac() local
149 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_vlan() local
155 nsim_dev->vfconfigs[vf].qos = qos; in nsim_set_vf_vlan()
164 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rate() local
183 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_spoofchk() local
195 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rss_query_en() local
207 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_trust() local
220 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_get_vf_config() local
243 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_link_state() local
728 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port) in nsim_create() argument
[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()
580 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
588 nsim_dev->ddir); in nsim_bpf_dev_init()
592 nsim_dev->bpf_dev = bpf_offload_dev_create(&nsim_bpf_dev_ops, nsim_dev); in nsim_bpf_dev_init()
597 nsim_dev->bpf_bind_accept = true; in nsim_bpf_dev_init()
599 &nsim_dev->bpf_bind_accept); in nsim_bpf_dev_init()
[all …]
A Dhwstats.c221 struct nsim_dev *nsim_dev; in nsim_dev_hwstats_enable_ifindex() local
227 nsim_dev = container_of(hwstats, struct nsim_dev, hwstats); in nsim_dev_hwstats_enable_ifindex()
228 net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_enable_ifindex()
410 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_init() argument
412 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_init()
413 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_init()
424 hwstats->ddir = debugfs_create_dir("hwstats", nsim_dev->ddir); in nsim_dev_hwstats_init()
476 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_exit() argument
478 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_exit()
479 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_exit()
A Dhealth.c176 int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink) in nsim_dev_health_init() argument
178 struct nsim_dev_health *health = &nsim_dev->health; in nsim_dev_health_init()
197 health->ddir = debugfs_create_dir("health", nsim_dev->ddir); in nsim_dev_health_init()
221 void nsim_dev_health_exit(struct nsim_dev *nsim_dev) in nsim_dev_health_exit() argument
223 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 21 milliseconds