Home
last modified time | relevance | path

Searched refs:tun (Results 1 – 25 of 57) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/net/
H A Dtun.c143 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->flags & TUN_VNET_BE ? false : in tun_legacy_is_little_endian()
318 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be() argument
320 int be = !!(tun->flags & TUN_VNET_BE); in tun_get_vnet_be()
[all …]
/OK3568_Linux_fs/kernel/net/qrtr/
H A Dtun.c21 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->ep.xmit = qrtr_tun_send; in qrtr_tun_open()
45 filp->private_data = tun; in qrtr_tun_open()
[all …]
H A DMakefile6 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o
7 qrtr-tun-y := tun.o
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c392 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.neigh_off_lock_v4, ipv4_addr, in nfp_tun_del_route_from_cache_v4()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/tuners/
H A Dtuner-simple.c115 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 = priv->tun; in simple_set_radio_freq()
678 for (j = tun->count-1; j > 0; j--) in simple_set_radio_freq()
[all …]
/OK3568_Linux_fs/kernel/include/net/tc_act/
H A Dtc_tunnel_key.h74 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c284 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 = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_rem_flow()
330 if (!prof->fdir_seg[tun]) in ice_fdir_rem_flow()
332 devm_kfree(ice_hw_to_dev(hw), prof->fdir_seg[tun]); in ice_fdir_rem_flow()
[all …]
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dtuntap.rst27 In order to use the driver a program has to open /dev/net/tun and issue a
34 IP packets (with tun) or ethernet frames (with tap). Which one is being used
37 The package from http://vtun.sourceforge.net/tun contains two simple examples
38 for how to use tun and tap devices. Both programs work like a bridge between
50 mknod /dev/net/tun c 10 200
54 e.g. chmod 0666 /dev/net/tun
60 unprivileged users, then you need the /dev/net/tun device to be usable by
73 modprobe tun
77 /dev/net/tun is being opened.
86 "tun%d"), but (as far as I can see) this can be any valid network device name.
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/mlxsw/
H A Dmirror_gre_scale.sh58 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
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu-helper/
H A Dtunctl.c42 char *tun = "", *file = "/dev/net/tun", *name = argv[0], *end; in main() local
51 tun = optarg; in main()
84 tun = optarg; in main()
109 strncpy(ifr.ifr_name, tun, sizeof(ifr.ifr_name) - 1); in main()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/
H A Dmarvell,xenon-sdhci.txt70 - marvell,xenon-phy-nr-success-tun:
76 - marvell,xenon-phy-tun-step-divider:
87 - marvell,xenon-tun-count:
115 marvell,xenon-tun-count = <11>;
134 marvell,xenon-tun-count = <9>;
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ipip.c14 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()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/vpnc/vpnc/
H A Dlong-help93 --ifmode <tun/tap>
95 * tun: virtual point to point interface (default)
97 Default: tun
98 conf-variable: Interface mode <tun/tap>
H A D0008-include-sysdep.h-before-net-if_tun.h.patch24 #include <net/tun/if_tun.h>
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx4/
H A Dcq.c590 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()
H A Dmad.c535 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 …]
/OK3568_Linux_fs/buildroot/package/vpnc/
H A D0008-sysdep.c-don-t-include-linux-if_tun.h-on-Linux.patch40 #include <net/tun/if_tun.h>
44 /* no header for tun */
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/openvpn/
H A Dopenvpn_2.5.6.bb1 SUMMARY = "A full-featured SSL VPN solution via tun device."
67 RRECOMMENDS:${PN} = "kernel-module-tun"
/OK3568_Linux_fs/yocto/poky/meta/recipes-core/udev/eudev/
H A Dlinks.conf20 M net/tun c 10 200
H A Dpermissions.rules13 KERNEL=="tun", OPTIONS+="ignore:remove"
95 KERNEL=="tun", MODE="0666",
/OK3568_Linux_fs/yocto/poky/meta/recipes-core/busybox/files/
H A Dmdev.conf39 tun[0-9]* 0:0 0660 =net/
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/marvell/
H A Darmada-3720-espressobin-emmc.dts31 marvell,xenon-tun-count = <9>;
H A Darmada-3720-espressobin-v7-emmc.dts54 marvell,xenon-tun-count = <9>;
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/openvpn/openvpn/
H A Dopenvpn17 modprobe tun >/dev/null 2>&1 || true
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_main.c414 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->l2_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
430 tun->ip_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()

123