Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/net/
H A Dtun.c323 netif_info(tun, tx_queued, tun->dev, in tun_flow_create()
330 e->tun = tun; in tun_flow_create()
575 tun = rtnl_dereference(tfile->tun); in __tun_detach()
588 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
615 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
634 tun = rtnl_dereference(tfile->tun); in tun_detach()
635 dev = tun ? tun->dev : NULL; in tun_detach()
776 rcu_assign_pointer(tfile->tun, tun); in tun_attach()
789 tun = rcu_dereference(tfile->tun); in tun_get()
3150 netif_info(tun, drv, tun->dev, in __tun_chr_ioctl()
[all …]
H A DMakefile32 obj-$(CONFIG_TUN) += tun.o
/linux-6.15/net/qrtr/
H A Dtun.c23 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 …]
H A DMakefile7 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o
8 qrtr-tun-y := tun.o
/linux-6.15/drivers/net/ethernet/intel/libie/
H A Drx.c50 LIBIE_RX_PT_IP_L4(oip, tun, ver, UDP), \
52 LIBIE_RX_PT_IP_L4(oip, tun, ver, TCP), \
53 LIBIE_RX_PT_IP_L4(oip, tun, ver, SCTP), \
54 LIBIE_RX_PT_IP_L4(oip, tun, ver, ICMP)
58 LIBIE_RX_PT_IP_L3(oip, tun, ver, FRAG), \
59 LIBIE_RX_PT_IP_NOF(oip, tun, ver)
67 #define LIBIE_RX_PT_IP_TUN(oip, tun) \ argument
68 LIBIE_RX_PT_IP_TUN_VER(oip, tun, IPV4), \
69 LIBIE_RX_PT_IP_TUN_VER(oip, tun, IPV6)
72 #define LIBIE_RX_PT_IP_GRE(oip, tun) \ argument
[all …]
/linux-6.15/drivers/media/tuners/
H A Dtuner-simple.c115 const struct tunertype *tun; member
239 const 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()
676 tun = priv->tun; in simple_set_radio_freq()
682 t_params = &tun->params[j]; in simple_set_radio_freq()
851 const 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()
968 if (priv->tun->initdata) { in simple_init()
[all …]
/linux-6.15/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c852 mutex_lock(&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()
907 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tunnel_del_ipv4_off()
932 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tun_write_ipv6_list()
954 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tunnel_add_ipv6_off()
984 mutex_lock(&priv->tun.ipv6_off_lock); in nfp_tunnel_put_ipv6_off()
1519 ida_init(&priv->tun.mac_off_ids); in nfp_tunnel_config_start()
1522 mutex_init(&priv->tun.ipv4_off_lock); in nfp_tunnel_config_start()
1524 mutex_init(&priv->tun.ipv6_off_lock); in nfp_tunnel_config_start()
[all …]
/linux-6.15/tools/testing/selftests/net/
H A Dtun.c105 FIXTURE(tun) in FIXTURE() argument
111 FIXTURE_SETUP(tun) in FIXTURE_SETUP() argument
122 FIXTURE_TEARDOWN(tun) in FIXTURE_TEARDOWN() argument
130 TEST_F(tun, delete_detach_close) { in TEST_F() argument
136 TEST_F(tun, detach_delete_close) { in TEST_F() argument
141 TEST_F(tun, detach_close_delete) { in TEST_F() argument
148 TEST_F(tun, reattach_delete_close) { in TEST_F() argument
154 TEST_F(tun, reattach_close_delete) { in TEST_F() argument
H A D.gitignore57 tun
H A DMakefile78 TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls tun tap epoll_busy_poll
/linux-6.15/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c307 int tun, i; in ice_fdir_rem_adq_chnl() local
312 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_rem_adq_chnl()
365 int tun; in ice_fdir_erase_flow_from_hw() local
370 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_erase_flow_from_hw()
400 int tun, i; in ice_fdir_rem_flow() local
409 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_rem_flow()
440 int tun; in ice_fdir_replay_flows() local
444 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_replay_flows()
451 prof->fdir_seg[tun], TNL_SEG_CNT(tun), in ice_fdir_replay_flows()
1567 int tun; in ice_fdir_write_all_fltr() local
[all …]
H A Dice_virtchnl_fdir.c494 prof_id = vf_prof->prof_id[tun]; in ice_vc_fdir_rem_prof()
506 if (vf_prof->entry_h[i][tun]) { in ice_vc_fdir_rem_prof()
511 vf_prof->entry_h[i][tun]); in ice_vc_fdir_rem_prof()
512 vf_prof->entry_h[i][tun] = 0; in ice_vc_fdir_rem_prof()
517 vf_prof->fdir_seg[tun] = NULL; in ice_vc_fdir_rem_prof()
662 old_seg = vf_prof->fdir_seg[tun]; in ice_vc_fdir_write_flow_prof()
682 tun + 1, false, &prof); in ice_vc_fdir_write_flow_prof()
708 vf_prof->fdir_seg[tun] = seg; in ice_vc_fdir_write_flow_prof()
715 fdir->prof_entry_cnt[flow][tun]++; in ice_vc_fdir_write_flow_prof()
720 fdir->prof_entry_cnt[flow][tun]++; in ice_vc_fdir_write_flow_prof()
[all …]
H A Dice_fdir.h223 u8 *pkt, bool frag, bool tun);
/linux-6.15/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()
/linux-6.15/tools/testing/selftests/drivers/net/hw/
H A Dtso.py122 def test_builder(name, cfg, outer_ipver, feature, tun=None, inner_ipver=None): argument
132 if tun:
133 remote_v4, remote_v6 = build_tunnel(cfg, ipver, tun)
139 tun_partial = tun and tun[1]
141 has_gso_partial = tun and 'tx-gso-partial' in cfg.features
170 f.__name__ = name + ((outer_ipver + "_") if tun else "") + "ipv" + inner_ipver
231 tun=info[3], inner_ipver="4"))
234 tun=info[3], inner_ipver="6"))
/linux-6.15/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
/linux-6.15/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.
98 if( (fd = open("/dev/net/tun", O_RDWR)) < 0 )
[all …]
/linux-6.15/Documentation/devicetree/bindings/mmc/
H A Dmarvell,xenon-sdhci.yaml112 marvell,xenon-phy-nr-success-tun:
121 marvell,xenon-phy-tun-step-divider:
136 marvell,xenon-tun-count:
209 marvell,xenon-tun-count = <11>;
231 marvell,xenon-tun-count = <9>;
/linux-6.15/drivers/infiniband/hw/mlx4/
H A Dcq.c595 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()
H A Dmad.c536 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()
2164 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
2166 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx()
2232 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx()
2233 ctx->tun = NULL; in mlx4_ib_alloc_demux_ctx()
2265 if (!ctx->tun[i]) in mlx4_ib_free_demux_ctx()
[all …]
/linux-6.15/tools/testing/selftests/net/netfilter/
H A Dnf_conntrack_packetdrill.sh10 modprobe -q tun
/linux-6.15/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()
/linux-6.15/Documentation/netlink/specs/
H A Drt_rule.yaml129 name: tun-id
215 - tun-id
/linux-6.15/drivers/net/ethernet/qlogic/qed/
H A Dqed_main.c380 struct qed_tunnel_info *tun = &cdev->tunnel; in qed_fill_dev_info() local
385 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
386 tun->vxlan.b_mode_enabled) in qed_fill_dev_info()
389 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info()
390 tun->l2_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
391 tun->ip_gre.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
394 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info()
395 tun->l2_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
396 tun->ip_geneve.tun_cls == QED_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
/linux-6.15/arch/arm64/boot/dts/marvell/
H A Darmada-3720-espressobin.dtsi82 marvell,xenon-tun-count = <9>;

12