Home
last modified time | relevance | path

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

/drivers/net/
A Dtun.c324 netif_info(tun, tx_queued, tun->dev, in tun_flow_create()
331 e->tun = tun; in tun_flow_create()
576 tun = rtnl_dereference(tfile->tun); in __tun_detach()
589 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
616 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
635 tun = rtnl_dereference(tfile->tun); in tun_detach()
636 dev = tun ? tun->dev : NULL; in tun_detach()
777 rcu_assign_pointer(tfile->tun, tun); in tun_attach()
790 tun = rcu_dereference(tfile->tun); in tun_get()
3187 netif_info(tun, drv, tun->dev, in __tun_chr_ioctl()
[all …]
A DMakefile33 obj-$(CONFIG_TUN) += tun.o
A DKconfig420 When a program opens /dev/net/tun, driver creates and registers
429 will be called tun.
/drivers/net/ethernet/intel/libie/
A Drx.c53 LIBIE_RX_PT_IP_L4(oip, tun, ver, UDP), \
55 LIBIE_RX_PT_IP_L4(oip, tun, ver, TCP), \
56 LIBIE_RX_PT_IP_L4(oip, tun, ver, SCTP), \
57 LIBIE_RX_PT_IP_L4(oip, tun, ver, ICMP)
61 LIBIE_RX_PT_IP_L3(oip, tun, ver, FRAG), \
62 LIBIE_RX_PT_IP_NOF(oip, tun, ver)
70 #define LIBIE_RX_PT_IP_TUN(oip, tun) \ argument
71 LIBIE_RX_PT_IP_TUN_VER(oip, tun, IPV4), \
72 LIBIE_RX_PT_IP_TUN_VER(oip, tun, IPV6)
75 #define LIBIE_RX_PT_IP_GRE(oip, tun) \ argument
[all …]
/drivers/media/tuners/
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 …]
/drivers/net/ethernet/netronome/nfp/flower/
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 …]
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()
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()
A Dmain.h320 struct nfp_fl_tunnel_offloads tun; member
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()
/drivers/net/ethernet/intel/ice/
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 …]
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 …]
A Dice_fdir.h223 u8 *pkt, bool frag, bool tun);
A Dice_fdir.c859 u8 *pkt, bool frag, bool tun) in ice_fdir_get_gen_prgm_pkt() argument
905 if (!tun) { in ice_fdir_get_gen_prgm_pkt()
A Dice_main.c8531 int tun, status; in ice_add_vsi_to_fdir() local
8538 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_add_vsi_to_fdir()
8545 prof->prof_id[tun], in ice_add_vsi_to_fdir()
8547 prio, prof->fdir_seg[tun], in ice_add_vsi_to_fdir()
8555 prof->entry_h[prof->cnt][tun] = entry_h; in ice_add_vsi_to_fdir()
/drivers/infiniband/hw/mlx4/
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()
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 …]
A Dmlx4_ib.h270 struct mlx4_rcv_tunnel_hdr tun; member
505 struct mlx4_ib_demux_pv_ctx **tun; member
/drivers/net/ethernet/mellanox/mlxsw/
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()
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()
/drivers/net/ethernet/qlogic/qed/
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()
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()
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()
/drivers/net/ethernet/mellanox/mlx5/core/
A DMakefile54 en/tc/act/tun.o en/tc/act/csum.o en/tc/act/pedit.o \
/drivers/net/hyperv/
A Dhyperv_net.h1498 u8 tun; member

Completed in 147 milliseconds