/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_fdir.c | 25 static u16 iavf_pkt_udp_no_pay_len(struct iavf_fdir_fltr *fltr) in iavf_pkt_udp_no_pay_len() argument 28 (fltr->ip_ver == 4 ? sizeof(struct iphdr) : sizeof(struct ipv6hdr)) + in iavf_pkt_udp_no_pay_len() 40 iavf_fill_fdir_gtpu_hdr(struct iavf_fdir_fltr *fltr, in iavf_fill_fdir_gtpu_hdr() argument 51 adj_offs = iavf_pkt_udp_no_pay_len(fltr); in iavf_fill_fdir_gtpu_hdr() 53 for (i = 0; i < fltr->flex_cnt; i++) { in iavf_fill_fdir_gtpu_hdr() 64 if (fltr->flex_words[i].offset < adj_offs) in iavf_fill_fdir_gtpu_hdr() 67 hdr_offs = fltr->flex_words[i].offset - adj_offs; in iavf_fill_fdir_gtpu_hdr() 74 pay_word[hdr_offs >> 1] = htons(fltr->flex_words[i].word); in iavf_fill_fdir_gtpu_hdr() 79 if ((fltr->flex_words[i].word & in iavf_fill_fdir_gtpu_hdr() 91 fltr->flex_words[i].word & in iavf_fill_fdir_gtpu_hdr() [all …]
|
D | iavf_ethtool.c | 996 struct iavf_fdir_fltr *fltr) in iavf_parse_rx_flow_user_data() argument 1022 flex = &fltr->flex_words[cnt++]; in iavf_parse_rx_flow_user_data() 1030 fltr->flex_cnt = cnt; in iavf_parse_rx_flow_user_data() 1042 struct iavf_fdir_fltr *fltr) in iavf_fill_rx_flow_ext_data() argument 1044 if (!fltr->ext_mask.usr_def[0] && !fltr->ext_mask.usr_def[1]) in iavf_fill_rx_flow_ext_data() 1049 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data() 1050 memcpy(fsp->m_ext.data, fltr->ext_mask.usr_def, sizeof(fsp->m_ext.data)); in iavf_fill_rx_flow_ext_data() 1206 struct iavf_fdir_fltr *fltr; in iavf_get_fdir_fltr_ids() local 1217 list_for_each_entry(fltr, &adapter->fdir_list_head, list) { in iavf_get_fdir_fltr_ids() 1222 rule_locs[cnt] = fltr->loc; in iavf_get_fdir_fltr_ids() [all …]
|
D | iavf_fdir.h | 113 int iavf_fill_fdir_add_msg(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr); 114 void iavf_print_fdir_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr); 115 bool iavf_fdir_is_dup_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr); 116 void iavf_fdir_list_add_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr);
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_tc_lib.c | 20 struct ice_tc_flower_fltr *fltr) in ice_tc_count_lkups() argument 170 ice_tc_fill_tunnel_outer(u32 flags, struct ice_tc_flower_fltr *fltr, in ice_tc_fill_tunnel_outer() argument 173 struct ice_tc_flower_lyr_2_4_hdrs *hdr = &fltr->outer_headers; in ice_tc_fill_tunnel_outer() 179 list[i].type = ice_proto_type_from_tunnel(fltr->tunnel_type); in ice_tc_fill_tunnel_outer() 180 switch (fltr->tunnel_type) { in ice_tc_fill_tunnel_outer() 183 tenant_id = be32_to_cpu(fltr->tenant_id) << 8; in ice_tc_fill_tunnel_outer() 189 list[i].h_u.nvgre_hdr.tni_flow = fltr->tenant_id; in ice_tc_fill_tunnel_outer() 196 list[i].h_u.gtp_hdr.teid = fltr->tenant_id; in ice_tc_fill_tunnel_outer() 216 (fltr->tunnel_type == TNL_GTPU || fltr->tunnel_type == TNL_GTPC)) { in ice_tc_fill_tunnel_outer() 217 list[i].type = ice_proto_type_from_tunnel(fltr->tunnel_type); in ice_tc_fill_tunnel_outer() [all …]
|
D | ice_virtchnl_fdir.c | 290 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() 671 ice_vc_fdir_config_input_set(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_config_input_set() argument 691 ret = ice_vc_fdir_set_flow_fld(vf, fltr, conf, seg); in ice_vc_fdir_config_input_set() 730 ice_vc_fdir_parse_pattern(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_parse_pattern() argument 733 struct virtchnl_proto_hdrs *proto = &fltr->rule_cfg.proto_hdrs; in ice_vc_fdir_parse_pattern() 954 ice_vc_fdir_parse_action(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_fdir_parse_action() argument 957 struct virtchnl_filter_action_set *as = &fltr->rule_cfg.action_set; in ice_vc_fdir_parse_action() 1028 ice_vc_validate_fdir_fltr(struct ice_vf *vf, struct virtchnl_fdir_add *fltr, in ice_vc_validate_fdir_fltr() argument 1031 struct virtchnl_proto_hdrs *proto = &fltr->rule_cfg.proto_hdrs; in ice_vc_validate_fdir_fltr() [all …]
|
D | ice_fdir.c | 1162 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()
|
D | ice_main.c | 8270 struct ice_tc_flower_fltr *fltr; in ice_rem_all_chnl_fltrs() local 8274 hlist_for_each_entry_safe(fltr, node, in ice_rem_all_chnl_fltrs() 8281 if (!ice_is_chnl_fltr(fltr)) in ice_rem_all_chnl_fltrs() 8284 rule.rid = fltr->rid; in ice_rem_all_chnl_fltrs() 8285 rule.rule_id = fltr->rule_id; in ice_rem_all_chnl_fltrs() 8286 rule.vsi_handle = fltr->dest_id; in ice_rem_all_chnl_fltrs() 8295 } else if (fltr->dest_vsi) { in ice_rem_all_chnl_fltrs() 8297 if (fltr->dest_vsi->type == ICE_VSI_CHNL) { in ice_rem_all_chnl_fltrs() 8298 u32 flags = fltr->flags; in ice_rem_all_chnl_fltrs() 8300 fltr->dest_vsi->num_chnl_fltr--; in ice_rem_all_chnl_fltrs() [all …]
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 127 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.1.9/tools/testing/selftests/bpf/ |
D | test_offload.py | 527 fltr = {} 529 fltr[flag] = flag in words 533 fltr[name] = words[idx + 1] 536 filters.append(fltr) 846 fltr = ingress[0] variable 847 fail(not fltr["in_hw"], "Filter not offloaded by default") 856 fltr = ingress[0] variable 857 fail(not fltr["in_hw"], "Bytecode not offloaded by default") 935 fltr = ingress[0] variable 936 fail(fltr["skip_hw"], "TC does reports 'skip_hw' on offloaded filter") [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 4472 struct bnxt_ntuple_filter *fltr; in bnxt_free_ntp_fltrs() local 4475 hlist_for_each_entry_safe(fltr, tmp, head, hash) { in bnxt_free_ntp_fltrs() 4476 hlist_del(&fltr->hash); in bnxt_free_ntp_fltrs() 4477 kfree(fltr); in bnxt_free_ntp_fltrs() 4932 struct bnxt_ntuple_filter *fltr) in bnxt_hwrm_cfa_ntuple_filter_free() argument 4941 req->ntuple_filter_id = fltr->filter_id; in bnxt_hwrm_cfa_ntuple_filter_free() 4965 struct bnxt_ntuple_filter *fltr) in bnxt_hwrm_cfa_ntuple_filter_alloc() argument 4969 struct flow_keys *keys = &fltr->fkeys; in bnxt_hwrm_cfa_ntuple_filter_alloc() 4978 req->l2_filter_id = bp->vnic_info[0].fw_l2_filter_id[fltr->l2_fltr_idx]; in bnxt_hwrm_cfa_ntuple_filter_alloc() 4982 req->dst_id = cpu_to_le16(fltr->rxq); in bnxt_hwrm_cfa_ntuple_filter_alloc() [all …]
|
D | bnxt_ethtool.c | 1009 struct bnxt_ntuple_filter *fltr; in bnxt_grxclsrlall() local 1013 hlist_for_each_entry_rcu(fltr, head, hash) { in bnxt_grxclsrlall() 1016 rule_locs[j++] = fltr->sw_id; in bnxt_grxclsrlall() 1030 struct bnxt_ntuple_filter *fltr; in bnxt_grxclsrule() local 1042 hlist_for_each_entry_rcu(fltr, head, hash) { in bnxt_grxclsrule() 1043 if (fltr->sw_id == fs->location) in bnxt_grxclsrule() 1051 fkeys = &fltr->fkeys; in bnxt_grxclsrule() 1096 fs->ring_cookie = fltr->rxq; in bnxt_grxclsrule()
|
/linux-6.1.9/include/linux/qed/ |
D | qed_if.h | 818 void (*arfs_filter_op)(void *dev, void *fltr, u8 fw_rc);
|