Home
last modified time | relevance | path

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

12

/linux/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 DMakefile7 obj-$(CONFIG_QRTR_TUN) += qrtr-tun.o
8 qrtr-tun-y := tun.o
/linux/drivers/net/ethernet/intel/libie/
H A Drx.c23 #define LIBIE_RX_PT(oip, ofrag, tun, tp, tefr, iprot, pl) { \ argument
26 .tunnel_type = LIBETH_RX_PT_TUNNEL_IP_##tun, \
46 #define LIBIE_RX_PT_IP_L3(oip, tun, teprot, tefr) \ argument
47 LIBIE_RX_PT(IPV##oip, NOT_FRAG, tun, teprot, tefr, NONE, L3)
48 #define LIBIE_RX_PT_IP_L4(oip, tun, teprot, iprot) \ argument
49 LIBIE_RX_PT(IPV##oip, NOT_FRAG, tun, teprot, NOT_FRAG, iprot, L4)
51 #define LIBIE_RX_PT_IP_NOF(oip, tun, ver) \ argument
52 LIBIE_RX_PT_IP_L3(oip, tun, ver, NOT_FRAG), \
53 LIBIE_RX_PT_IP_L4(oip, tun, ver, UDP), \
55 LIBIE_RX_PT_IP_L4(oip, tun, ver, TCP), \
[all …]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c739 app_priv = container_of(nb, struct nfp_flower_priv, tun.neigh_nb); in nfp_tun_neigh_event_handler()
852 mutex_lock(&priv->tun.ipv4_off_lock); in nfp_tun_write_ipv4_list()
854 list_for_each_safe(ptr, storage, &priv->tun.ipv4_off_list) { in nfp_tun_write_ipv4_list()
856 mutex_unlock(&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()
878 list_for_each_safe(ptr, storage, &priv->tun.ipv4_off_list) { in nfp_tunnel_add_ipv4_off()
882 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off()
889 mutex_unlock(&priv->tun.ipv4_off_lock); in nfp_tunnel_add_ipv4_off()
895 list_add_tail(&entry->list, &priv->tun.ipv4_off_list); in nfp_tunnel_add_ipv4_off()
[all …]
H A Doffload.c856 struct nfp_fl_set_tun *tun; in nfp_fl_push_vlan_after_tun() local
864 tun = (struct nfp_fl_set_tun *)a; in nfp_fl_push_vlan_after_tun()
865 tun->outer_vlan_tpid = vlan->vlan_tpid; in nfp_fl_push_vlan_after_tun()
866 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
H A Dconntrack.c1555 struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_ct_add_flow() local
1556 size_t tun_size = sizeof(*tun) + tun->options_len; in nfp_fl_ct_add_flow()
1558 new_act->tunnel = kmemdup(tun, tun_size, GFP_ATOMIC); in nfp_fl_ct_add_flow()
H A Dmain.h320 struct nfp_fl_tunnel_offloads tun; member
H A Daction.c287 const struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_get_tun_from_act() local
296 switch (tun->key.tp_dst) { in nfp_fl_get_tun_from_act()
/linux/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.gitignore54 tun
H A DMakefile183 tun \
/linux/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/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 …]
H A Dmsg_zerocopy.rst246 includes looping onto packet sockets (e.g., tcpdump) and tun devices.
/linux/tools/testing/selftests/drivers/net/hw/
H A Dtso.py134 def test_builder(name, cfg, outer_ipver, feature, tun=None, inner_ipver=None):
148 if tun:
149 remote_v4, remote_v6 = build_tunnel(cfg, ipver, tun)
171 f.__name__ = name + ((outer_ipver + "_") if tun else "") + "ipv" + inner_ipver
231 # name, v4/v6 ethtool_feature tun:(type, args, inner ip versions)
133 test_builder(name, cfg, outer_ipver, feature, tun=None, inner_ipver=None) global() argument
/linux/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()
H A Dspectrum_span.c415 struct ip_tunnel *tun = netdev_priv(to_dev); in mlxsw_sp_span_gretap4_route() local
426 0, 0, tun->net, parms.link, tun->fwmark, 0, 0); in mlxsw_sp_span_gretap4_route()
428 rt = ip_route_output_key(tun->net, &fl4); in mlxsw_sp_span_gretap4_route()
/linux/tools/testing/selftests/net/netfilter/
H A Dnf_conntrack_packetdrill.sh10 modprobe -q tun
/linux/Documentation/translations/zh_CN/networking/
H A Dmsg_zerocopy.rst208 这包括环回到数据包套接字(例如,tcpdump)和 tun 设备。
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fdir.h223 u8 *pkt, bool frag, bool tun);
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-3720-espressobin.dtsi82 marvell,xenon-tun-count = <9>;
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.c2230 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()
H A Dqed_l2.c2633 struct qed_tunnel_info *tun; in qed_tunn_configure() local
2635 tun = &hwfn->cdev->tunnel; in qed_tunn_configure()
2656 vxlan_port = tun->vxlan_port.port; in qed_tunn_configure()
2657 geneve_port = tun->geneve_port.port; in qed_tunn_configure()
/linux/net/openvswitch/
H A Dactions.c1028 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() local
1031 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
1032 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/linux/drivers/net/
H A DKconfig407 When a program opens /dev/net/tun, driver creates and registers
416 will be called tun.

12