Lines Matching refs:ad_data

5647 	u64 ad_data = 0;  in hclge_fd_ad_config()  local
5656 hnae3_set_bit(ad_data, HCLGE_FD_AD_WR_RULE_ID_B, in hclge_fd_ad_config()
5658 hnae3_set_field(ad_data, HCLGE_FD_AD_RULE_ID_M, HCLGE_FD_AD_RULE_ID_S, in hclge_fd_ad_config()
5661 hnae3_set_bit(ad_data, HCLGE_FD_AD_TC_OVRD_B, in hclge_fd_ad_config()
5663 hnae3_set_field(ad_data, HCLGE_FD_AD_TC_SIZE_M, in hclge_fd_ad_config()
5666 ad_data <<= 32; in hclge_fd_ad_config()
5667 hnae3_set_bit(ad_data, HCLGE_FD_AD_DROP_B, action->drop_packet); in hclge_fd_ad_config()
5668 hnae3_set_bit(ad_data, HCLGE_FD_AD_DIRECT_QID_B, in hclge_fd_ad_config()
5670 hnae3_set_field(ad_data, HCLGE_FD_AD_QID_M, HCLGE_FD_AD_QID_S, in hclge_fd_ad_config()
5672 hnae3_set_bit(ad_data, HCLGE_FD_AD_USE_COUNTER_B, action->use_counter); in hclge_fd_ad_config()
5673 hnae3_set_field(ad_data, HCLGE_FD_AD_COUNTER_NUM_M, in hclge_fd_ad_config()
5675 hnae3_set_bit(ad_data, HCLGE_FD_AD_NXT_STEP_B, action->use_next_stage); in hclge_fd_ad_config()
5676 hnae3_set_field(ad_data, HCLGE_FD_AD_NXT_KEY_M, HCLGE_FD_AD_NXT_KEY_S, in hclge_fd_ad_config()
5679 req->ad_data = cpu_to_le64(ad_data); in hclge_fd_ad_config()
5872 struct hclge_fd_ad_data ad_data; in hclge_config_action() local
5874 memset(&ad_data, 0, sizeof(struct hclge_fd_ad_data)); in hclge_config_action()
5875 ad_data.ad_id = rule->location; in hclge_config_action()
5878 ad_data.drop_packet = true; in hclge_config_action()
5880 ad_data.override_tc = true; in hclge_config_action()
5881 ad_data.queue_id = in hclge_config_action()
5883 ad_data.tc_size = in hclge_config_action()
5886 ad_data.forward_to_direct_queue = true; in hclge_config_action()
5887 ad_data.queue_id = rule->queue_id; in hclge_config_action()
5891 ad_data.use_counter = true; in hclge_config_action()
5892 ad_data.counter_id = rule->vf_id % in hclge_config_action()
5895 ad_data.use_counter = false; in hclge_config_action()
5896 ad_data.counter_id = 0; in hclge_config_action()
5899 ad_data.use_next_stage = false; in hclge_config_action()
5900 ad_data.next_input_key = 0; in hclge_config_action()
5902 ad_data.write_rule_id_to_bd = true; in hclge_config_action()
5903 ad_data.rule_id = rule->location; in hclge_config_action()
5905 return hclge_fd_ad_config(hdev, stage, ad_data.ad_id, &ad_data); in hclge_config_action()