Lines Matching refs:params

44 	struct port_in_action_profile_params *params)  in port_in_action_profile_create()  argument
53 (params == NULL)) in port_in_action_profile_create()
56 if ((params->action_mask & (1LLU << RTE_PORT_IN_ACTION_LB)) && in port_in_action_profile_create()
57 (params->lb.f_hash == NULL)) { in port_in_action_profile_create()
58 switch (params->lb.key_size) { in port_in_action_profile_create()
60 params->lb.f_hash = rte_table_hash_crc_key8; in port_in_action_profile_create()
64 params->lb.f_hash = rte_table_hash_crc_key16; in port_in_action_profile_create()
68 params->lb.f_hash = rte_table_hash_crc_key24; in port_in_action_profile_create()
72 params->lb.f_hash = rte_table_hash_crc_key32; in port_in_action_profile_create()
76 params->lb.f_hash = rte_table_hash_crc_key40; in port_in_action_profile_create()
80 params->lb.f_hash = rte_table_hash_crc_key48; in port_in_action_profile_create()
84 params->lb.f_hash = rte_table_hash_crc_key56; in port_in_action_profile_create()
88 params->lb.f_hash = rte_table_hash_crc_key64; in port_in_action_profile_create()
95 params->lb.seed = 0; in port_in_action_profile_create()
102 if (params->action_mask & (1LLU << RTE_PORT_IN_ACTION_FLTR)) { in port_in_action_profile_create()
105 &params->fltr); in port_in_action_profile_create()
113 if (params->action_mask & (1LLU << RTE_PORT_IN_ACTION_LB)) { in port_in_action_profile_create()
116 &params->lb); in port_in_action_profile_create()
139 memcpy(&profile->params, params, sizeof(*params)); in port_in_action_profile_create()
178 struct table_action_profile_params *params) in table_action_profile_create() argument
187 (params == NULL) || in table_action_profile_create()
188 ((params->action_mask & (1LLU << RTE_TABLE_ACTION_FWD)) == 0)) in table_action_profile_create()
191 if ((params->action_mask & (1LLU << RTE_TABLE_ACTION_LB)) && in table_action_profile_create()
192 (params->lb.f_hash == NULL)) { in table_action_profile_create()
193 switch (params->lb.key_size) { in table_action_profile_create()
195 params->lb.f_hash = rte_table_hash_crc_key8; in table_action_profile_create()
199 params->lb.f_hash = rte_table_hash_crc_key16; in table_action_profile_create()
203 params->lb.f_hash = rte_table_hash_crc_key24; in table_action_profile_create()
207 params->lb.f_hash = rte_table_hash_crc_key32; in table_action_profile_create()
211 params->lb.f_hash = rte_table_hash_crc_key40; in table_action_profile_create()
215 params->lb.f_hash = rte_table_hash_crc_key48; in table_action_profile_create()
219 params->lb.f_hash = rte_table_hash_crc_key56; in table_action_profile_create()
223 params->lb.f_hash = rte_table_hash_crc_key64; in table_action_profile_create()
230 params->lb.seed = 0; in table_action_profile_create()
234 ap = rte_table_action_profile_create(&params->common); in table_action_profile_create()
238 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_FWD)) { in table_action_profile_create()
249 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_LB)) { in table_action_profile_create()
252 &params->lb); in table_action_profile_create()
260 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_MTR)) { in table_action_profile_create()
263 &params->mtr); in table_action_profile_create()
271 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_TM)) { in table_action_profile_create()
274 &params->tm); in table_action_profile_create()
282 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_ENCAP)) { in table_action_profile_create()
285 &params->encap); in table_action_profile_create()
293 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_NAT)) { in table_action_profile_create()
296 &params->nat); in table_action_profile_create()
304 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_TTL)) { in table_action_profile_create()
307 &params->ttl); in table_action_profile_create()
315 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_STATS)) { in table_action_profile_create()
318 &params->stats); in table_action_profile_create()
325 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_TIME)) { in table_action_profile_create()
336 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_SYM_CRYPTO)) { in table_action_profile_create()
339 &params->sym_crypto); in table_action_profile_create()
347 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_TAG)) { in table_action_profile_create()
358 if (params->action_mask & (1LLU << RTE_TABLE_ACTION_DECAP)) { in table_action_profile_create()
384 memcpy(&profile->params, params, sizeof(*params)); in table_action_profile_create()