Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/netdevsim/
H 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 …]
H A Dnetdevsim.h104 struct nsim_dev *nsim_dev; member
160 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev,
165 int nsim_bpf_dev_init(struct nsim_dev *nsim_dev);
166 void nsim_bpf_dev_exit(struct nsim_dev *nsim_dev);
175 static inline int nsim_bpf_dev_init(struct nsim_dev *nsim_dev) in nsim_bpf_dev_init() argument
231 void nsim_dev_health_exit(struct nsim_dev *nsim_dev);
252 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev);
253 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev);
256 int nsim_dev_psample_init(struct nsim_dev *nsim_dev);
257 void nsim_dev_psample_exit(struct nsim_dev *nsim_dev);
[all …]
H A Dudp_tunnels.c132 int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev, in nsim_udp_tunnels_info_create() argument
138 if (nsim_dev->udp_ports.shared && nsim_dev->udp_ports.open_only) { in nsim_udp_tunnels_info_create()
139 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()
144 if (!nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
177 if (nsim_dev->udp_ports.sync_all) { in nsim_udp_tunnels_info_create()
186 if (nsim_dev->udp_ports.open_only) in nsim_udp_tunnels_info_create()
188 if (nsim_dev->udp_ports.ipv4_only) in nsim_udp_tunnels_info_create()
190 if (nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
208 void nsim_udp_tunnels_debugfs_create(struct nsim_dev *nsim_dev) in nsim_udp_tunnels_debugfs_create() argument
217 &nsim_dev->udp_ports.shared); in nsim_udp_tunnels_debugfs_create()
[all …]
H 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 …]
H 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 …]
H A Dnetdev.c151 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_mac() local
165 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_vlan() local
171 nsim_dev->vfconfigs[vf].qos = qos; in nsim_set_vf_vlan()
180 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rate() local
199 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_spoofchk() local
211 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_rss_query_en() local
223 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_trust() local
236 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_get_vf_config() local
259 struct nsim_dev *nsim_dev = ns->nsim_dev; in nsim_set_vf_link_state() local
1006 nsim_create(struct nsim_dev *nsim_dev, struct nsim_dev_port *nsim_dev_port) in nsim_create() argument
[all …]
H 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()
407 int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_init() argument
409 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_init()
410 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_init()
421 hwstats->ddir = debugfs_create_dir("hwstats", nsim_dev->ddir); in nsim_dev_hwstats_init()
473 void nsim_dev_hwstats_exit(struct nsim_dev *nsim_dev) in nsim_dev_hwstats_exit() argument
475 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_exit()
476 struct net *net = nsim_dev_net(nsim_dev); in nsim_dev_hwstats_exit()
H 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()
H 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()