| /Linux-v5.4/drivers/net/ |
| D | tun.c | 84 #define tun_debug(level, tun, fmt, args...) \ argument 86 if (tun->debug) \ 87 netdev_printk(level, tun->dev, fmt, ##args); \ 95 #define tun_debug(level, tun, fmt, args...) \ argument 98 netdev_printk(level, tun->dev, fmt, ##args); \ 163 struct tun_struct __rcu *tun; member 189 struct tun_struct *tun; member 310 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument 316 netif_napi_add(tun->dev, &tfile->napi, tun_napi_poll, in tun_napi_init() 340 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument [all …]
|
| D | Makefile | 25 obj-$(CONFIG_TUN) += tun.o
|
| D | Kconfig | 296 When a program opens /dev/net/tun, driver creates and registers 305 will be called tun.
|
| /Linux-v5.4/net/qrtr/ |
| 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 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 …]
|
| D | Makefile | 6 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o 7 qrtr-tun-y := tun.o
|
| /Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/ |
| D | tunnel_conf.c | 233 spin_lock_bh(&priv->tun.neigh_off_lock); in nfp_tun_has_route() 234 list_for_each_safe(ptr, storage, &priv->tun.neigh_off_list) { in nfp_tun_has_route() 237 spin_unlock_bh(&priv->tun.neigh_off_lock); in nfp_tun_has_route() 241 spin_unlock_bh(&priv->tun.neigh_off_lock); in nfp_tun_has_route() 251 spin_lock_bh(&priv->tun.neigh_off_lock); in nfp_tun_add_route_to_cache() 252 list_for_each_safe(ptr, storage, &priv->tun.neigh_off_list) { in nfp_tun_add_route_to_cache() 255 spin_unlock_bh(&priv->tun.neigh_off_lock); in nfp_tun_add_route_to_cache() 261 spin_unlock_bh(&priv->tun.neigh_off_lock); in nfp_tun_add_route_to_cache() 267 list_add_tail(&entry->list, &priv->tun.neigh_off_list); in nfp_tun_add_route_to_cache() 268 spin_unlock_bh(&priv->tun.neigh_off_lock); in nfp_tun_add_route_to_cache() [all …]
|
| D | offload.c | 768 struct nfp_fl_set_ipv4_tun *tun; in nfp_fl_push_vlan_after_tun() local 776 tun = (struct nfp_fl_set_ipv4_tun *)a; in nfp_fl_push_vlan_after_tun() 777 tun->outer_vlan_tpid = vlan->vlan_tpid; in nfp_fl_push_vlan_after_tun() 778 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
|
| D | main.h | 185 struct nfp_fl_tunnel_offloads tun; member
|
| D | action.c | 284 const struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_get_tun_from_act() local 293 switch (tun->key.tp_dst) { in nfp_fl_get_tun_from_act()
|
| /Linux-v5.4/drivers/media/tuners/ |
| 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 = priv->tun; in simple_set_radio_freq() 678 for (j = tun->count-1; j > 0; j--) in simple_set_radio_freq() [all …]
|
| /Linux-v5.4/include/net/tc_act/ |
| D | tc_tunnel_key.h | 67 struct ip_tunnel_info *tun = tcf_tunnel_info(a); in tcf_tunnel_info_copy() local 69 if (tun) { in tcf_tunnel_info_copy() 70 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy() 71 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
|
| /Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/ |
| 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
|
| /Linux-v5.4/Documentation/networking/ |
| D | tuntap.txt | 19 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 …]
|
| D | msg_zerocopy.rst | 242 includes looping onto packet sockets (e.g., tcpdump) and tun devices.
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_ipip.c | 12 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()
|
| D | spectrum_span.c | 297 struct ip_tunnel *tun = netdev_priv(to_dev); in mlxsw_sp_span_gretap4_route() local 308 0, 0, parms.link, tun->fwmark, 0); in mlxsw_sp_span_gretap4_route() 310 rt = ip_route_output_key(tun->net, &fl4); in mlxsw_sp_span_gretap4_route()
|
| /Linux-v5.4/Documentation/devicetree/bindings/mmc/ |
| D | marvell,xenon-sdhci.txt | 70 - 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-v5.4/drivers/infiniband/hw/mlx4/ |
| D | cq.c | 595 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data() 596 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data() 597 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data() 602 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 603 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 604 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 607 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 608 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
| D | mad.c | 526 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1972 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1973 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1974 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2126 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2132 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2160 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2162 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2179 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2219 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all …]
|
| D | mlx4_ib.h | 273 struct mlx4_rcv_tunnel_hdr tun; member 479 struct mlx4_ib_demux_pv_ctx **tun; member
|
| /Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
| D | qed_main.c | 249 struct qed_tunnel_info *tun = &cdev->tunnel; in qed_fill_dev_info() local 254 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 255 tun->vxlan.b_mode_enabled) in qed_fill_dev_info() 258 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info() 259 tun->l2_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 260 tun->ip_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info() 263 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info() 264 tun->l2_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 265 tun->ip_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
|
| D | qed_sriov.c | 2248 static void qed_pf_validate_tunn_mode(struct qed_tunn_update_type *tun, int *rc) in qed_pf_validate_tunn_mode() argument 2250 if (tun->b_update_mode && !tun->b_mode_enabled) { in qed_pf_validate_tunn_mode() 2251 tun->b_update_mode = false; in qed_pf_validate_tunn_mode() 2262 struct qed_tunnel_info *tun = &p_hwfn->cdev->tunnel; in qed_pf_validate_modify_tunn_config() local 2268 bultn_vxlan_port = tun->vxlan_port.port; in qed_pf_validate_modify_tunn_config() 2269 bultn_geneve_port = tun->geneve_port.port; in qed_pf_validate_modify_tunn_config() 2288 if (tun_src->vxlan_port.port == tun->vxlan_port.port) { in qed_pf_validate_modify_tunn_config() 2297 if (tun_src->geneve_port.port == tun->geneve_port.port) { in qed_pf_validate_modify_tunn_config()
|
| D | qed_l2.c | 2639 struct qed_tunnel_info *tun; in qed_tunn_configure() local 2641 tun = &hwfn->cdev->tunnel; in qed_tunn_configure() 2662 vxlan_port = tun->vxlan_port.port; in qed_tunn_configure() 2663 geneve_port = tun->geneve_port.port; in qed_tunn_configure()
|
| /Linux-v5.4/arch/arm64/boot/dts/marvell/ |
| D | armada-3720-espressobin.dts | 81 marvell,xenon-tun-count = <9>;
|
| /Linux-v5.4/net/openvswitch/ |
| D | actions.c | 1035 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() local 1038 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action() 1039 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
|