Searched refs:md_dst (Results 1 – 6 of 6) sorted by relevance
/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() 1710 struct metadata_dst *md_dst = skb_metadata_dst(skb); in mlx5e_macsec_handle_tx_skb() local 1713 fs_id = mlx5e_macsec_get_sa_from_hashtable(&macsec->sci_hash, &md_dst->u.macsec_info.sci); in mlx5e_macsec_handle_tx_skb() 1728 struct metadata_dst *md_dst = skb_metadata_dst(skb); in mlx5e_macsec_tx_build_eseg() local 1731 fs_id = mlx5e_macsec_get_sa_from_hashtable(&macsec->sci_hash, &md_dst->u.macsec_info.sci); in mlx5e_macsec_tx_build_eseg() 1759 dst_hold(&rx_sc->md_dst->dst); in mlx5e_macsec_offload_handle_rx_skb() [all …]
|
/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()
|
/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()
|
/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() 3396 struct metadata_dst *md_dst = secy->tx_sc.md_dst; in macsec_start_xmit() local 3399 dst_hold(&md_dst->dst); in macsec_start_xmit() 3400 skb_dst_set(skb, &md_dst->dst); in macsec_start_xmit() 3715 if (macsec->secy.tx_sc.md_dst) in macsec_free_netdev() 3716 metadata_dst_free(macsec->secy.tx_sc.md_dst); in macsec_free_netdev() 3986 secy->tx_sc.md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL); in macsec_add_dev() [all …]
|
/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()
|