Home
last modified time | relevance | path

Searched refs:eth_mask (Results 1 – 19 of 19) sorted by relevance

/dpdk/drivers/net/i40e/
H A Di40e_flow.c2066 eth_mask = item->mask; in i40e_flow_parse_ethertype_pattern()
2068 if (!eth_spec || !eth_mask) { in i40e_flow_parse_ethertype_pattern()
2409 eth_mask = item->mask; in i40e_flow_parse_fdir_pattern()
2421 if (eth_spec && eth_mask) { in i40e_flow_parse_fdir_pattern()
2448 if (eth_spec && eth_mask && in i40e_flow_parse_fdir_pattern()
3673 eth_mask = item->mask; in i40e_flow_parse_vxlan_pattern()
3688 if (eth_spec && eth_mask) { in i40e_flow_parse_vxlan_pattern()
3694 eth_mask->type) { in i40e_flow_parse_vxlan_pattern()
3903 eth_mask = item->mask; in i40e_flow_parse_nvgre_pattern()
3918 if (eth_spec && eth_mask) { in i40e_flow_parse_nvgre_pattern()
[all …]
/dpdk/drivers/net/txgbe/
H A Dtxgbe_flow.c155 const struct rte_flow_item_eth *eth_mask; in cons_parse_ntuple_filter() local
234 eth_mask = item->mask; in cons_parse_ntuple_filter()
653 const struct rte_flow_item_eth *eth_mask; in cons_parse_ethertype_filter() local
703 eth_mask = item->mask; in cons_parse_ethertype_filter()
1544 const struct rte_flow_item_eth *eth_mask; in txgbe_parse_fdir_filter_normal() local
1637 eth_mask = item->mask; in txgbe_parse_fdir_filter_normal()
1640 if (eth_mask->type || in txgbe_parse_fdir_filter_normal()
1657 if (eth_mask->src.addr_bytes[j] || in txgbe_parse_fdir_filter_normal()
2364 eth_mask = item->mask; in txgbe_parse_fdir_filter_tunnel()
2367 if (eth_mask->type) { in txgbe_parse_fdir_filter_tunnel()
[all …]
/dpdk/drivers/net/ice/
H A Dice_acl_filter.c661 const struct rte_flow_item_eth *eth_spec, *eth_mask; in ice_acl_parse_pattern() local
675 eth_mask = item->mask; in ice_acl_parse_pattern()
677 if (eth_spec && eth_mask) { in ice_acl_parse_pattern()
678 if (rte_is_broadcast_ether_addr(&eth_mask->src) || in ice_acl_parse_pattern()
679 rte_is_broadcast_ether_addr(&eth_mask->dst)) { in ice_acl_parse_pattern()
687 !rte_is_zero_ether_addr(&eth_mask->src)) { in ice_acl_parse_pattern()
694 &eth_mask->src, in ice_acl_parse_pattern()
700 !rte_is_zero_ether_addr(&eth_mask->dst)) { in ice_acl_parse_pattern()
707 &eth_mask->dst, in ice_acl_parse_pattern()
H A Dice_switch_filter.c593 eth_mask = item->mask; in ice_switch_parse_pattern()
594 if (eth_spec && eth_mask) { in ice_switch_parse_pattern()
613 if (eth_mask->type) in ice_switch_parse_pattern()
623 if (eth_mask->src.addr_bytes[j]) { in ice_switch_parse_pattern()
627 eth_mask->src.addr_bytes[j]; in ice_switch_parse_pattern()
631 if (eth_mask->dst.addr_bytes[j]) { in ice_switch_parse_pattern()
635 eth_mask->dst.addr_bytes[j]; in ice_switch_parse_pattern()
642 if (eth_mask->type) { in ice_switch_parse_pattern()
647 eth_mask->type; in ice_switch_parse_pattern()
1844 eth_mask = item->mask; in ice_switch_parse_pattern_action()
[all …]
H A Dice_fdir_filter.c1801 const struct rte_flow_item_eth *eth_spec, *eth_mask; in ice_fdir_parse_pattern() local
1969 eth_mask = item->mask; in ice_fdir_parse_pattern()
1971 if (!(eth_spec && eth_mask)) in ice_fdir_parse_pattern()
1974 if (!rte_is_zero_ether_addr(&eth_mask->dst)) in ice_fdir_parse_pattern()
1976 if (!rte_is_zero_ether_addr(&eth_mask->src)) in ice_fdir_parse_pattern()
1981 if (eth_mask->type == RTE_BE16(0xffff) && in ice_fdir_parse_pattern()
/dpdk/drivers/net/ixgbe/
H A Dixgbe_flow.c189 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, &eth_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 …]
/dpdk/drivers/net/bnxt/
H A Dbnxt_flow.c141 const struct rte_flow_item_eth *eth_spec, *eth_mask; in bnxt_validate_and_parse_flow_type() local
197 eth_mask = item->mask; in bnxt_validate_and_parse_flow_type()
199 eth_mask = &rte_flow_item_eth_mask; in bnxt_validate_and_parse_flow_type()
206 if ((!rte_is_zero_ether_addr(&eth_mask->src) && in bnxt_validate_and_parse_flow_type()
207 !rte_is_broadcast_ether_addr(&eth_mask->src)) || in bnxt_validate_and_parse_flow_type()
208 (!rte_is_zero_ether_addr(&eth_mask->dst) && in bnxt_validate_and_parse_flow_type()
219 if (eth_mask->type && in bnxt_validate_and_parse_flow_type()
220 eth_mask->type != RTE_BE16(0xffff)) { in bnxt_validate_and_parse_flow_type()
228 if (rte_is_broadcast_ether_addr(&eth_mask->dst)) { in bnxt_validate_and_parse_flow_type()
252 if (rte_is_broadcast_ether_addr(&eth_mask->src)) { in bnxt_validate_and_parse_flow_type()
[all …]
/dpdk/drivers/net/iavf/
H A Diavf_fdir.c723 const struct rte_flow_item_eth *eth_spec, *eth_mask; in iavf_fdir_parse_pattern() local
770 eth_mask = item->mask; in iavf_fdir_parse_pattern()
778 (!eth_spec || !eth_mask)) { in iavf_fdir_parse_pattern()
785 if (eth_spec && eth_mask) { in iavf_fdir_parse_pattern()
786 if (!rte_is_zero_ether_addr(&eth_mask->dst)) { in iavf_fdir_parse_pattern()
791 } else if (!rte_is_zero_ether_addr(&eth_mask->src)) { in iavf_fdir_parse_pattern()
798 if (eth_mask->type) { in iavf_fdir_parse_pattern()
799 if (eth_mask->type != RTE_BE16(0xffff)) { in iavf_fdir_parse_pattern()
/dpdk/drivers/net/e1000/
H A Digb_flow.c498 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(&eth_mask->src) || in cons_parse_ethertype_filter()
559 (!rte_is_zero_ether_addr(&eth_mask->dst) && in cons_parse_ethertype_filter()
560 !rte_is_broadcast_ether_addr(&eth_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(&eth_mask->dst)) { in cons_parse_ethertype_filter()
/dpdk/app/test-flow-perf/
H A Ditems_gen.c27 static struct rte_flow_item_eth eth_mask; in add_ether() local
31 items[items_counter].mask = &eth_mask; in add_ether()
/dpdk/drivers/net/hns3/
H A Dhns3_flow.c498 const struct rte_flow_item_eth *eth_mask; in hns3_parse_eth() local
505 eth_mask = item->mask; in hns3_parse_eth()
506 if (eth_mask->type) { in hns3_parse_eth()
509 rte_be_to_cpu_16(eth_mask->type); in hns3_parse_eth()
511 if (!rte_is_zero_ether_addr(&eth_mask->src)) { in hns3_parse_eth()
514 eth_mask->src.addr_bytes, RTE_ETHER_ADDR_LEN); in hns3_parse_eth()
516 if (!rte_is_zero_ether_addr(&eth_mask->dst)) { in hns3_parse_eth()
519 eth_mask->dst.addr_bytes, RTE_ETHER_ADDR_LEN); in hns3_parse_eth()
/dpdk/drivers/net/enic/
H A Denic_flow.c687 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 Denic_fm_flow.c441 struct rte_ether_hdr *eth_mask; in enic_fm_copy_item_vlan() local
461 eth_mask = (void *)&fm_mask->l2.eth; in enic_fm_copy_item_vlan()
468 if (eth_mask->ether_type && mask->inner_type) in enic_fm_copy_item_vlan()
477 eth_mask->ether_type = mask->inner_type; in enic_fm_copy_item_vlan()
/dpdk/drivers/net/hinic/
H A Dhinic_pmd_flow.c295 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(&eth_mask->src) || in cons_parse_ethertype_filter()
314 (!rte_is_zero_ether_addr(&eth_mask->dst) && in cons_parse_ethertype_filter()
315 !rte_is_broadcast_ether_addr(&eth_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(&eth_mask->dst)) { in cons_parse_ethertype_filter()
/dpdk/drivers/net/mlx4/
H A Dmlx4_flow.c1306 const struct rte_flow_item_eth eth_mask = { in mlx4_flow_internal() local
1323 .mask = &eth_mask, in mlx4_flow_internal()
1402 mac = &eth_mask.dst; in mlx4_flow_internal()
/dpdk/drivers/net/bnxt/tf_ulp/
H A Dulp_rte_parser.c755 const struct rte_flow_item_eth *eth_mask = item->mask; in ulp_rte_eth_hdr_handler() local
786 ulp_deference_struct(eth_mask, dst.addr_bytes), in ulp_rte_eth_hdr_handler()
792 ulp_deference_struct(eth_mask, src.addr_bytes), in ulp_rte_eth_hdr_handler()
798 ulp_deference_struct(eth_mask, type), in ulp_rte_eth_hdr_handler()
/dpdk/drivers/net/mlx5/
H A Dmlx5.h1805 struct rte_flow_item_eth *eth_mask,
1810 struct rte_flow_item_eth *eth_mask);
H A Dmlx5_flow_dv.c656 struct rte_flow_item_eth eth_mask; in flow_dv_convert_action_modify_mac() local
659 memset(&eth_mask, 0, sizeof(eth_mask)); in flow_dv_convert_action_modify_mac()
663 memcpy(&eth_mask.src.addr_bytes, in flow_dv_convert_action_modify_mac()
665 sizeof(eth_mask.src.addr_bytes)); in flow_dv_convert_action_modify_mac()
669 memcpy(&eth_mask.dst.addr_bytes, in flow_dv_convert_action_modify_mac()
671 sizeof(eth_mask.dst.addr_bytes)); in flow_dv_convert_action_modify_mac()
674 item.mask = &eth_mask; in flow_dv_convert_action_modify_mac()
H A Dmlx5_flow.c7611 struct rte_flow_item_eth *eth_mask, in mlx5_ctrl_flow_vlan() argument
7625 .mask = eth_mask, in mlx5_ctrl_flow_vlan()
7691 struct rte_flow_item_eth *eth_mask) in mlx5_ctrl_flow() argument
7693 return mlx5_ctrl_flow_vlan(dev, eth_spec, eth_mask, NULL, NULL); in mlx5_ctrl_flow()