/kernel/linux/linux-5.10/drivers/net/ |
H A D | tun.c | 6 * $Id: tun.c,v 1.15 2002/03/01 02:44:24 maxk Exp $ 30 #define DRV_NAME "tun" 143 struct tun_struct __rcu *tun; member 169 struct tun_struct *tun; member 233 static void tun_flow_init(struct tun_struct *tun); 234 static void tun_flow_uninit(struct tun_struct *tun); 276 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument 282 netif_tx_napi_add(tun->dev, &tfile->napi, tun_napi_poll, in tun_napi_init() 312 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument 314 return tun in tun_legacy_is_little_endian() 318 tun_get_vnet_be(struct tun_struct *tun, int __user *argp) tun_get_vnet_be() argument 328 tun_set_vnet_be(struct tun_struct *tun, int __user *argp) tun_set_vnet_be() argument 343 tun_legacy_is_little_endian(struct tun_struct *tun) tun_legacy_is_little_endian() argument 348 tun_get_vnet_be(struct tun_struct *tun, int __user *argp) tun_get_vnet_be() argument 353 tun_set_vnet_be(struct tun_struct *tun, int __user *argp) tun_set_vnet_be() argument 359 tun_is_little_endian(struct tun_struct *tun) tun_is_little_endian() argument 365 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) tun16_to_cpu() argument 370 cpu_to_tun16(struct tun_struct *tun, u16 val) cpu_to_tun16() argument 391 tun_flow_create(struct tun_struct *tun, struct hlist_head *head, u32 rxhash, u16 queue_index) tun_flow_create() argument 412 tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) tun_flow_delete() argument 421 tun_flow_flush(struct tun_struct *tun) tun_flow_flush() argument 436 tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) tun_flow_delete_by_queue() argument 455 struct tun_struct *tun = from_timer(tun, t, flow_gc_timer); tun_flow_cleanup() local 485 tun_flow_update(struct tun_struct *tun, u32 rxhash, struct tun_file *tfile) tun_flow_update() argument 535 tun_automq_select_queue(struct tun_struct *tun, struct sk_buff *skb) tun_automq_select_queue() argument 556 tun_ebpf_select_queue(struct tun_struct *tun, struct sk_buff *skb) tun_ebpf_select_queue() argument 576 struct tun_struct *tun = netdev_priv(dev); tun_select_queue() local 589 tun_not_capable(struct tun_struct *tun) tun_not_capable() argument 599 tun_set_real_num_queues(struct tun_struct *tun) tun_set_real_num_queues() argument 605 tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) tun_disable_queue() argument 614 struct tun_struct *tun = tfile->detached; tun_enable_queue() local 650 struct tun_struct *tun; __tun_detach() local 706 struct tun_struct *tun; tun_detach() local 723 struct tun_struct *tun = netdev_priv(dev); tun_detach_all() local 765 tun_attach(struct tun_struct *tun, struct file *file, bool skip_filter, bool napi, bool napi_frags, bool publish_tun) tun_attach() argument 862 struct tun_struct *tun; tun_get() local 873 tun_put(struct tun_struct *tun) tun_put() argument 988 struct tun_struct *tun = netdev_priv(dev); tun_net_init() local 1051 tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb) tun_automq_xmit() argument 1069 run_ebpf_filter(struct tun_struct *tun, struct sk_buff *skb, int len) run_ebpf_filter() argument 1084 struct tun_struct *tun = netdev_priv(dev); tun_net_xmit() local 1163 struct tun_struct *tun = netdev_priv(dev); tun_net_fix_features() local 1170 struct tun_struct *tun = netdev_priv(dev); tun_set_headroom() local 1182 struct tun_struct *tun = netdev_priv(dev); tun_net_get_stats64() local 1217 struct tun_struct *tun = netdev_priv(dev); tun_xdp_set() local 1257 struct tun_struct *tun = netdev_priv(dev); tun_net_change_carrier() local 1293 struct tun_struct *tun = netdev_priv(dev); tun_xdp_xmit() local 1369 tun_flow_init(struct tun_struct *tun) tun_flow_init() argument 1382 tun_flow_uninit(struct tun_struct *tun) tun_flow_uninit() argument 1394 struct tun_struct *tun = netdev_priv(dev); tun_net_initialize() local 1427 tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) tun_sock_writeable() argument 1440 struct tun_struct *tun = tun_get(tfile); tun_chr_poll() local 1552 tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, struct sk_buff *skb, int more) tun_rx_batched() argument 1592 tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, int len, int noblock, bool zerocopy) tun_can_build_skb() argument 1633 tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, struct xdp_buff *xdp, u32 act) tun_xdp_act() argument 1665 tun_build_skb(struct tun_struct *tun, struct tun_file *tfile, struct iov_iter *from, struct virtio_net_hdr *hdr, int len, int *skb_xdp) tun_build_skb() argument 1755 tun_get_user(struct tun_struct *tun, struct tun_file *tfile, void *msg_control, struct iov_iter *from, int noblock, bool more) tun_get_user() argument 2048 struct tun_struct *tun = tun_get(tfile); tun_chr_write_iter() local 2064 tun_put_user_xdp(struct tun_struct *tun, struct tun_file *tfile, struct xdp_frame *xdp_frame, struct iov_iter *iter) tun_put_user_xdp() argument 2099 tun_put_user(struct tun_struct *tun, struct tun_file *tfile, struct sk_buff *skb, struct iov_iter *iter) tun_put_user() argument 2236 tun_do_read(struct tun_struct *tun, struct tun_file *tfile, struct iov_iter *to, int noblock, void *ptr) tun_do_read() argument 2277 struct tun_struct *tun = tun_get(tfile); tun_chr_read_iter() local 2303 __tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, struct bpf_prog *prog) __tun_set_ebpf() argument 2330 struct tun_struct *tun = netdev_priv(dev); tun_free_netdev() local 2344 struct tun_struct *tun = netdev_priv(dev); tun_setup() local 2387 struct tun_struct *tun = netdev_priv(dev); tun_fill_info() local 2457 tun_xdp_one(struct tun_struct *tun, struct tun_file *tfile, struct xdp_buff *xdp, int *flush, struct tun_page *tpage) tun_xdp_one() argument 2569 struct tun_struct *tun = tun_get(tfile); tun_sendmsg() local 2616 struct tun_struct *tun = tun_get(tfile); tun_recvmsg() local 2667 struct tun_struct *tun; tun_peek_len() local 2693 tun_flags(struct tun_struct *tun) tun_flags() argument 2701 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); tun_show_flags() local 2708 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); tun_show_owner() local 2718 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); tun_show_group() local 2742 struct tun_struct *tun; tun_set_iff() local 2878 tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) tun_get_iff() argument 2888 set_offload(struct tun_struct *tun, unsigned long arg) set_offload() argument 2924 tun_detach_filter(struct tun_struct *tun, int n) tun_detach_filter() argument 2939 tun_attach_filter(struct tun_struct *tun) tun_attach_filter() argument 2959 tun_set_sndbuf(struct tun_struct *tun) tun_set_sndbuf() argument 2973 struct tun_struct *tun; tun_set_queue() local 3006 tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, void __user *data) tun_set_ebpf() argument 3070 struct tun_struct *tun; __tun_chr_ioctl() local 3494 struct tun_struct *tun; tun_chr_show_fdinfo() local 3554 struct tun_struct *tun = netdev_priv(dev); tun_get_link_ksettings() local 3563 struct tun_struct *tun = netdev_priv(dev); tun_set_link_ksettings() local 3571 struct tun_struct *tun = netdev_priv(dev); tun_get_drvinfo() local 3588 struct tun_struct *tun = netdev_priv(dev); tun_get_msglevel() local 3595 struct tun_struct *tun = netdev_priv(dev); tun_set_msglevel() local 3603 struct tun_struct *tun = netdev_priv(dev); tun_get_coalesce() local 3613 struct tun_struct *tun = netdev_priv(dev); tun_set_coalesce() local 3636 tun_queue_resize(struct tun_struct *tun) tun_queue_resize() argument 3667 struct tun_struct *tun = netdev_priv(dev); tun_device_event() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H A D | tun.c | 6 * $Id: tun.c,v 1.15 2002/03/01 02:44:24 maxk Exp $ 30 #define DRV_NAME "tun" 132 struct tun_struct __rcu *tun; member 158 struct tun_struct *tun; member 222 static void tun_flow_init(struct tun_struct *tun); 223 static void tun_flow_uninit(struct tun_struct *tun); 265 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument 271 netif_napi_add_tx(tun->dev, &tfile->napi, tun_napi_poll); in tun_napi_init() 300 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument 302 return tun in tun_legacy_is_little_endian() 306 tun_get_vnet_be(struct tun_struct *tun, int __user *argp) tun_get_vnet_be() argument 316 tun_set_vnet_be(struct tun_struct *tun, int __user *argp) tun_set_vnet_be() argument 331 tun_legacy_is_little_endian(struct tun_struct *tun) tun_legacy_is_little_endian() argument 336 tun_get_vnet_be(struct tun_struct *tun, int __user *argp) tun_get_vnet_be() argument 341 tun_set_vnet_be(struct tun_struct *tun, int __user *argp) tun_set_vnet_be() argument 347 tun_is_little_endian(struct tun_struct *tun) tun_is_little_endian() argument 353 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) tun16_to_cpu() argument 358 cpu_to_tun16(struct tun_struct *tun, u16 val) cpu_to_tun16() argument 379 tun_flow_create(struct tun_struct *tun, struct hlist_head *head, u32 rxhash, u16 queue_index) tun_flow_create() argument 400 tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) tun_flow_delete() argument 409 tun_flow_flush(struct tun_struct *tun) tun_flow_flush() argument 424 tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) tun_flow_delete_by_queue() argument 443 struct tun_struct *tun = from_timer(tun, t, flow_gc_timer); tun_flow_cleanup() local 473 tun_flow_update(struct tun_struct *tun, u32 rxhash, struct tun_file *tfile) tun_flow_update() argument 523 tun_automq_select_queue(struct tun_struct *tun, struct sk_buff *skb) tun_automq_select_queue() argument 544 tun_ebpf_select_queue(struct tun_struct *tun, struct sk_buff *skb) tun_ebpf_select_queue() argument 564 struct tun_struct *tun = netdev_priv(dev); tun_select_queue() local 577 tun_not_capable(struct tun_struct *tun) tun_not_capable() argument 587 tun_set_real_num_queues(struct tun_struct *tun) tun_set_real_num_queues() argument 593 tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) tun_disable_queue() argument 602 struct tun_struct *tun = tfile->detached; tun_enable_queue() local 638 struct tun_struct *tun; __tun_detach() local 695 struct tun_struct *tun; tun_detach() local 712 struct tun_struct *tun = netdev_priv(dev); tun_detach_all() local 754 tun_attach(struct tun_struct *tun, struct file *file, bool skip_filter, bool napi, bool napi_frags, bool publish_tun) tun_attach() argument 851 struct tun_struct *tun; tun_get() local 862 tun_put(struct tun_struct *tun) tun_put() argument 977 struct tun_struct *tun = netdev_priv(dev); tun_net_init() local 1040 tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb) tun_automq_xmit() argument 1058 run_ebpf_filter(struct tun_struct *tun, struct sk_buff *skb, int len) run_ebpf_filter() argument 1073 struct tun_struct *tun = netdev_priv(dev); tun_net_xmit() local 1170 struct tun_struct *tun = netdev_priv(dev); tun_net_fix_features() local 1177 struct tun_struct *tun = netdev_priv(dev); tun_set_headroom() local 1188 struct tun_struct *tun = netdev_priv(dev); tun_net_get_stats64() local 1199 struct tun_struct *tun = netdev_priv(dev); tun_xdp_set() local 1239 struct tun_struct *tun = netdev_priv(dev); tun_net_change_carrier() local 1275 struct tun_struct *tun = netdev_priv(dev); tun_xdp_xmit() local 1354 tun_flow_init(struct tun_struct *tun) tun_flow_init() argument 1367 tun_flow_uninit(struct tun_struct *tun) tun_flow_uninit() argument 1379 struct tun_struct *tun = netdev_priv(dev); tun_net_initialize() local 1417 tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) tun_sock_writeable() argument 1430 struct tun_struct *tun = tun_get(tfile); tun_chr_poll() local 1545 tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, struct sk_buff *skb, int more) tun_rx_batched() argument 1585 tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, int len, int noblock, bool zerocopy) tun_can_build_skb() argument 1626 tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, struct xdp_buff *xdp, u32 act) tun_xdp_act() argument 1664 tun_build_skb(struct tun_struct *tun, struct tun_file *tfile, struct iov_iter *from, struct virtio_net_hdr *hdr, int len, int *skb_xdp) tun_build_skb() argument 1750 tun_get_user(struct tun_struct *tun, struct tun_file *tfile, void *msg_control, struct iov_iter *from, int noblock, bool more) tun_get_user() argument 2045 struct tun_struct *tun = tun_get(tfile); tun_chr_write_iter() local 2061 tun_put_user_xdp(struct tun_struct *tun, struct tun_file *tfile, struct xdp_frame *xdp_frame, struct iov_iter *iter) tun_put_user_xdp() argument 2092 tun_put_user(struct tun_struct *tun, struct tun_file *tfile, struct sk_buff *skb, struct iov_iter *iter) tun_put_user() argument 2223 tun_do_read(struct tun_struct *tun, struct tun_file *tfile, struct iov_iter *to, int noblock, void *ptr) tun_do_read() argument 2264 struct tun_struct *tun = tun_get(tfile); tun_chr_read_iter() local 2290 __tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, struct bpf_prog *prog) __tun_set_ebpf() argument 2317 struct tun_struct *tun = netdev_priv(dev); tun_free_netdev() local 2330 struct tun_struct *tun = netdev_priv(dev); tun_setup() local 2373 struct tun_struct *tun = netdev_priv(dev); tun_fill_info() local 2443 tun_xdp_one(struct tun_struct *tun, struct tun_file *tfile, struct xdp_buff *xdp, int *flush, struct tun_page *tpage) tun_xdp_one() argument 2566 struct tun_struct *tun = tun_get(tfile); tun_sendmsg() local 2618 struct tun_struct *tun = tun_get(tfile); tun_recvmsg() local 2669 struct tun_struct *tun; tun_peek_len() local 2695 tun_flags(struct tun_struct *tun) tun_flags() argument 2703 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); tun_flags_show() local 2710 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); owner_show() local 2720 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); group_show() local 2744 struct tun_struct *tun; tun_set_iff() local 2883 tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) tun_get_iff() argument 2893 set_offload(struct tun_struct *tun, unsigned long arg) set_offload() argument 2935 tun_detach_filter(struct tun_struct *tun, int n) tun_detach_filter() argument 2950 tun_attach_filter(struct tun_struct *tun) tun_attach_filter() argument 2970 tun_set_sndbuf(struct tun_struct *tun) tun_set_sndbuf() argument 2984 struct tun_struct *tun; tun_set_queue() local 3017 tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, void __user *data) tun_set_ebpf() argument 3081 struct tun_struct *tun; __tun_chr_ioctl() local 3515 struct tun_struct *tun; tun_chr_show_fdinfo() local 3575 struct tun_struct *tun = netdev_priv(dev); tun_get_link_ksettings() local 3584 struct tun_struct *tun = netdev_priv(dev); tun_set_link_ksettings() local 3592 struct tun_struct *tun = netdev_priv(dev); tun_get_drvinfo() local 3609 struct tun_struct *tun = netdev_priv(dev); tun_get_msglevel() local 3616 struct tun_struct *tun = netdev_priv(dev); tun_set_msglevel() local 3626 struct tun_struct *tun = netdev_priv(dev); tun_get_coalesce() local 3638 struct tun_struct *tun = netdev_priv(dev); tun_set_coalesce() local 3661 tun_queue_resize(struct tun_struct *tun) tun_queue_resize() argument 3692 struct tun_struct *tun = netdev_priv(dev); tun_device_event() local [all...] |
/kernel/linux/linux-5.10/net/qrtr/ |
H A D | tun.c | 21 struct qrtr_tun *tun = container_of(ep, struct qrtr_tun, ep); in qrtr_tun_send() local 23 skb_queue_tail(&tun->queue, skb); in qrtr_tun_send() 26 wake_up_interruptible(&tun->readq); in qrtr_tun_send() 33 struct qrtr_tun *tun; in qrtr_tun_open() local 36 tun = kzalloc(sizeof(*tun), GFP_KERNEL); in qrtr_tun_open() 37 if (!tun) in qrtr_tun_open() 40 skb_queue_head_init(&tun->queue); in qrtr_tun_open() 41 init_waitqueue_head(&tun->readq); in qrtr_tun_open() 43 tun in qrtr_tun_open() 62 struct qrtr_tun *tun = filp->private_data; qrtr_tun_read_iter() local 88 struct qrtr_tun *tun = filp->private_data; qrtr_tun_write_iter() local 116 struct qrtr_tun *tun = filp->private_data; qrtr_tun_poll() local 129 struct qrtr_tun *tun = filp->private_data; qrtr_tun_release() local [all...] |
H A D | Makefile | 7 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o 8 qrtr-tun-y := tun.o
|
/kernel/linux/linux-6.6/net/qrtr/ |
H A D | tun.c | 21 struct qrtr_tun *tun = container_of(ep, struct qrtr_tun, ep); in qrtr_tun_send() local 23 skb_queue_tail(&tun->queue, skb); in qrtr_tun_send() 26 wake_up_interruptible(&tun->readq); in qrtr_tun_send() 33 struct qrtr_tun *tun; in qrtr_tun_open() local 36 tun = kzalloc(sizeof(*tun), GFP_KERNEL); in qrtr_tun_open() 37 if (!tun) in qrtr_tun_open() 40 skb_queue_head_init(&tun->queue); in qrtr_tun_open() 41 init_waitqueue_head(&tun->readq); in qrtr_tun_open() 43 tun in qrtr_tun_open() 62 struct qrtr_tun *tun = filp->private_data; qrtr_tun_read_iter() local 88 struct qrtr_tun *tun = filp->private_data; qrtr_tun_write_iter() local 116 struct qrtr_tun *tun = filp->private_data; qrtr_tun_poll() local 129 struct qrtr_tun *tun = filp->private_data; qrtr_tun_release() local [all...] |
H A D | Makefile | 7 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o 8 qrtr-tun-y := tun.o
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | tunnel_conf.c | 392 return __nfp_tun_has_route(&priv->tun.neigh_off_list_v4, in nfp_tun_has_route_v4() 393 &priv->tun.neigh_off_lock_v4, ipv4_addr, in nfp_tun_has_route_v4() 402 return __nfp_tun_has_route(&priv->tun.neigh_off_list_v6, in nfp_tun_has_route_v6() 403 &priv->tun.neigh_off_lock_v6, ipv6_addr, in nfp_tun_has_route_v6() 412 __nfp_tun_add_route_to_cache(&priv->tun.neigh_off_list_v4, in nfp_tun_add_route_to_cache_v4() 413 &priv->tun.neigh_off_lock_v4, ipv4_addr, in nfp_tun_add_route_to_cache_v4() 422 __nfp_tun_add_route_to_cache(&priv->tun.neigh_off_list_v6, in nfp_tun_add_route_to_cache_v6() 423 &priv->tun.neigh_off_lock_v6, ipv6_addr, in nfp_tun_add_route_to_cache_v6() 432 __nfp_tun_del_route_from_cache(&priv->tun.neigh_off_list_v4, in nfp_tun_del_route_from_cache_v4() 433 &priv->tun in nfp_tun_del_route_from_cache_v4() [all...] |
/kernel/linux/linux-5.10/drivers/media/tuners/ |
H A D | tuner-simple.c | 115 struct tunertype *tun; member 239 struct tunertype *tun = priv->tun; in simple_tuner_params() local 242 for (i = 0; i < tun->count; i++) in simple_tuner_params() 243 if (desired_type == tun->params[i].type) in simple_tuner_params() 247 if (i == tun->count) { in simple_tuner_params() 254 tuner_param_name(tun->params[i].type)); in simple_tuner_params() 256 return &tun->params[i]; in simple_tuner_params() 667 struct tunertype *tun; in simple_set_radio_freq() local 676 tun in simple_set_radio_freq() 851 struct tunertype *tun = priv->tun; simple_dvb_configure() local [all...] |
/kernel/linux/linux-6.6/drivers/media/tuners/ |
H A D | tuner-simple.c | 115 struct tunertype *tun; member 239 struct tunertype *tun = priv->tun; in simple_tuner_params() local 242 for (i = 0; i < tun->count; i++) in simple_tuner_params() 243 if (desired_type == tun->params[i].type) in simple_tuner_params() 247 if (i == tun->count) { in simple_tuner_params() 254 tuner_param_name(tun->params[i].type)); in simple_tuner_params() 256 return &tun->params[i]; in simple_tuner_params() 667 struct tunertype *tun; in simple_set_radio_freq() local 676 tun in simple_set_radio_freq() 851 struct tunertype *tun = priv->tun; simple_dvb_configure() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | tunnel_conf.c | 739 app_priv = container_of(nb, struct nfp_flower_priv, tun.neigh_nb); in nfp_tun_neigh_event_handler() 852 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list() 854 list_for_each_safe(ptr, storage, &priv->tun.ipv4_off_list) { in nfp_tun_write_ipv4_list() 856 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list() 864 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list() 877 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off() 878 list_for_each_safe(ptr, storage, &priv->tun.ipv4_off_list) { in nfp_tunnel_add_ipv4_off() 882 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off() 889 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off() 895 list_add_tail(&entry->list, &priv->tun in nfp_tunnel_add_ipv4_off() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tun.c | 47 fd = open("/dev/net/tun", O_RDWR); in tun_alloc() 49 fprintf(stderr, "can't open tun: %s\n", strerror(errno)); in tun_alloc() 105 FIXTURE(tun) in FIXTURE() 111 FIXTURE_SETUP(tun) in FIXTURE_SETUP() 122 FIXTURE_TEARDOWN(tun) in FIXTURE_TEARDOWN() 130 TEST_F(tun, delete_detach_close) { in TEST_F() 136 TEST_F(tun, detach_delete_close) { in TEST_F() 141 TEST_F(tun, detach_close_delete) { in TEST_F() 148 TEST_F(tun, reattach_delete_close) { in TEST_F() 154 TEST_F(tun, reattach_close_delet [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 263 * @tun: tunneled or non-tunneled packet 267 ice_fdir_remap_entries(struct ice_fd_hw_prof *prof, int tun, int idx) in ice_fdir_remap_entries() argument 269 if (idx != prof->cnt && tun < ICE_FD_HW_SEG_MAX) { in ice_fdir_remap_entries() 275 old_entry_h = prof->entry_h[i + 1][tun]; in ice_fdir_remap_entries() 276 prof->entry_h[i][tun] = old_entry_h; in ice_fdir_remap_entries() 280 prof->entry_h[i][tun] = 0; in ice_fdir_remap_entries() 299 int tun, i; in ice_fdir_rem_adq_chnl() local 304 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun in ice_fdir_rem_adq_chnl() 359 int tun; ice_fdir_erase_flow_from_hw() local 395 int tun, i; ice_fdir_rem_flow() local 435 int tun; ice_fdir_replay_flows() local 621 ice_fdir_set_hw_fltr_rule(struct ice_pf *pf, struct ice_flow_seg_info *seg, enum ice_fltr_ptype flow, enum ice_fd_hw_seg tun) ice_fdir_set_hw_fltr_rule() argument 1431 int tun; ice_fdir_write_all_fltr() local [all...] |
H A D | ice_virtchnl_fdir.c | 476 * @tun: 0 implies non-tunnel type filter, 1 implies tunnel type filter 479 ice_vc_fdir_rem_prof(struct ice_vf *vf, enum ice_fltr_ptype flow, int tun) in ice_vc_fdir_rem_prof() argument 503 if (!fdir->prof_entry_cnt[flow][tun]) in ice_vc_fdir_rem_prof() 507 flow, tun ? ICE_FLTR_PTYPE_MAX : 0); in ice_vc_fdir_rem_prof() 509 for (i = 0; i < fdir->prof_entry_cnt[flow][tun]; i++) in ice_vc_fdir_rem_prof() 510 if (vf_prof->entry_h[i][tun]) { in ice_vc_fdir_rem_prof() 515 vf_prof->entry_h[i][tun]); in ice_vc_fdir_rem_prof() 516 vf_prof->entry_h[i][tun] = 0; in ice_vc_fdir_rem_prof() 520 devm_kfree(dev, vf_prof->fdir_seg[tun]); in ice_vc_fdir_rem_prof() 521 vf_prof->fdir_seg[tun] in ice_vc_fdir_rem_prof() 637 ice_vc_fdir_write_flow_prof(struct ice_vf *vf, enum ice_fltr_ptype flow, struct ice_flow_seg_info *seg, int tun) ice_vc_fdir_write_flow_prof() argument 752 ice_vc_fdir_config_input_set(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, struct virtchnl_fdir_fltr_conf *conf, int tun) ice_vc_fdir_config_input_set() argument [all...] |
/kernel/linux/linux-5.10/include/net/tc_act/ |
H A D | tc_tunnel_key.h | 74 struct ip_tunnel_info *tun = tcf_tunnel_info(a); in tcf_tunnel_info_copy() local 76 if (tun) { in tcf_tunnel_info_copy() 77 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy() 78 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
|
/kernel/linux/linux-6.6/include/net/tc_act/ |
H A D | tc_tunnel_key.h | 74 struct ip_tunnel_info *tun = tcf_tunnel_info(a); in tcf_tunnel_info_copy() local 76 if (tun) { in tcf_tunnel_info_copy() 77 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy() 78 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mirror_gre_scale.sh | 58 local tun=gt6-$i 68 tunnel_create $tun ip6gretap \ 83 action mirred egress mirror dev $tun 97 local tun=gt6-$i 106 tunnel_destroy $tun
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mirror_gre_scale.sh | 58 local tun=gt6-$i 68 tunnel_create $tun ip6gretap \ 83 action mirred egress mirror dev $tun 97 local tun=gt6-$i 106 tunnel_destroy $tun
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 284 int tun; in ice_fdir_erase_flow_from_hw() local 289 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_erase_flow_from_hw() 293 prof_id = flow + tun * ICE_FLTR_PTYPE_MAX; in ice_fdir_erase_flow_from_hw() 297 if (!prof->entry_h[j][tun] || !prof->vsi_h[j]) in ice_fdir_erase_flow_from_hw() 301 ice_flow_rem_entry(hw, blk, prof->entry_h[j][tun]); in ice_fdir_erase_flow_from_hw() 302 prof->entry_h[j][tun] = 0; in ice_fdir_erase_flow_from_hw() 320 int tun, i; in ice_fdir_rem_flow() local 329 for (tun in ice_fdir_rem_flow() 360 int tun; ice_fdir_replay_flows() local 524 ice_fdir_set_hw_fltr_rule(struct ice_pf *pf, struct ice_flow_seg_info *seg, enum ice_fltr_ptype flow, enum ice_fd_hw_seg tun) ice_fdir_set_hw_fltr_rule() argument 1265 int tun; ice_fdir_write_all_fltr() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ipip.c | 14 struct ip_tunnel *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms4() local 16 return tun->parms; in mlxsw_sp_ipip_netdev_parms4() 22 struct ip6_tnl *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms6() local 24 return tun->parms; in mlxsw_sp_ipip_netdev_parms6()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ipip.c | 14 struct ip_tunnel *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms4() local 16 return tun->parms; in mlxsw_sp_ipip_netdev_parms4() 22 struct ip6_tnl *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms6() local 24 return tun->parms; in mlxsw_sp_ipip_netdev_parms6()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
H A D | mad.c | 535 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1971 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1972 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1973 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2128 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2134 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2162 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2164 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2181 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2233 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all...] |
H A D | cq.c | 590 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data() 591 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data() 592 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data() 597 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 598 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 599 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 602 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 603 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/ |
H A D | mad.c | 536 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1974 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1975 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1976 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2131 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2137 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2165 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2167 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2184 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2236 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all...] |
H A D | cq.c | 590 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data() 591 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data() 592 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data() 597 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 598 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 599 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 602 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 603 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_main.c | 414 struct qed_tunnel_info *tun = &cdev->tunnel; in qed_fill_dev_info() local 419 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 420 tun->vxlan.b_mode_enabled) in qed_fill_dev_info() 423 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info() 424 tun->l2_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 425 tun->ip_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info() 428 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info() 429 tun in qed_fill_dev_info() [all...] |