Lines Matching refs:pdata
404 struct sfc_mae_pattern_data *pdata = &ctx->pattern_data; in sfc_mae_set_ethertypes() local
419 et = &pdata->ethertypes[pdata->nb_vlan_tags]; in sfc_mae_set_ethertypes()
435 for (i = 0; i < pdata->nb_vlan_tags; ++i) { in sfc_mae_set_ethertypes()
436 et = &pdata->ethertypes[i]; in sfc_mae_set_ethertypes()
456 struct sfc_mae_pattern_data *pdata = &ctx->pattern_data; in sfc_mae_rule_process_pattern_data() local
457 struct sfc_mae_ethertype *ethertypes = pdata->ethertypes; in sfc_mae_rule_process_pattern_data()
474 if (pdata->innermost_ethertype_restriction.mask != 0 && in sfc_mae_rule_process_pattern_data()
475 pdata->nb_vlan_tags < SFC_MAE_MATCH_VLAN_MAX_NTAGS) { in sfc_mae_rule_process_pattern_data()
490 ethertype_idx < pdata->nb_vlan_tags; ++ethertype_idx) { in sfc_mae_rule_process_pattern_data()
499 for (tpid_idx = pdata->nb_vlan_tags - ethertype_idx - 1; in sfc_mae_rule_process_pattern_data()
514 if (pdata->innermost_ethertype_restriction.mask == RTE_BE16(0xffff)) { in sfc_mae_rule_process_pattern_data()
520 pdata->innermost_ethertype_restriction.value; in sfc_mae_rule_process_pattern_data()
523 pdata->innermost_ethertype_restriction.value) { in sfc_mae_rule_process_pattern_data()
539 if (pdata->l3_next_proto_restriction_mask == 0xff) { in sfc_mae_rule_process_pattern_data()
540 if (pdata->l3_next_proto_mask == 0) { in sfc_mae_rule_process_pattern_data()
541 pdata->l3_next_proto_mask = 0xff; in sfc_mae_rule_process_pattern_data()
542 pdata->l3_next_proto_value = in sfc_mae_rule_process_pattern_data()
543 pdata->l3_next_proto_restriction_value; in sfc_mae_rule_process_pattern_data()
544 } else if (pdata->l3_next_proto_mask != 0xff || in sfc_mae_rule_process_pattern_data()
545 pdata->l3_next_proto_value != in sfc_mae_rule_process_pattern_data()
546 pdata->l3_next_proto_restriction_value) { in sfc_mae_rule_process_pattern_data()
552 valuep = (const uint8_t *)&pdata->l3_next_proto_value; in sfc_mae_rule_process_pattern_data()
553 maskp = (const uint8_t *)&pdata->l3_next_proto_mask; in sfc_mae_rule_process_pattern_data()
556 sizeof(pdata->l3_next_proto_value), in sfc_mae_rule_process_pattern_data()
558 sizeof(pdata->l3_next_proto_mask), in sfc_mae_rule_process_pattern_data()
904 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_eth() local
905 struct sfc_mae_ethertype *ethertypes = pdata->ethertypes; in sfc_mae_rule_parse_item_eth()
968 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_vlan() local
978 if (pdata->nb_vlan_tags == SFC_MAE_MATCH_VLAN_MAX_NTAGS) { in sfc_mae_rule_parse_item_vlan()
985 flocs = flocs_vlan + pdata->nb_vlan_tags * nb_flocs; in sfc_mae_rule_parse_item_vlan()
988 ++pdata->nb_vlan_tags; in sfc_mae_rule_parse_item_vlan()
1002 struct sfc_mae_ethertype *ethertypes = pdata->ethertypes; in sfc_mae_rule_parse_item_vlan()
1009 ethertypes[pdata->nb_vlan_tags].value = item_spec->inner_type; in sfc_mae_rule_parse_item_vlan()
1010 ethertypes[pdata->nb_vlan_tags].mask = item_mask->inner_type; in sfc_mae_rule_parse_item_vlan()
1064 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_ipv4() local
1081 pdata->innermost_ethertype_restriction.value = ethertype_ipv4_be; in sfc_mae_rule_parse_item_ipv4()
1082 pdata->innermost_ethertype_restriction.mask = RTE_BE16(0xffff); in sfc_mae_rule_parse_item_ipv4()
1091 pdata->l3_next_proto_value = item_spec->hdr.next_proto_id; in sfc_mae_rule_parse_item_ipv4()
1092 pdata->l3_next_proto_mask = item_mask->hdr.next_proto_id; in sfc_mae_rule_parse_item_ipv4()
1136 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_ipv6() local
1160 pdata->innermost_ethertype_restriction.value = ethertype_ipv6_be; in sfc_mae_rule_parse_item_ipv6()
1161 pdata->innermost_ethertype_restriction.mask = RTE_BE16(0xffff); in sfc_mae_rule_parse_item_ipv6()
1170 pdata->l3_next_proto_value = item_spec->hdr.proto; in sfc_mae_rule_parse_item_ipv6()
1171 pdata->l3_next_proto_mask = item_mask->hdr.proto; in sfc_mae_rule_parse_item_ipv6()
1231 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_tcp() local
1258 pdata->l3_next_proto_restriction_value = IPPROTO_TCP; in sfc_mae_rule_parse_item_tcp()
1259 pdata->l3_next_proto_restriction_mask = 0xff; in sfc_mae_rule_parse_item_tcp()
1287 struct sfc_mae_pattern_data *pdata = &ctx_mae->pattern_data; in sfc_mae_rule_parse_item_udp() local
1304 pdata->l3_next_proto_restriction_value = IPPROTO_UDP; in sfc_mae_rule_parse_item_udp()
1305 pdata->l3_next_proto_restriction_mask = 0xff; in sfc_mae_rule_parse_item_udp()