/linux-6.1.9/net/core/ |
D | dst.c | 286 static void __metadata_dst_init(struct metadata_dst *md_dst, in __metadata_dst_init() argument 291 dst = &md_dst->dst; in __metadata_dst_init() 294 memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); in __metadata_dst_init() 295 md_dst->type = type; in __metadata_dst_init() 301 struct metadata_dst *md_dst; in metadata_dst_alloc() local 303 md_dst = kmalloc(sizeof(*md_dst) + optslen, flags); in metadata_dst_alloc() 304 if (!md_dst) in metadata_dst_alloc() 307 __metadata_dst_init(md_dst, type, optslen); in metadata_dst_alloc() 309 return md_dst; in metadata_dst_alloc() 313 void metadata_dst_free(struct metadata_dst *md_dst) in metadata_dst_free() argument [all …]
|
D | filter.c | 4611 static struct metadata_dst __percpu *md_dst; variable 4616 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4() 4695 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3() 4719 if (!md_dst) { in bpf_get_skb_set_tunnel_proto() 4727 if (cmpxchg(&md_dst, NULL, tmp)) in bpf_get_skb_set_tunnel_proto()
|
/linux-6.1.9/include/net/ |
D | dst_metadata.h | 44 struct metadata_dst *md_dst = (struct metadata_dst *) skb_dst(skb); in skb_metadata_dst() local 46 if (md_dst && md_dst->dst.flags & DST_METADATA) in skb_metadata_dst() 47 return md_dst; in skb_metadata_dst() 55 struct metadata_dst *md_dst = skb_metadata_dst(skb); in skb_tunnel_info() local 58 if (md_dst && md_dst->type == METADATA_IP_TUNNEL) in skb_tunnel_info() 59 return &md_dst->u.tun_info; in skb_tunnel_info() 77 struct metadata_dst *md_dst = skb_metadata_dst(skb); in skb_xfrm_md_info() local 80 if (md_dst && md_dst->type == METADATA_XFRM) in skb_xfrm_md_info() 81 return &md_dst->u.xfrm_info; in skb_xfrm_md_info() 134 void metadata_dst_free_percpu(struct metadata_dst __percpu *md_dst); [all …]
|
D | macsec.h | 212 struct metadata_dst *md_dst; member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | macsec.h | 43 struct metadata_dst *md_dst = skb_metadata_dst(skb); in mlx5e_macsec_skb_is_offload() local 45 return md_dst && (md_dst->type == METADATA_MACSEC); in mlx5e_macsec_skb_is_offload()
|
D | macsec.c | 87 struct metadata_dst *md_dst; member 748 rx_sc->md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL); in mlx5e_macsec_add_rxsc() 749 if (!rx_sc->md_dst) { in mlx5e_macsec_add_rxsc() 759 rx_sc->md_dst->u.macsec_info.sci = rx_sc->sci; in mlx5e_macsec_add_rxsc() 850 metadata_dst_free(rx_sc->md_dst); in macsec_del_rxsc_ctx() 1703 struct metadata_dst *md_dst = skb_metadata_dst(skb); in mlx5e_macsec_handle_tx_skb() local 1706 fs_id = mlx5e_macsec_get_sa_from_hashtable(&macsec->sci_hash, &md_dst->u.macsec_info.sci); in mlx5e_macsec_handle_tx_skb() 1721 struct metadata_dst *md_dst = skb_metadata_dst(skb); in mlx5e_macsec_tx_build_eseg() local 1724 fs_id = mlx5e_macsec_get_sa_from_hashtable(&macsec->sci_hash, &md_dst->u.macsec_info.sci); in mlx5e_macsec_tx_build_eseg() 1752 dst_hold(&rx_sc->md_dst->dst); in mlx5e_macsec_offload_handle_rx_skb() [all …]
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | dp.c | 172 struct metadata_dst *md_dst = skb_metadata_dst(skb); in nfp_nfd3_prep_tx_meta() local 178 if (unlikely(md_dst || tls_handle)) { in nfp_nfd3_prep_tx_meta() 179 if (unlikely(md_dst && md_dst->type != METADATA_HW_PORT_MUX)) in nfp_nfd3_prep_tx_meta() 180 md_dst = NULL; in nfp_nfd3_prep_tx_meta() 185 if (!(md_dst || tls_handle || vlan_insert)) in nfp_nfd3_prep_tx_meta() 189 !!md_dst * NFP_NET_META_PORTID_SIZE + in nfp_nfd3_prep_tx_meta() 197 if (md_dst) { in nfp_nfd3_prep_tx_meta() 199 put_unaligned_be32(md_dst->u.port_info.port_id, data); in nfp_nfd3_prep_tx_meta()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 177 struct metadata_dst *md_dst = skb_metadata_dst(skb); in nfp_nfdk_prep_tx_meta() local 183 if (unlikely(md_dst && md_dst->type != METADATA_HW_PORT_MUX)) in nfp_nfdk_prep_tx_meta() 184 md_dst = NULL; in nfp_nfdk_prep_tx_meta() 188 if (!(md_dst || vlan_insert)) in nfp_nfdk_prep_tx_meta() 192 !!md_dst * NFP_NET_META_PORTID_SIZE + in nfp_nfdk_prep_tx_meta() 199 if (md_dst) { in nfp_nfdk_prep_tx_meta() 201 put_unaligned_be32(md_dst->u.port_info.port_id, data); in nfp_nfdk_prep_tx_meta()
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_interface.c | 363 struct metadata_dst *md_dst; in xfrmi_rcv_cb() local 365 md_dst = metadata_dst_alloc(0, METADATA_XFRM, GFP_ATOMIC); in xfrmi_rcv_cb() 366 if (!md_dst) in xfrmi_rcv_cb() 369 md_dst->u.xfrm_info.if_id = x->if_id; in xfrmi_rcv_cb() 370 md_dst->u.xfrm_info.link = link; in xfrmi_rcv_cb() 371 skb_dst_set(skb, (struct dst_entry *)md_dst); in xfrmi_rcv_cb()
|
/linux-6.1.9/drivers/net/ |
D | macsec.c | 1007 struct metadata_dst *md_dst; in handle_not_macsec() local 1013 md_dst = skb_metadata_dst(skb); in handle_not_macsec() 1024 if (md_dst && md_dst->type == METADATA_MACSEC && in handle_not_macsec() 1025 (!find_rx_sc(&macsec->secy, md_dst->u.macsec_info.sci))) in handle_not_macsec() 3397 struct metadata_dst *md_dst = secy->tx_sc.md_dst; in macsec_start_xmit() local 3400 dst_hold(&md_dst->dst); in macsec_start_xmit() 3401 skb_dst_set(skb, &md_dst->dst); in macsec_start_xmit() 3716 if (macsec->secy.tx_sc.md_dst) in macsec_free_netdev() 3717 metadata_dst_free(macsec->secy.tx_sc.md_dst); in macsec_free_netdev() 3989 secy->tx_sc.md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL); in macsec_add_dev() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 320 struct metadata_dst *md_dst = skb_metadata_dst(skb); in bnxt_xmit_get_cfa_action() local 322 if (!md_dst || md_dst->type != METADATA_HW_PORT_MUX) in bnxt_xmit_get_cfa_action() 325 return md_dst->u.port_info.port_id; in bnxt_xmit_get_cfa_action()
|