Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sfc/
A Dtc_encap_actions.c271 ip = (struct iphdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_ipv4()
291 ip = (struct ipv6hdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_ipv6()
309 udp = (struct udphdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_udp()
394 encap->n_valid = encap->neigh->n_valid; in efx_gen_encap_header()
463 memset(encap->encap_hdr, 0, sizeof(encap->encap_hdr)); in efx_tc_update_encap()
633 encap = kzalloc(sizeof(*encap), GFP_KERNEL_ACCOUNT); in efx_tc_flower_create_encap_md()
634 if (!encap) in efx_tc_flower_create_encap_md()
644 kfree(encap); in efx_tc_flower_create_encap_md()
681 return encap; in efx_tc_flower_create_encap_md()
687 kfree(encap); in efx_tc_flower_create_encap_md()
[all …]
A Dtc.c484 if (encap->pseudo) in efx_tc_flower_release_encap_match()
486 kfree(encap); in efx_tc_flower_release_encap_match()
574 encap = kzalloc(sizeof(*encap), GFP_USER); in efx_tc_flower_record_encap_match()
575 if (!encap) { in efx_tc_flower_record_encap_match()
600 kfree(encap); in efx_tc_flower_record_encap_match()
667 encap = old; in efx_tc_flower_record_encap_match()
678 match->encap = encap; in efx_tc_flower_record_encap_match()
683 kfree(encap); in efx_tc_flower_record_encap_match()
1551 if (match->encap) in efx_tc_flower_replace_foreign_lhs_ar()
1986 if (match.encap) in efx_tc_flower_replace_foreign()
[all …]
A Dmae.c983 encap->fw_id); in efx_mae_update_encap_md()
1483 if (encap->src_ip | encap->dst_ip) { in efx_mae_register_encap_match()
1486 encap->src_ip); in efx_mae_register_encap_match()
1490 encap->dst_ip); in efx_mae_register_encap_match()
1498 &encap->src_ip6, sizeof(encap->src_ip6)); in efx_mae_register_encap_match()
1502 &encap->dst_ip6, sizeof(encap->dst_ip6)); in efx_mae_register_encap_match()
1512 encap->udp_dport); in efx_mae_register_encap_match()
1516 encap->udp_sport); in efx_mae_register_encap_match()
1522 encap->ip_tos); in efx_mae_register_encap_match()
1654 if (WARN_ON_ONCE(match->encap && !match->encap->type)) in efx_mae_populate_lhs_match_criteria()
[all …]
A Dtc_counters.c90 struct efx_tc_encap_action *encap; in efx_tc_counter_work() local
99 encap = act->encap_md; in efx_tc_counter_work()
100 if (!encap) in efx_tc_counter_work()
102 if (!encap->neigh) /* can't happen */ in efx_tc_counter_work()
104 if (time_after_eq(encap->neigh->used, touched)) in efx_tc_counter_work()
106 encap->neigh->used = touched; in efx_tc_counter_work()
110 if (encap->neigh->dst_ip) in efx_tc_counter_work()
111 n = neigh_lookup(&arp_tbl, &encap->neigh->dst_ip, in efx_tc_counter_work()
112 encap->neigh->egdev); in efx_tc_counter_work()
116 &encap->neigh->dst_ip6, in efx_tc_counter_work()
[all …]
A Dmae.h99 struct efx_tc_encap_action *encap);
101 struct efx_tc_encap_action *encap);
103 struct efx_tc_encap_action *encap);
118 struct efx_tc_encap_match *encap);
120 struct efx_tc_encap_match *encap);
A Def100_tx.c196 bool encap = skb->encapsulation; in ef100_make_tso_desc() local
211 if (encap) { in ef100_make_tso_desc()
247 ESF_GZ_TX_TSO_ED_OUTER_IP_LEN, encap && !gso_partial, in ef100_make_tso_desc()
248 ESF_GZ_TX_TSO_ED_OUTER_IP4_ID, encap ? mangleid : in ef100_make_tso_desc()
A Dtc_encap_actions.h98 struct efx_tc_encap_action *encap);
A Dmcdi_filters.c275 #define MAP_FILTER_TO_MCDI_FLAG(gen_flag, mcdi_field, encap) { \ in efx_mcdi_filter_mcdi_flags_from_spec() argument
280 (1 << ((encap) ? \ in efx_mcdi_filter_mcdi_flags_from_spec()
1176 static int efx_mcdi_filter_match_flags_from_mcdi(bool encap, u32 mcdi_flags) in efx_mcdi_filter_match_flags_from_mcdi() argument
1188 if (encap) { in efx_mcdi_filter_match_flags_from_mcdi()
1234 bool encap, in efx_mcdi_filter_match_supported() argument
1243 mf = efx_mcdi_filter_match_flags_from_mcdi(encap, in efx_mcdi_filter_match_supported()
1255 bool encap) in efx_mcdi_filter_table_probe_matches() argument
1265 encap ? in efx_mcdi_filter_table_probe_matches()
1283 rc = efx_mcdi_filter_match_flags_from_mcdi(encap, mcdi_flags); in efx_mcdi_filter_table_probe_matches()
A Dmcdi_filters.h119 bool encap,
/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_encap.c803 encap = uplink_priv->encap; in mlx5e_route_tbl_get_last_update()
1194 encap = uplink_priv->encap; in mlx5e_route_get_create()
1830 priv = encap->priv; in mlx5e_tc_tun_fib_event()
1865 encap = kvzalloc(sizeof(*encap), GFP_KERNEL); in mlx5e_tc_tun_init()
1866 if (!encap) in mlx5e_tc_tun_init()
1869 encap->priv = priv; in mlx5e_tc_tun_init()
1876 kvfree(encap); in mlx5e_tc_tun_init()
1880 return encap; in mlx5e_tc_tun_init()
1885 if (!encap) in mlx5e_tc_tun_cleanup()
1888 unregister_fib_notifier(dev_net(encap->priv->netdev), &encap->fib_nb); in mlx5e_tc_tun_cleanup()
[all …]
A Dtc_tun_encap.h48 void mlx5e_tc_tun_cleanup(struct mlx5e_tc_tun_encap *encap);
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_rxtx.c223 struct xfrm_encap_tmpl *encap; in mlx5e_ipsec_tx_build_eseg() local
249 encap = x->encap; in mlx5e_ipsec_tx_build_eseg()
250 if (!encap) { in mlx5e_ipsec_tx_build_eseg()
254 } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) { in mlx5e_ipsec_tx_build_eseg()
A Dipsec.c479 if (x->encap) { in mlx5e_ipsec_build_accel_xfrm_attrs()
480 attrs->encap = true; in mlx5e_ipsec_build_accel_xfrm_attrs()
481 attrs->sport = x->encap->encap_sport; in mlx5e_ipsec_build_accel_xfrm_attrs()
482 attrs->dport = x->encap->encap_dport; in mlx5e_ipsec_build_accel_xfrm_attrs()
516 if (x->encap) { in mlx5e_xfrm_validate_state()
523 if (x->encap->encap_type != UDP_ENCAP_ESPINUDP) { in mlx5e_xfrm_validate_state()
/drivers/net/ethernet/cisco/enic/
A Denic_rq.c107 bool outer_csum_ok = true, encap = false; in enic_rq_set_skb_flags() local
129 encap = true; in enic_rq_set_skb_flags()
135 encap = true; in enic_rq_set_skb_flags()
155 skb->csum_level = encap; in enic_rq_set_skb_flags()
156 if (encap) in enic_rq_set_skb_flags()
/drivers/net/ethernet/pensando/ionic/
A Dionic_txrx.c1444 bool encap; in ionic_tx_tso() local
1462 encap = skb->encapsulation; in ionic_tx_tso()
1469 if (encap) in ionic_tx_tso()
1479 if (encap) in ionic_tx_tso()
1556 bool encap; in ionic_tx_calc_csum() local
1560 encap = skb->encapsulation; in ionic_tx_calc_csum()
1595 bool encap; in ionic_tx_calc_no_csum() local
1599 encap = skb->encapsulation; in ionic_tx_calc_no_csum()
1688 bool encap; in ionic_tx_descs_needed() local
1718 encap = skb->encapsulation; in ionic_tx_descs_needed()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
A Dmirred.c156 if (parse_state->encap || in tc_act_can_offload_mirred()
191 parse_state->encap = false; in parse_mirred_encap()
312 if (parse_state->encap) in tc_act_parse_mirred()
A Dtun.c30 parse_state->encap = true; in tc_act_parse_tun_encap()
A Dact.h20 bool encap; member
/drivers/crypto/caam/
A Dblob_gen.c64 struct caam_blob_info *info, bool encap) in caam_process_blob() argument
79 if (encap) { in caam_process_blob()
A Dcaamalg_desc.h101 unsigned int icvsize, const bool encap,
/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_tc.c890 struct hwrm_cfa_encap_data_vxlan *encap; in hwrm_cfa_encap_record_alloc() local
898 encap = (struct hwrm_cfa_encap_data_vxlan *)&req->encap_data; in hwrm_cfa_encap_record_alloc()
900 ether_addr_copy(encap->dst_mac_addr, l2_info->dmac); in hwrm_cfa_encap_record_alloc()
901 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc()
903 encap->num_vlan_tags = l2_info->num_vlans; in hwrm_cfa_encap_record_alloc()
904 encap->ovlan_tci = l2_info->inner_vlan_tci; in hwrm_cfa_encap_record_alloc()
905 encap->ovlan_tpid = l2_info->inner_vlan_tpid; in hwrm_cfa_encap_record_alloc()
908 encap_ipv4 = (struct hwrm_vxlan_ipv4_hdr *)encap->l3; in hwrm_cfa_encap_record_alloc()
917 encap->dst_port = encap_key->tp_dst; in hwrm_cfa_encap_record_alloc()
918 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch_offloads.c1557 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_init_chains_offload_flags()
1877 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_create_offloads_fdb_tables()
3973 enum devlink_eswitch_encap_mode encap, in mlx5_devlink_eswitch_encap_mode_set() argument
3986 if (encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE && in mlx5_devlink_eswitch_encap_mode_set()
3993 if (encap && encap != DEVLINK_ESWITCH_ENCAP_MODE_BASIC) { in mlx5_devlink_eswitch_encap_mode_set()
3999 esw->offloads.encap = encap; in mlx5_devlink_eswitch_encap_mode_set()
4003 if (esw->offloads.encap == encap) in mlx5_devlink_eswitch_encap_mode_set()
4025 esw->offloads.encap = encap; in mlx5_devlink_eswitch_encap_mode_set()
4032 esw->offloads.encap = !encap; in mlx5_devlink_eswitch_encap_mode_set()
4045 enum devlink_eswitch_encap_mode *encap) in mlx5_devlink_eswitch_encap_mode_get() argument
[all …]
A Deswitch.h307 enum devlink_eswitch_encap_mode encap; member
557 enum devlink_eswitch_encap_mode encap,
560 enum devlink_eswitch_encap_mode *encap);
A Den_rep.h97 struct mlx5e_tc_tun_encap *encap; member
/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dvporttbl.c27 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_vport_tbl_init()

Completed in 75 milliseconds

12