Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/
Dtun.c93 #define tun_debug(level, tun, fmt, args...) \ argument
95 if (tun->debug) \
96 netdev_printk(level, tun->dev, fmt, ##args); \
104 #define tun_debug(level, tun, fmt, args...) \ argument
107 netdev_printk(level, tun->dev, fmt, ##args); \
174 struct tun_struct __rcu *tun; member
195 struct tun_struct *tun; member
316 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument
322 netif_napi_add(tun->dev, &tfile->napi, tun_napi_poll, in tun_napi_init()
346 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument
[all …]
DMakefile25 obj-$(CONFIG_TUN) += tun.o
DKconfig292 When a program opens /dev/net/tun, driver creates and registers
301 will be called tun.
/Linux-v4.19/net/qrtr/
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
35 tun = kzalloc(sizeof(*tun), GFP_KERNEL); in qrtr_tun_open()
36 if (!tun) in qrtr_tun_open()
39 skb_queue_head_init(&tun->queue); in qrtr_tun_open()
40 init_waitqueue_head(&tun->readq); in qrtr_tun_open()
42 tun->ep.xmit = qrtr_tun_send; in qrtr_tun_open()
44 filp->private_data = tun; in qrtr_tun_open()
[all …]
DMakefile5 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o
6 qrtr-tun-y := tun.o
/Linux-v4.19/drivers/media/tuners/
Dtuner-simple.c114 struct tunertype *tun; member
238 struct tunertype *tun = priv->tun; in simple_tuner_params() local
241 for (i = 0; i < tun->count; i++) in simple_tuner_params()
242 if (desired_type == tun->params[i].type) in simple_tuner_params()
246 if (i == tun->count) { in simple_tuner_params()
253 tuner_param_name(tun->params[i].type)); in simple_tuner_params()
255 return &tun->params[i]; in simple_tuner_params()
666 struct tunertype *tun; in simple_set_radio_freq() local
675 tun = priv->tun; in simple_set_radio_freq()
677 for (j = tun->count-1; j > 0; j--) in simple_set_radio_freq()
[all …]
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/
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
/Linux-v4.19/Documentation/networking/
Dtuntap.txt19 In order to use the driver a program has to open /dev/net/tun and issue a
26 IP packets (with tun) or ethernet frames (with tap). Which one is being used
29 The package from http://vtun.sourceforge.net/tun contains two simple examples
30 for how to use tun and tap devices. Both programs work like a bridge between
39 mknod /dev/net/tun c 10 200
42 e.g. chmod 0666 /dev/net/tun
47 unprivileged users, then you need the /dev/net/tun device to be usable by
58 modprobe tun
62 /dev/net/tun is being opened.
68 "tun%d"), but (as far as I can see) this can be any valid network device name.
[all …]
Dmsg_zerocopy.rst242 includes looping onto packet sockets (e.g., tcpdump) and tun devices.
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ipip.c12 struct ip_tunnel *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms4() local
14 return tun->parms; in mlxsw_sp_ipip_netdev_parms4()
20 struct ip6_tnl *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms6() local
22 return tun->parms; in mlxsw_sp_ipip_netdev_parms6()
Dspectrum_span.c297 struct ip_tunnel *tun = netdev_priv(to_dev); in mlxsw_sp_span_gretap4_route() local
308 0, 0, parms.link, tun->fwmark); in mlxsw_sp_span_gretap4_route()
310 rt = ip_route_output_key(tun->net, &fl4); in mlxsw_sp_span_gretap4_route()
Dspectrum_router.c960 struct ip_tunnel *tun = netdev_priv(ol_dev); in __mlxsw_sp_ipip_netdev_ul_dev_get() local
963 return __dev_get_by_index(net, tun->parms.link); in __mlxsw_sp_ipip_netdev_ul_dev_get()
/Linux-v4.19/Documentation/devicetree/bindings/mmc/
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>;
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dcq.c598 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data()
599 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data()
600 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data()
605 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data()
606 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data()
607 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data()
610 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data()
611 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
Dmad.c526 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
1963 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object()
1964 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object()
1965 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object()
2117 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update()
2123 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update()
2151 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
2153 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx()
2170 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx()
2210 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx()
[all …]
Dmlx4_ib.h278 struct mlx4_rcv_tunnel_hdr tun; member
484 struct mlx4_ib_demux_pv_ctx **tun; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_main.c244 struct qed_tunnel_info *tun = &cdev->tunnel; in qed_fill_dev_info() local
249 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
250 tun->vxlan.b_mode_enabled) in qed_fill_dev_info()
253 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info()
254 tun->l2_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
255 tun->ip_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
258 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info()
259 tun->l2_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
260 tun->ip_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
Dqed_sriov.c2244 static void qed_pf_validate_tunn_mode(struct qed_tunn_update_type *tun, int *rc) in qed_pf_validate_tunn_mode() argument
2246 if (tun->b_update_mode && !tun->b_mode_enabled) { in qed_pf_validate_tunn_mode()
2247 tun->b_update_mode = false; in qed_pf_validate_tunn_mode()
2258 struct qed_tunnel_info *tun = &p_hwfn->cdev->tunnel; in qed_pf_validate_modify_tunn_config() local
2264 bultn_vxlan_port = tun->vxlan_port.port; in qed_pf_validate_modify_tunn_config()
2265 bultn_geneve_port = tun->geneve_port.port; in qed_pf_validate_modify_tunn_config()
2284 if (tun_src->vxlan_port.port == tun->vxlan_port.port) { in qed_pf_validate_modify_tunn_config()
2293 if (tun_src->geneve_port.port == tun->geneve_port.port) { in qed_pf_validate_modify_tunn_config()
Dqed_l2.c2627 struct qed_tunnel_info *tun; in qed_tunn_configure() local
2629 tun = &hwfn->cdev->tunnel; in qed_tunn_configure()
2650 vxlan_port = tun->vxlan_port.port; in qed_tunn_configure()
2651 geneve_port = tun->geneve_port.port; in qed_tunn_configure()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/
Daction.c205 struct ip_tunnel_info *tun = tcf_tunnel_info(action); in nfp_fl_get_tun_from_act_l4_port() local
208 switch (tun->key.tp_dst) { in nfp_fl_get_tun_from_act_l4_port()
/Linux-v4.19/net/openvswitch/
Dactions.c1103 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() local
1106 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1107 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/Linux-v4.19/drivers/net/hyperv/
Dhyperv_net.h1298 u8 tun; member
/Linux-v4.19/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt1204 helper do the host setup for you. This involves insmod-ing the tun.o
1216 kernel or as the tun.o module.
1423 Also, the /dev/net/tun device must be writable by the user running
1428 host# chmod 666 /dev/net/tun
1438 devices and chgrp /dev/net/tun to that group with mode 664 or 660.
/Linux-v4.19/tools/power/cpupower/po/
Dde.po403 " [nur der Administrator kann dies tun] *\n"
/Linux-v4.19/Documentation/admin-guide/
Ddevices.txt336 200 = /dev/net/tun TAP/TUN network device

12