Lines Matching defs:action
154 * tc pedit action. Legacy TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK is mapped to
240 int action;
275 struct flow_action_cookie *cookie; /* user defined action cookie */
283 static inline bool flow_action_has_entries(const struct flow_action *action)
285 return action->num_entries;
289 * flow_action_has_one_action() - check if exactly one action is present
290 * @action: tc filter flow offload action
292 * Returns true if exactly one action is present.
294 static inline bool flow_offload_has_one_action(const struct flow_action *action)
296 return action->num_entries == 1;
305 flow_action_mixed_hw_stats_check(const struct flow_action *action,
312 if (flow_offload_has_one_action(action))
315 flow_action_for_each(i, action_entry, action) {
326 flow_action_first_entry_get(const struct flow_action *action)
328 WARN_ON(!flow_action_has_entries(action));
329 return &action->entries[0];
333 __flow_action_hw_stats_check(const struct flow_action *action,
340 if (!flow_action_has_entries(action))
342 if (!flow_action_mixed_hw_stats_check(action, extack))
345 action_entry = flow_action_first_entry_get(action);
363 flow_action_hw_stats_check(const struct flow_action *action,
367 return __flow_action_hw_stats_check(action, extack, true, allow_bit);
371 flow_action_basic_hw_stats_check(const struct flow_action *action,
374 return __flow_action_hw_stats_check(action, extack, false, 0);
379 struct flow_action action;