/drivers/thunderbolt/ |
D | tunnel.c | 49 #define __TB_TUNNEL_PRINT(level, tunnel, fmt, arg...) \ argument 51 struct tb_tunnel *__tunnel = (tunnel); \ 61 #define tb_tunnel_WARN(tunnel, fmt, arg...) \ argument 62 __TB_TUNNEL_PRINT(tb_WARN, tunnel, fmt, ##arg) 63 #define tb_tunnel_warn(tunnel, fmt, arg...) \ argument 64 __TB_TUNNEL_PRINT(tb_warn, tunnel, fmt, ##arg) 65 #define tb_tunnel_info(tunnel, fmt, arg...) \ argument 66 __TB_TUNNEL_PRINT(tb_info, tunnel, fmt, ##arg) 67 #define tb_tunnel_dbg(tunnel, fmt, arg...) \ argument 68 __TB_TUNNEL_PRINT(tb_dbg, tunnel, fmt, ##arg) [all …]
|
D | tunnel.h | 50 int (*init)(struct tb_tunnel *tunnel); 51 void (*deinit)(struct tb_tunnel *tunnel); 52 int (*activate)(struct tb_tunnel *tunnel, bool activate); 53 int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up, 55 int (*release_unused_bandwidth)(struct tb_tunnel *tunnel); 56 void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel, 80 bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path, 88 void tb_tunnel_free(struct tb_tunnel *tunnel); 89 int tb_tunnel_activate(struct tb_tunnel *tunnel); 90 int tb_tunnel_restart(struct tb_tunnel *tunnel); [all …]
|
D | tb.c | 126 struct tb_tunnel *tunnel; in tb_discover_dp_resources() local 128 list_for_each_entry(tunnel, &tcm->tunnel_list, list) { in tb_discover_dp_resources() 129 if (tb_tunnel_is_dp(tunnel)) in tb_discover_dp_resources() 130 tb_discover_dp_resource(tb, tunnel->dst_port); in tb_discover_dp_resources() 142 struct tb_tunnel *tunnel = NULL; in tb_switch_discover_tunnels() local 146 tunnel = tb_tunnel_discover_dp(tb, port, alloc_hopids); in tb_switch_discover_tunnels() 150 tunnel = tb_tunnel_discover_pci(tb, port, alloc_hopids); in tb_switch_discover_tunnels() 154 tunnel = tb_tunnel_discover_usb3(tb, port, alloc_hopids); in tb_switch_discover_tunnels() 161 if (tunnel) in tb_switch_discover_tunnels() 162 list_add_tail(&tunnel->list, list); in tb_switch_discover_tunnels() [all …]
|
D | test.c | 1335 struct tb_tunnel *tunnel; in tb_test_tunnel_dp() local 1351 tunnel = tb_tunnel_alloc_dp(NULL, in, out, 1, 0, 0); in tb_test_tunnel_dp() 1352 KUNIT_ASSERT_TRUE(test, tunnel != NULL); in tb_test_tunnel_dp() 1353 KUNIT_EXPECT_EQ(test, tunnel->type, TB_TUNNEL_DP); in tb_test_tunnel_dp() 1354 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, in); in tb_test_tunnel_dp() 1355 KUNIT_EXPECT_PTR_EQ(test, tunnel->dst_port, out); in tb_test_tunnel_dp() 1356 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp() 1357 KUNIT_ASSERT_EQ(test, tunnel->paths[0]->path_length, 2); in tb_test_tunnel_dp() 1358 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, in); in tb_test_tunnel_dp() 1359 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[1].out_port, out); in tb_test_tunnel_dp() [all …]
|
D | Makefile | 3 thunderbolt-objs := nhi.o nhi_ops.o ctl.o tb.o switch.o cap.o path.o tunnel.o eeprom.o
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 185 if (!e->tunnel) { in mlx5e_gen_ip_tunnel_header() 190 return e->tunnel->generate_ip_tun_hdr(buf, ip_proto, e); in mlx5e_gen_ip_tunnel_header() 245 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv4() 360 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv4() 511 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv6() 625 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv6() 755 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(netdev); in mlx5e_tc_tun_device_to_offload() local 757 if (tunnel && tunnel->can_offload(priv)) in mlx5e_tc_tun_device_to_offload() 768 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(tunnel_dev); in mlx5e_tc_tun_init_encap_attr() local 770 if (!tunnel) { in mlx5e_tc_tun_init_encap_attr() [all …]
|
D | tc_tun_gre.c | 22 e->tunnel = &gre_tunnel; in mlx5e_tc_tun_init_encap_attr_gretap()
|
D | tc_tun_mplsoudp.c | 23 e->tunnel = &mplsoudp_tunnel; in init_encap_attr()
|
D | tc_tun_vxlan.c | 67 e->tunnel = &vxlan_tunnel; in mlx5e_tc_tun_init_encap_attr_vxlan()
|
D | fs.h | 191 struct ttc_params *ttc_params, bool tunnel);
|
D | tc_tun_geneve.c | 69 e->tunnel = &geneve_tunnel; in mlx5e_tc_tun_init_encap_attr_geneve()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ipip.c | 203 struct ip_tunnel *tunnel = netdev_priv(ol_dev); in mlxsw_sp_ipip_can_offload_gre4() local 205 bool inherit_ttl = tunnel->parms.iph.ttl == 0; in mlxsw_sp_ipip_can_offload_gre4() 206 bool inherit_tos = tunnel->parms.iph.tos & 0x1; in mlxsw_sp_ipip_can_offload_gre4() 208 return (tunnel->parms.i_flags & ~okflags) == 0 && in mlxsw_sp_ipip_can_offload_gre4() 209 (tunnel->parms.o_flags & ~okflags) == 0 && in mlxsw_sp_ipip_can_offload_gre4()
|
/drivers/isdn/mISDN/ |
D | Kconfig | 31 tristate "ISDN over IP tunnel" 34 Enable support for ISDN over IP tunnel.
|
/drivers/infiniband/hw/mlx4/ |
D | mad.c | 1482 struct mlx4_tunnel_mad *tunnel = tun_qp->ring[wr_ix].addr; in mlx4_ib_multiplex_mad() local 1512 switch (tunnel->mad.mad_hdr.method) { in mlx4_ib_multiplex_mad() 1520 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid; in mlx4_ib_multiplex_mad() 1524 tunnel->mad.mad_hdr.mgmt_class, slave); in mlx4_ib_multiplex_mad() 1534 switch (tunnel->mad.mad_hdr.mgmt_class) { in mlx4_ib_multiplex_mad() 1543 (struct ib_sa_mad *) &tunnel->mad)) in mlx4_ib_multiplex_mad() 1548 (struct ib_mad *) &tunnel->mad)) in mlx4_ib_multiplex_mad() 1552 if (tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_GET && in mlx4_ib_multiplex_mad() 1553 tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_SET) in mlx4_ib_multiplex_mad() 1560 "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave); in mlx4_ib_multiplex_mad() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_sp_commands.c | 205 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_update_params() 267 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_start_params() 418 &p_hwfn->cdev->tunnel); in qed_sp_pf_start() 517 qed_set_hw_tunn_mode_port(p_hwfn, p_ptt, &p_hwfn->cdev->tunnel); in qed_sp_pf_update_tunn_cfg()
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 1982 u32 tunnel = 0; in iavf_tx_enable_csum() local 1985 tunnel |= (*tx_flags & IAVF_TX_FLAGS_TSO) ? in iavf_tx_enable_csum() 1991 tunnel |= IAVF_TX_CTX_EXT_IP_IPV6; in iavf_tx_enable_csum() 2003 tunnel |= IAVF_TXD_CTX_UDP_TUNNELING; in iavf_tx_enable_csum() 2007 tunnel |= IAVF_TXD_CTX_GRE_TUNNELING; in iavf_tx_enable_csum() 2024 tunnel |= ((l4.hdr - ip.hdr) / 4) << in iavf_tx_enable_csum() 2031 tunnel |= ((ip.hdr - l4.hdr) / 2) << in iavf_tx_enable_csum() 2038 tunnel |= IAVF_TXD_CTX_QW0_L4T_CS_MASK; in iavf_tx_enable_csum() 2041 *cd_tunneling |= tunnel; in iavf_tx_enable_csum()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 1695 u32 tunnel = 0; in ice_tx_csum() local 1699 tunnel |= (first->tx_flags & ICE_TX_FLAGS_TSO) ? in ice_tx_csum() 1706 tunnel |= ICE_TX_CTX_EIPT_IPV6; in ice_tx_csum() 1718 tunnel |= ICE_TXD_CTX_UDP_TUNNELING; in ice_tx_csum() 1722 tunnel |= ICE_TXD_CTX_GRE_TUNNELING; in ice_tx_csum() 1739 tunnel |= ((l4.hdr - ip.hdr) / 4) << in ice_tx_csum() 1746 tunnel |= ((ip.hdr - l4.hdr) / 2) << in ice_tx_csum() 1753 tunnel |= ICE_TXD_CTX_QW0_L4T_CS_M; in ice_tx_csum() 1756 off->cd_tunnel_params |= tunnel; in ice_tx_csum()
|
/drivers/net/ |
D | Kconfig | 76 tristate "WireGuard secure network tunnel" 240 to tunnel virtual network infrastructure in virtualized environments. 256 to tunnel virtual network infrastructure in virtualized environments. 270 This adds a bare UDP tunnel module for tunnelling different 271 kinds of traffic like MPLS, IP, etc. inside a UDP tunnel. 390 This device is a local ethernet tunnel. Devices are created in pairs.
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.h | 199 struct mlx5e_tc_tunnel *tunnel; member
|
D | en_fs.c | 880 struct ttc_params *ttc_params, bool tunnel) in mlx5e_set_ttc_params() argument 900 ttc_params->inner_ttc = tunnel; in mlx5e_set_ttc_params() 901 if (!tunnel || !mlx5_tunnel_inner_ft_supported(priv->mdev)) in mlx5e_set_ttc_params()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 3188 u32 tunnel = 0; in i40e_tx_enable_csum() local 3191 tunnel |= (*tx_flags & I40E_TX_FLAGS_TSO) ? in i40e_tx_enable_csum() 3199 tunnel |= I40E_TX_CTX_EXT_IP_IPV6; in i40e_tx_enable_csum() 3212 tunnel |= I40E_TXD_CTX_UDP_TUNNELING; in i40e_tx_enable_csum() 3216 tunnel |= I40E_TXD_CTX_GRE_TUNNELING; in i40e_tx_enable_csum() 3233 tunnel |= ((l4.hdr - ip.hdr) / 4) << in i40e_tx_enable_csum() 3240 tunnel |= ((ip.hdr - l4.hdr) / 2) << in i40e_tx_enable_csum() 3247 tunnel |= I40E_TXD_CTX_QW0_L4T_CS_MASK; in i40e_tx_enable_csum() 3250 *cd_tunneling |= tunnel; in i40e_tx_enable_csum()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 285 const struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_get_tun_from_act() 332 struct ip_tunnel_info *ip_tun = (struct ip_tunnel_info *)act->tunnel; in nfp_fl_push_geneve_options() 404 const struct ip_tunnel_info *ip_tun = act->tunnel; in nfp_fl_set_tun() 1045 const struct ip_tunnel_info *ip_tun = act->tunnel; in nfp_flower_loop_action()
|
D | conntrack.c | 1184 struct ip_tunnel_info *tun = act->tunnel; in nfp_fl_ct_add_flow() 1187 new_act->tunnel = kmemdup(tun, tun_size, GFP_ATOMIC); in nfp_fl_ct_add_flow() 1188 if (!new_act->tunnel) { in nfp_fl_ct_add_flow() 1224 kfree(entry->rule->action.entries[entry->tun_offset].tunnel); in nfp_fl_ct_add_flow() 1339 kfree(entry->rule->action.entries[entry->tun_offset].tunnel); in nfp_fl_ct_clean_flow_entry()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_82599.c | 1369 bool tunnel; in ixgbe_fdir_add_signature_filter_82599() local 1376 tunnel = !!(input.formatted.flow_type & IXGBE_ATR_L4TYPE_TUNNEL_MASK); in ixgbe_fdir_add_signature_filter_82599() 1397 if (tunnel) in ixgbe_fdir_add_signature_filter_82599()
|
/drivers/i2c/busses/ |
D | Makefile | 137 obj-$(CONFIG_I2C_CROS_EC_TUNNEL) += i2c-cros-ec-tunnel.o
|