Lines Matching refs:meta

664 		 const struct nfp_meta_parsed *meta, struct sk_buff *skb)  in nfp_nfd3_rx_csum()  argument
671 if (meta->csum_type) { in nfp_nfd3_rx_csum()
672 skb->ip_summed = meta->csum_type; in nfp_nfd3_rx_csum()
673 skb->csum = meta->csum; in nfp_nfd3_rx_csum()
709 nfp_nfd3_set_hash(struct net_device *netdev, struct nfp_meta_parsed *meta, in nfp_nfd3_set_hash() argument
719 meta->hash_type = PKT_HASH_TYPE_L3; in nfp_nfd3_set_hash()
722 meta->hash_type = PKT_HASH_TYPE_L4; in nfp_nfd3_set_hash()
726 meta->hash = get_unaligned_be32(hash); in nfp_nfd3_set_hash()
730 nfp_nfd3_set_hash_desc(struct net_device *netdev, struct nfp_meta_parsed *meta, in nfp_nfd3_set_hash_desc() argument
738 nfp_nfd3_set_hash(netdev, meta, get_unaligned_be32(&rx_hash->hash_type), in nfp_nfd3_set_hash_desc()
743 nfp_nfd3_parse_meta(struct net_device *netdev, struct nfp_meta_parsed *meta, in nfp_nfd3_parse_meta() argument
755 nfp_nfd3_set_hash(netdev, meta, in nfp_nfd3_parse_meta()
761 meta->mark = get_unaligned_be32(data); in nfp_nfd3_parse_meta()
767 meta->vlan.stripped = true; in nfp_nfd3_parse_meta()
768 meta->vlan.tpid = FIELD_GET(NFP_NET_META_VLAN_TPID_MASK, in nfp_nfd3_parse_meta()
770 meta->vlan.tci = FIELD_GET(NFP_NET_META_VLAN_TCI_MASK, in nfp_nfd3_parse_meta()
776 meta->portid = get_unaligned_be32(data); in nfp_nfd3_parse_meta()
780 meta->csum_type = CHECKSUM_COMPLETE; in nfp_nfd3_parse_meta()
781 meta->csum = in nfp_nfd3_parse_meta()
796 meta->ipsec_saidx = get_unaligned_be32(data) + 1; in nfp_nfd3_parse_meta()
928 struct nfp_meta_parsed meta; in nfp_nfd3_rx() local
946 memset(&meta, 0, sizeof(meta)); in nfp_nfd3_rx()
993 nfp_nfd3_set_hash_desc(dp->netdev, &meta, in nfp_nfd3_rx()
996 if (unlikely(nfp_nfd3_parse_meta(dp->netdev, &meta, in nfp_nfd3_rx()
1007 if (xdp_prog && !meta.portid) { in nfp_nfd3_rx()
1050 if (likely(!meta.portid)) { in nfp_nfd3_rx()
1052 } else if (meta.portid == NFP_META_PORT_ID_CTRL) { in nfp_nfd3_rx()
1064 netdev = nfp_app_dev_get(nn->app, meta.portid, in nfp_nfd3_rx()
1094 skb->mark = meta.mark; in nfp_nfd3_rx()
1095 skb_set_hash(skb, meta.hash, meta.hash_type); in nfp_nfd3_rx()
1100 nfp_nfd3_rx_csum(dp, r_vec, rxd, &meta, skb); in nfp_nfd3_rx()
1111 if (unlikely(!nfp_net_vlan_strip(skb, rxd, &meta))) { in nfp_nfd3_rx()
1117 if (meta.ipsec_saidx != 0 && unlikely(nfp_net_ipsec_rx(&meta, skb))) { in nfp_nfd3_rx()