/linux/drivers/net/ |
A D | tun.c | 381 netif_info(tun, tx_queued, tun->dev, in tun_flow_create() 388 e->tun = tun; in tun_flow_create() 635 tun = rtnl_dereference(tfile->tun); in __tun_detach() 647 tun->tfiles[tun->numqueues - 1]); in __tun_detach() 671 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach() 691 tun = rtnl_dereference(tfile->tun); in tun_detach() 692 dev = tun ? tun->dev : NULL; in tun_detach() 828 rcu_assign_pointer(tfile->tun, tun); in tun_attach() 841 tun = rcu_dereference(tfile->tun); in tun_get() 3129 netif_info(tun, drv, tun->dev, in __tun_chr_ioctl() [all …]
|
A D | .built-in.a.cmd | 1 …lt-in.a drivers/net/mdio/built-in.a drivers/net/pcs/built-in.a drivers/net/tun.o drivers/net/virti…
|
A D | .tun.o.cmd | 1 …tun.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc… 3 source_drivers/net/tun.o := drivers/net/tun.c 5 deps_drivers/net/tun.o := \ 1549 drivers/net/tun.o: $(deps_drivers/net/tun.o) 1551 $(deps_drivers/net/tun.o):
|
A D | Makefile | 30 obj-$(CONFIG_TUN) += tun.o
|
/linux/net/qrtr/ |
A D | tun.c | 23 skb_queue_tail(&tun->queue, skb); 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() 55 kfree(tun); in qrtr_tun_open() 134 skb_queue_purge(&tun->queue); in qrtr_tun_release() [all …]
|
A D | Makefile | 7 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o 8 qrtr-tun-y := tun.o
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
A D | tunnel_conf.c | 695 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list() 707 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list() 720 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off() 750 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tunnel_del_ipv4_off() 775 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tun_write_ipv6_list() 797 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tunnel_add_ipv6_off() 827 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tunnel_put_ipv6_off() 1358 ida_init(&priv->tun.mac_off_ids); in nfp_tunnel_config_start() 1361 mutex_init(&priv->tun.ipv4_off_lock); in nfp_tunnel_config_start() 1363 mutex_init(&priv->tun.ipv6_off_lock); in nfp_tunnel_config_start() [all …]
|
A D | offload.c | 852 struct nfp_fl_set_tun *tun; in nfp_fl_push_vlan_after_tun() local 860 tun = (struct nfp_fl_set_tun *)a; in nfp_fl_push_vlan_after_tun() 861 tun->outer_vlan_tpid = vlan->vlan_tpid; in nfp_fl_push_vlan_after_tun() 862 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
|
A D | conntrack.c | 1184 struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_ct_add_flow() local 1185 size_t tun_size = sizeof(*tun) + tun->options_len; in nfp_fl_ct_add_flow() 1187 new_act->tunnel = kmemdup(tun, tun_size, GFP_ATOMIC); in nfp_fl_ct_add_flow()
|
/linux/drivers/media/tuners/ |
A D | tuner-simple.c | 115 struct tunertype *tun; member 239 struct tunertype *tun = priv->tun; in simple_tuner_params() local 247 if (i == tun->count) { 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() 682 t_params = &tun->params[j]; in simple_set_radio_freq() 851 struct tunertype *tun = priv->tun; in simple_dvb_configure() local 858 if (!tun->stepsize) { in simple_dvb_configure() 872 tun->stepsize/2) / tun->stepsize; in simple_dvb_configure() [all …]
|
/linux/include/net/tc_act/ |
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()
|
/linux/drivers/net/ethernet/intel/ice/ |
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() 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() 360 int tun; in ice_fdir_replay_flows() local 364 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_replay_flows() 373 prof->fdir_seg[tun], TNL_SEG_CNT(tun), in ice_fdir_replay_flows() 1265 int tun; in ice_fdir_write_all_fltr() local [all …]
|
A D | ice_virtchnl_fdir.c | 700 if (vf_prof->entry_h[i][tun]) { in ice_vc_fdir_rem_prof() 705 vf_prof->entry_h[i][tun]); in ice_vc_fdir_rem_prof() 706 vf_prof->entry_h[i][tun] = 0; in ice_vc_fdir_rem_prof() 711 vf_prof->fdir_seg[tun] = NULL; in ice_vc_fdir_rem_prof() 716 fdir->prof_entry_cnt[flow][tun] = 0; in ice_vc_fdir_rem_prof() 775 old_seg = vf_prof->fdir_seg[tun]; in ice_vc_fdir_write_flow_prof() 795 tun ? ICE_FLTR_PTYPE_MAX : 0); in ice_vc_fdir_write_flow_prof() 798 tun + 1, &prof); in ice_vc_fdir_write_flow_prof() 827 vf_prof->fdir_seg[tun] = seg; in ice_vc_fdir_write_flow_prof() 834 fdir->prof_entry_cnt[flow][tun]++; in ice_vc_fdir_write_flow_prof() [all …]
|
A D | ice_fdir.h | 215 u8 *pkt, bool frag, bool tun);
|
A D | ice_fdir.c | 877 u8 *pkt, bool frag, bool tun) in ice_fdir_get_gen_prgm_pkt() argument 923 if (!tun) { in ice_fdir_get_gen_prgm_pkt()
|
/linux/Documentation/networking/ |
A D | tuntap.rst | 27 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. 98 if( (fd = open("/dev/net/tun", O_RDWR)) < 0 ) [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
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
|
/linux/Documentation/devicetree/bindings/mmc/ |
A D | marvell,xenon-sdhci.txt | 71 - marvell,xenon-phy-nr-success-tun: 77 - marvell,xenon-phy-tun-step-divider: 88 - marvell,xenon-tun-count: 116 marvell,xenon-tun-count = <11>; 135 marvell,xenon-tun-count = <9>;
|
/linux/drivers/infiniband/hw/mlx4/ |
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()
|
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() 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() 2236 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() 2237 ctx->tun = NULL; in mlx4_ib_alloc_demux_ctx() 2269 if (!ctx->tun[i]) in mlx4_ib_free_demux_ctx() [all …]
|
A D | mlx4_ib.h | 269 struct mlx4_rcv_tunnel_hdr tun; member 504 struct mlx4_ib_demux_pv_ctx **tun; member
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
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()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_main.c | 408 struct qed_tunnel_info *tun = &cdev->tunnel; in qed_fill_dev_info() local 413 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 414 tun->vxlan.b_mode_enabled) in qed_fill_dev_info() 417 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info() 418 tun->l2_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 419 tun->ip_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info() 422 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info() 423 tun->l2_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 424 tun->ip_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
|
A D | qed_sriov.c | 2230 static void qed_pf_validate_tunn_mode(struct qed_tunn_update_type *tun, int *rc) in qed_pf_validate_tunn_mode() argument 2232 if (tun->b_update_mode && !tun->b_mode_enabled) { in qed_pf_validate_tunn_mode() 2233 tun->b_update_mode = false; in qed_pf_validate_tunn_mode() 2244 struct qed_tunnel_info *tun = &p_hwfn->cdev->tunnel; in qed_pf_validate_modify_tunn_config() local 2250 bultn_vxlan_port = tun->vxlan_port.port; in qed_pf_validate_modify_tunn_config() 2251 bultn_geneve_port = tun->geneve_port.port; in qed_pf_validate_modify_tunn_config() 2270 if (tun_src->vxlan_port.port == tun->vxlan_port.port) { in qed_pf_validate_modify_tunn_config() 2279 if (tun_src->geneve_port.port == tun->geneve_port.port) { in qed_pf_validate_modify_tunn_config()
|
/linux/arch/arm64/boot/dts/marvell/ |
A D | armada-3720-espressobin.dtsi | 82 marvell,xenon-tun-count = <9>;
|