Home
last modified time | relevance | path

Searched refs:fltr (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_fdir.c38 struct iavf_fdir_fltr *fltr) in iavf_validate_fdir_fltr_masks() argument
40 if (fltr->eth_mask.etype && fltr->eth_mask.etype != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks()
43 if (fltr->ip_ver == 4) { in iavf_validate_fdir_fltr_masks()
44 if (fltr->ip_mask.v4_addrs.src_ip && in iavf_validate_fdir_fltr_masks()
45 fltr->ip_mask.v4_addrs.src_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks()
48 if (fltr->ip_mask.v4_addrs.dst_ip && in iavf_validate_fdir_fltr_masks()
49 fltr->ip_mask.v4_addrs.dst_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks()
52 if (fltr->ip_mask.tos && fltr->ip_mask.tos != U8_MAX) in iavf_validate_fdir_fltr_masks()
54 } else if (fltr->ip_ver == 6) { in iavf_validate_fdir_fltr_masks()
55 if (memcmp(&fltr->ip_mask.v6_addrs.src_ip, &ipv6_addr_zero_mask, in iavf_validate_fdir_fltr_masks()
[all …]
Diavf_ethtool.c994 struct iavf_fdir_fltr *fltr) in iavf_parse_rx_flow_user_data() argument
1020 flex = &fltr->flex_words[cnt++]; in iavf_parse_rx_flow_user_data()
1028 fltr->flex_cnt = cnt; in iavf_parse_rx_flow_user_data()
1040 struct iavf_fdir_fltr *fltr) in iavf_fill_rx_flow_ext_data() argument
1042 if (!fltr->ext_mask.usr_def[0] && !fltr->ext_mask.usr_def[1]) in iavf_fill_rx_flow_ext_data()
1047 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data()
1048 memcpy(fsp->m_ext.data, fltr->ext_mask.usr_def, sizeof(fsp->m_ext.data)); in iavf_fill_rx_flow_ext_data()
1204 struct iavf_fdir_fltr *fltr; in iavf_get_fdir_fltr_ids() local
1215 list_for_each_entry(fltr, &adapter->fdir_list_head, list) { in iavf_get_fdir_fltr_ids()
1220 rule_locs[cnt] = fltr->loc; in iavf_get_fdir_fltr_ids()
[all …]
Diavf_fdir.h127 struct iavf_fdir_fltr *fltr);
128 int iavf_fill_fdir_add_msg(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr);
129 void iavf_print_fdir_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr);
130 bool iavf_fdir_is_dup_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr);
131 void iavf_fdir_list_add_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr);
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c22 struct ice_tc_flower_fltr *fltr) in ice_tc_count_lkups() argument
178 ice_tc_fill_tunnel_outer(u32 flags, struct ice_tc_flower_fltr *fltr, in ice_tc_fill_tunnel_outer() argument
181 struct ice_tc_flower_lyr_2_4_hdrs *hdr = &fltr->outer_headers; in ice_tc_fill_tunnel_outer()
186 list[i].type = ice_proto_type_from_tunnel(fltr->tunnel_type); in ice_tc_fill_tunnel_outer()
187 switch (fltr->tunnel_type) { in ice_tc_fill_tunnel_outer()
190 tenant_id = be32_to_cpu(fltr->tenant_id) << 8; in ice_tc_fill_tunnel_outer()
196 list[i].h_u.nvgre_hdr.tni_flow = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
203 list[i].h_u.gtp_hdr.teid = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
223 (fltr->tunnel_type == TNL_GTPU || fltr->tunnel_type == TNL_GTPC)) { in ice_tc_fill_tunnel_outer()
224 list[i].type = ice_proto_type_from_tunnel(fltr->tunnel_type); in ice_tc_fill_tunnel_outer()
[all …]
Dice_virtchnl_fdir.c290 ice_vc_fdir_set_flow_fld(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_set_flow_fld() argument
294 struct virtchnl_fdir_rule *rule = &fltr->rule_cfg; in ice_vc_fdir_set_flow_fld()
752 ice_vc_fdir_config_input_set(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_config_input_set() argument
779 ret = ice_vc_fdir_set_flow_fld(vf, fltr, conf, seg); in ice_vc_fdir_config_input_set()
818 ice_vc_fdir_parse_pattern(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_parse_pattern() argument
821 struct virtchnl_proto_hdrs *proto = &fltr->rule_cfg.proto_hdrs; in ice_vc_fdir_parse_pattern()
1042 ice_vc_fdir_parse_action(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_parse_action() argument
1045 struct virtchnl_filter_action_set *as = &fltr->rule_cfg.action_set; in ice_vc_fdir_parse_action()
1116 ice_vc_validate_fdir_fltr(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_validate_fdir_fltr() argument
1119 struct virtchnl_proto_hdrs *proto = &fltr->rule_cfg.proto_hdrs; in ice_vc_validate_fdir_fltr()
[all …]
Dice_fdir.c1162 void ice_fdir_list_add_fltr(struct ice_hw *hw, struct ice_fdir_fltr *fltr) in ice_fdir_list_add_fltr() argument
1168 if (rule->fltr_id >= fltr->fltr_id) in ice_fdir_list_add_fltr()
1174 list_add(&fltr->fltr_node, &parent->fltr_node); in ice_fdir_list_add_fltr()
1176 list_add(&fltr->fltr_node, &hw->fdir_list_head); in ice_fdir_list_add_fltr()
Dice_main.c8428 struct ice_tc_flower_fltr *fltr; in ice_rem_all_chnl_fltrs() local
8432 hlist_for_each_entry_safe(fltr, node, in ice_rem_all_chnl_fltrs()
8439 if (!ice_is_chnl_fltr(fltr)) in ice_rem_all_chnl_fltrs()
8442 rule.rid = fltr->rid; in ice_rem_all_chnl_fltrs()
8443 rule.rule_id = fltr->rule_id; in ice_rem_all_chnl_fltrs()
8444 rule.vsi_handle = fltr->dest_vsi_handle; in ice_rem_all_chnl_fltrs()
8453 } else if (fltr->dest_vsi) { in ice_rem_all_chnl_fltrs()
8455 if (fltr->dest_vsi->type == ICE_VSI_CHNL) { in ice_rem_all_chnl_fltrs()
8456 u32 flags = fltr->flags; in ice_rem_all_chnl_fltrs()
8458 fltr->dest_vsi->num_chnl_fltr--; in ice_rem_all_chnl_fltrs()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c127 qede_free_arfs_filter(struct qede_dev *edev, struct qede_arfs_fltr_node *fltr) in qede_free_arfs_filter() argument
129 kfree(fltr->data); in qede_free_arfs_filter()
131 if (fltr->sw_id < QEDE_RFS_MAX_FLTR) in qede_free_arfs_filter()
132 clear_bit(fltr->sw_id, edev->arfs->arfs_fltr_bmap); in qede_free_arfs_filter()
134 kfree(fltr); in qede_free_arfs_filter()
139 struct qede_arfs_fltr_node *fltr, in qede_enqueue_fltr_and_config_searcher() argument
142 fltr->mapping = dma_map_single(&edev->pdev->dev, fltr->data, in qede_enqueue_fltr_and_config_searcher()
143 fltr->buf_len, DMA_TO_DEVICE); in qede_enqueue_fltr_and_config_searcher()
144 if (dma_mapping_error(&edev->pdev->dev, fltr->mapping)) { in qede_enqueue_fltr_and_config_searcher()
146 qede_free_arfs_filter(edev, fltr); in qede_enqueue_fltr_and_config_searcher()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_offload.py527 fltr = {}
529 fltr[flag] = flag in words
533 fltr[name] = words[idx + 1]
536 filters.append(fltr)
848 fltr = ingress[0] variable
849 fail(not fltr["in_hw"], "Filter not offloaded by default")
858 fltr = ingress[0] variable
859 fail(not fltr["in_hw"], "Bytecode not offloaded by default")
937 fltr = ingress[0] variable
938 fail(fltr["skip_hw"], "TC does reports 'skip_hw' on offloaded filter")
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c4454 struct bnxt_ntuple_filter *fltr; in bnxt_free_ntp_fltrs() local
4457 hlist_for_each_entry_safe(fltr, tmp, head, hash) { in bnxt_free_ntp_fltrs()
4458 hlist_del(&fltr->hash); in bnxt_free_ntp_fltrs()
4459 kfree(fltr); in bnxt_free_ntp_fltrs()
4917 struct bnxt_ntuple_filter *fltr) in bnxt_hwrm_cfa_ntuple_filter_free() argument
4926 req->ntuple_filter_id = fltr->filter_id; in bnxt_hwrm_cfa_ntuple_filter_free()
4950 struct bnxt_ntuple_filter *fltr) in bnxt_hwrm_cfa_ntuple_filter_alloc() argument
4954 struct flow_keys *keys = &fltr->fkeys; in bnxt_hwrm_cfa_ntuple_filter_alloc()
4963 req->l2_filter_id = bp->vnic_info[0].fw_l2_filter_id[fltr->l2_fltr_idx]; in bnxt_hwrm_cfa_ntuple_filter_alloc()
4967 req->dst_id = cpu_to_le16(fltr->rxq); in bnxt_hwrm_cfa_ntuple_filter_alloc()
[all …]
Dbnxt_ethtool.c1002 struct bnxt_ntuple_filter *fltr; in bnxt_grxclsrlall() local
1006 hlist_for_each_entry_rcu(fltr, head, hash) { in bnxt_grxclsrlall()
1009 rule_locs[j++] = fltr->sw_id; in bnxt_grxclsrlall()
1023 struct bnxt_ntuple_filter *fltr; in bnxt_grxclsrule() local
1035 hlist_for_each_entry_rcu(fltr, head, hash) { in bnxt_grxclsrule()
1036 if (fltr->sw_id == fs->location) in bnxt_grxclsrule()
1044 fkeys = &fltr->fkeys; in bnxt_grxclsrule()
1089 fs->ring_cookie = fltr->rxq; in bnxt_grxclsrule()
/linux-6.6.21/include/linux/qed/
Dqed_if.h818 void (*arfs_filter_op)(void *dev, void *fltr, u8 fw_rc);