Home
last modified time | relevance | path

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

/f-stack/dpdk/drivers/net/iavf/
H A Diavf_fdir.c460 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(&eth_mask->src) || in iavf_fdir_parse_pattern()
514 !rte_is_zero_ether_addr(&eth_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 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()
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 Dice_switch_filter.c543 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 Dice_acl_filter.c650 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(&eth_mask->src) || in ice_acl_parse_pattern()
668 rte_is_broadcast_ether_addr(&eth_mask->dst)) { in ice_acl_parse_pattern()
676 !rte_is_zero_ether_addr(&eth_mask->src)) { in ice_acl_parse_pattern()
683 &eth_mask->src, in ice_acl_parse_pattern()
689 !rte_is_zero_ether_addr(&eth_mask->dst)) { in ice_acl_parse_pattern()
696 &eth_mask->dst, in ice_acl_parse_pattern()
H A Dice_fdir_filter.c1640 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(&eth_mask->dst)) { in ice_fdir_parse_pattern()
1683 if (!rte_is_zero_ether_addr(&eth_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 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 …]
/f-stack/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
195 eth_mask = item->mask; in bnxt_validate_and_parse_flow_type()
202 if ((!rte_is_zero_ether_addr(&eth_mask->src) && in bnxt_validate_and_parse_flow_type()
203 !rte_is_broadcast_ether_addr(&eth_mask->src)) || in bnxt_validate_and_parse_flow_type()
204 (!rte_is_zero_ether_addr(&eth_mask->dst) && in bnxt_validate_and_parse_flow_type()
205 !rte_is_broadcast_ether_addr(&eth_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(&eth_mask->dst)) { in bnxt_validate_and_parse_flow_type()
248 if (rte_is_broadcast_ether_addr(&eth_mask->src)) { in bnxt_validate_and_parse_flow_type()
[all …]
/f-stack/dpdk/app/test-flow-perf/
H A Ditems_gen.c26 static struct rte_flow_item_eth eth_mask; in add_ether() local
29 memset(&eth_mask, 0, sizeof(struct rte_flow_item_eth)); in add_ether()
33 items[items_counter].mask = &eth_mask; in add_ether()
/f-stack/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()
/f-stack/dpdk/drivers/net/bnxt/tf_ulp/
H A Dulp_rte_parser.c648 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, &eth_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 Dhns3_flow.c440 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(&eth_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(&eth_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 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.c385 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 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()
/f-stack/dpdk/drivers/net/mlx4/
H A Dmlx4_flow.c1304 const struct rte_flow_item_eth eth_mask = { in mlx4_flow_internal() local
1321 .mask = &eth_mask, in mlx4_flow_internal()
1400 mac = &eth_mask.dst; in mlx4_flow_internal()
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5.h1223 struct rte_flow_item_eth *eth_mask,
1228 struct rte_flow_item_eth *eth_mask);
H A Dmlx5_flow_dv.c558 struct rte_flow_item_eth eth_mask; in flow_dv_convert_action_modify_mac() local
561 memset(&eth_mask, 0, sizeof(eth_mask)); in flow_dv_convert_action_modify_mac()
565 memcpy(&eth_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(&eth_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 = &eth_mask; in flow_dv_convert_action_modify_mac()
H A Dmlx5_flow.c5931 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 Dff_dpdk_if.c1012 struct rte_flow_item_eth eth_mask = { in init_flow() local
1021 pattern_[0].mask = &eth_mask; in init_flow()