return -EINVAL;
switch (psa->type) {
case RTE_FLOW_ACTION_TYPE_RSS:
+ case RTE_FLOW_ACTION_TYPE_AGE:
data = &default_data;
break;
default:
*((uint32_t *)data));
data = NULL;
break;
+ case RTE_FLOW_ACTION_TYPE_AGE:
+ if (!ret) {
+ struct rte_flow_query_age *resp = data;
+
+ printf("AGE:\n"
+ " aged: %u\n"
+ " sec_since_last_hit_valid: %u\n"
+ " sec_since_last_hit: %" PRIu32 "\n",
+ resp->aged,
+ resp->sec_since_last_hit_valid,
+ resp->sec_since_last_hit);
+ }
+ data = NULL;
+ break;
default:
printf("Shared action %u (type: %d) on port %u doesn't support"
" query\n", id, psa->type, port_id);
}
return ret;
}
+
static struct port_flow_tunnel *
port_flow_tunnel_offload_cmd_prep(portid_t port_id,
const struct rte_flow_item *pattern,