| /f-stack/dpdk/drivers/net/iavf/ |
| H A D | iavf_fdir.c | 460 const struct rte_flow_item_eth *eth_spec, *eth_mask; in iavf_fdir_parse_pattern() local 497 eth_mask = item->mask; in iavf_fdir_parse_pattern() 505 (!eth_spec || !eth_mask)) { in iavf_fdir_parse_pattern() 512 if (eth_spec && eth_mask) { in iavf_fdir_parse_pattern() 513 if (!rte_is_zero_ether_addr(ð_mask->src) || in iavf_fdir_parse_pattern() 514 !rte_is_zero_ether_addr(ð_mask->dst)) { in iavf_fdir_parse_pattern() 522 if (eth_spec && eth_mask && eth_mask->type) { in iavf_fdir_parse_pattern() 523 if (eth_mask->type != RTE_BE16(0xffff)) { in iavf_fdir_parse_pattern()
|
| /f-stack/dpdk/drivers/net/i40e/ |
| H A D | i40e_flow.c | 2066 eth_mask = item->mask; in i40e_flow_parse_ethertype_pattern() 2068 if (!eth_spec || !eth_mask) { in i40e_flow_parse_ethertype_pattern() 2486 eth_mask = item->mask; in i40e_flow_parse_fdir_pattern() 2498 if (eth_spec && eth_mask) { in i40e_flow_parse_fdir_pattern() 2525 if (eth_spec && eth_mask && in i40e_flow_parse_fdir_pattern() 3677 eth_mask = item->mask; in i40e_flow_parse_vxlan_pattern() 3692 if (eth_spec && eth_mask) { in i40e_flow_parse_vxlan_pattern() 3698 eth_mask->type) { in i40e_flow_parse_vxlan_pattern() 3907 eth_mask = item->mask; in i40e_flow_parse_nvgre_pattern() 3922 if (eth_spec && eth_mask) { in i40e_flow_parse_nvgre_pattern() [all …]
|
| /f-stack/dpdk/drivers/net/ice/ |
| H A D | ice_switch_filter.c | 543 eth_mask = item->mask; in ice_switch_inset_get() 544 if (eth_spec && eth_mask) { in ice_switch_inset_get() 569 if (eth_mask->type) in ice_switch_inset_get() 579 if (eth_mask->src.addr_bytes[j]) { in ice_switch_inset_get() 583 eth_mask->src.addr_bytes[j]; in ice_switch_inset_get() 587 if (eth_mask->dst.addr_bytes[j]) { in ice_switch_inset_get() 591 eth_mask->dst.addr_bytes[j]; in ice_switch_inset_get() 598 if (eth_mask->type) { in ice_switch_inset_get() 603 eth_mask->type; in ice_switch_inset_get() 1671 eth_mask = item->mask; in ice_switch_parse_pattern_action() [all …]
|
| H A D | ice_acl_filter.c | 650 const struct rte_flow_item_eth *eth_spec, *eth_mask; in ice_acl_parse_pattern() local 664 eth_mask = item->mask; in ice_acl_parse_pattern() 666 if (eth_spec && eth_mask) { in ice_acl_parse_pattern() 667 if (rte_is_broadcast_ether_addr(ð_mask->src) || in ice_acl_parse_pattern() 668 rte_is_broadcast_ether_addr(ð_mask->dst)) { in ice_acl_parse_pattern() 676 !rte_is_zero_ether_addr(ð_mask->src)) { in ice_acl_parse_pattern() 683 ð_mask->src, in ice_acl_parse_pattern() 689 !rte_is_zero_ether_addr(ð_mask->dst)) { in ice_acl_parse_pattern() 696 ð_mask->dst, in ice_acl_parse_pattern()
|
| H A D | ice_fdir_filter.c | 1640 const struct rte_flow_item_eth *eth_spec, *eth_mask; in ice_fdir_parse_pattern() local 1672 eth_mask = item->mask; in ice_fdir_parse_pattern() 1675 if (eth_spec && eth_mask) { in ice_fdir_parse_pattern() 1676 if (!rte_is_zero_ether_addr(ð_mask->dst)) { in ice_fdir_parse_pattern() 1683 if (!rte_is_zero_ether_addr(ð_mask->src)) { in ice_fdir_parse_pattern() 1691 if (eth_mask->type == RTE_BE16(0xffff) && in ice_fdir_parse_pattern()
|
| /f-stack/dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_flow.c | 189 const struct rte_flow_item_eth *eth_mask; in cons_parse_ntuple_filter() local 268 eth_mask = item->mask; in cons_parse_ntuple_filter() 282 memcmp(eth_mask, ð_null, in cons_parse_ntuple_filter() 691 const struct rte_flow_item_eth *eth_mask; in cons_parse_ethertype_filter() local 741 eth_mask = item->mask; in cons_parse_ethertype_filter() 1709 eth_mask = item->mask; in ixgbe_parse_fdir_filter_normal() 1712 if (eth_mask->type || in ixgbe_parse_fdir_filter_normal() 1729 if (eth_mask->src.addr_bytes[j] || in ixgbe_parse_fdir_filter_normal() 2642 eth_mask = item->mask; in ixgbe_parse_fdir_filter_tunnel() 2645 if (eth_mask->type) { in ixgbe_parse_fdir_filter_tunnel() [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/ |
| H A D | bnxt_flow.c | 141 const struct rte_flow_item_eth *eth_spec, *eth_mask; in bnxt_validate_and_parse_flow_type() local 195 eth_mask = item->mask; in bnxt_validate_and_parse_flow_type() 202 if ((!rte_is_zero_ether_addr(ð_mask->src) && in bnxt_validate_and_parse_flow_type() 203 !rte_is_broadcast_ether_addr(ð_mask->src)) || in bnxt_validate_and_parse_flow_type() 204 (!rte_is_zero_ether_addr(ð_mask->dst) && in bnxt_validate_and_parse_flow_type() 205 !rte_is_broadcast_ether_addr(ð_mask->dst))) { in bnxt_validate_and_parse_flow_type() 215 if (eth_mask->type && in bnxt_validate_and_parse_flow_type() 216 eth_mask->type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type() 224 if (rte_is_broadcast_ether_addr(ð_mask->dst)) { in bnxt_validate_and_parse_flow_type() 248 if (rte_is_broadcast_ether_addr(ð_mask->src)) { in bnxt_validate_and_parse_flow_type() [all …]
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | items_gen.c | 26 static struct rte_flow_item_eth eth_mask; in add_ether() local 29 memset(ð_mask, 0, sizeof(struct rte_flow_item_eth)); in add_ether() 33 items[items_counter].mask = ð_mask; in add_ether()
|
| /f-stack/dpdk/drivers/net/e1000/ |
| H A D | igb_flow.c | 498 const struct rte_flow_item_eth *eth_mask; in cons_parse_ethertype_filter() local 552 eth_mask = item->mask; in cons_parse_ethertype_filter() 558 if (!rte_is_zero_ether_addr(ð_mask->src) || in cons_parse_ethertype_filter() 559 (!rte_is_zero_ether_addr(ð_mask->dst) && in cons_parse_ethertype_filter() 560 !rte_is_broadcast_ether_addr(ð_mask->dst))) { in cons_parse_ethertype_filter() 567 if ((eth_mask->type & UINT16_MAX) != UINT16_MAX) { in cons_parse_ethertype_filter() 577 if (rte_is_broadcast_ether_addr(ð_mask->dst)) { in cons_parse_ethertype_filter()
|
| /f-stack/dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_rte_parser.c | 648 const struct rte_flow_item_eth *eth_mask = item->mask; in ulp_rte_eth_hdr_handler() local 681 if (eth_mask) { in ulp_rte_eth_hdr_handler() 682 ulp_rte_prsr_mask_copy(params, &idx, eth_mask->dst.addr_bytes, in ulp_rte_eth_hdr_handler() 683 sizeof(eth_mask->dst.addr_bytes)); in ulp_rte_eth_hdr_handler() 684 ulp_rte_prsr_mask_copy(params, &idx, eth_mask->src.addr_bytes, in ulp_rte_eth_hdr_handler() 685 sizeof(eth_mask->src.addr_bytes)); in ulp_rte_eth_hdr_handler() 686 ulp_rte_prsr_mask_copy(params, &idx, ð_mask->type, in ulp_rte_eth_hdr_handler() 687 sizeof(eth_mask->type)); in ulp_rte_eth_hdr_handler()
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_flow.c | 440 const struct rte_flow_item_eth *eth_mask; in hns3_parse_eth() local 452 eth_mask = item->mask; in hns3_parse_eth() 453 if (eth_mask->type) { in hns3_parse_eth() 456 rte_be_to_cpu_16(eth_mask->type); in hns3_parse_eth() 458 if (!rte_is_zero_ether_addr(ð_mask->src)) { in hns3_parse_eth() 461 eth_mask->src.addr_bytes, RTE_ETHER_ADDR_LEN); in hns3_parse_eth() 463 if (!rte_is_zero_ether_addr(ð_mask->dst)) { in hns3_parse_eth() 466 eth_mask->dst.addr_bytes, RTE_ETHER_ADDR_LEN); in hns3_parse_eth()
|
| /f-stack/dpdk/drivers/net/enic/ |
| H A D | enic_flow.c | 687 struct rte_ether_hdr *eth_mask; in enic_copy_item_vlan_v2() local 699 eth_mask = (void *)gp->layer[FILTER_GENERIC_1_L2].mask; in enic_copy_item_vlan_v2() 702 if (eth_mask->ether_type) in enic_copy_item_vlan_v2() 717 vlan = (struct rte_vlan_hdr *)(eth_mask + 1); in enic_copy_item_vlan_v2() 722 eth_mask->ether_type = mask->inner_type; in enic_copy_item_vlan_v2()
|
| H A D | enic_fm_flow.c | 385 struct rte_ether_hdr *eth_mask; in enic_fm_copy_item_vlan() local 405 eth_mask = (void *)&fm_mask->l2.eth; in enic_fm_copy_item_vlan() 412 if (eth_mask->ether_type && mask->inner_type) in enic_fm_copy_item_vlan() 421 eth_mask->ether_type = mask->inner_type; in enic_fm_copy_item_vlan()
|
| /f-stack/dpdk/drivers/net/hinic/ |
| H A D | hinic_pmd_flow.c | 295 const struct rte_flow_item_eth *eth_mask; in cons_parse_ethertype_filter() local 306 eth_mask = (const struct rte_flow_item_eth *)item->mask; in cons_parse_ethertype_filter() 313 if (!rte_is_zero_ether_addr(ð_mask->src) || in cons_parse_ethertype_filter() 314 (!rte_is_zero_ether_addr(ð_mask->dst) && in cons_parse_ethertype_filter() 315 !rte_is_broadcast_ether_addr(ð_mask->dst))) { in cons_parse_ethertype_filter() 321 if ((eth_mask->type & UINT16_MAX) != UINT16_MAX) { in cons_parse_ethertype_filter() 331 if (rte_is_broadcast_ether_addr(ð_mask->dst)) { in cons_parse_ethertype_filter()
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_flow.c | 1304 const struct rte_flow_item_eth eth_mask = { in mlx4_flow_internal() local 1321 .mask = ð_mask, in mlx4_flow_internal() 1400 mac = ð_mask.dst; in mlx4_flow_internal()
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5.h | 1223 struct rte_flow_item_eth *eth_mask, 1228 struct rte_flow_item_eth *eth_mask);
|
| H A D | mlx5_flow_dv.c | 558 struct rte_flow_item_eth eth_mask; in flow_dv_convert_action_modify_mac() local 561 memset(ð_mask, 0, sizeof(eth_mask)); in flow_dv_convert_action_modify_mac() 565 memcpy(ð_mask.src.addr_bytes, in flow_dv_convert_action_modify_mac() 567 sizeof(eth_mask.src.addr_bytes)); in flow_dv_convert_action_modify_mac() 571 memcpy(ð_mask.dst.addr_bytes, in flow_dv_convert_action_modify_mac() 573 sizeof(eth_mask.dst.addr_bytes)); in flow_dv_convert_action_modify_mac() 576 item.mask = ð_mask; in flow_dv_convert_action_modify_mac()
|
| H A D | mlx5_flow.c | 5931 struct rte_flow_item_eth *eth_mask, in mlx5_ctrl_flow_vlan() argument 5945 .mask = eth_mask, in mlx5_ctrl_flow_vlan() 6011 struct rte_flow_item_eth *eth_mask) in mlx5_ctrl_flow() argument 6013 return mlx5_ctrl_flow_vlan(dev, eth_spec, eth_mask, NULL, NULL); in mlx5_ctrl_flow()
|
| /f-stack/lib/ |
| H A D | ff_dpdk_if.c | 1012 struct rte_flow_item_eth eth_mask = { in init_flow() local 1021 pattern_[0].mask = ð_mask; in init_flow()
|