X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest-pmd%2Ftestpmd.h;h=6b901a894f0314c45c34dea33ae6b4baf3605f08;hb=39831d49d3e81146b1afa2d15de548d21a32d305;hp=e016931376af22b68b97b0043a6565d4c1888a4c;hpb=a8d0d473a0a89b3c50813e3e144e9a5377429f24;p=dpdk.git diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index e016931376..6b901a894f 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -143,13 +143,23 @@ struct fwd_stream { struct pkt_burst_stats tx_burst_stats; }; +/** + * Age action context types, must be included inside the age action + * context structure. + */ +enum age_action_context_type { + ACTION_AGE_CONTEXT_TYPE_FLOW, + ACTION_AGE_CONTEXT_TYPE_SHARED_ACTION, +}; + /** Descriptor for a single flow. */ struct port_flow { struct port_flow *next; /**< Next flow in list. */ struct port_flow *tmp; /**< Temporary linking. */ uint32_t id; /**< Flow rule ID. */ struct rte_flow *flow; /**< Opaque flow object returned by PMD. */ - struct rte_flow_conv_rule rule; /* Saved flow rule description. */ + struct rte_flow_conv_rule rule; /**< Saved flow rule description. */ + enum age_action_context_type age_type; /**< Age action context type. */ uint8_t data[]; /**< Storage for flow rule description */ }; @@ -159,6 +169,7 @@ struct port_shared_action { uint32_t id; /**< Shared action ID. */ enum rte_flow_action_type type; /**< Action type. */ struct rte_flow_shared_action *action; /**< Shared action handle. */ + enum age_action_context_type age_type; /**< Age action context type. */ }; struct port_flow_tunnel { @@ -921,7 +932,9 @@ int all_ports_stopped(void); int port_is_stopped(portid_t port_id); int port_is_started(portid_t port_id); void pmd_test_exit(void); +#if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE) void fdir_get_infos(portid_t port_id); +#endif void fdir_set_flex_mask(portid_t port_id, struct rte_eth_fdir_flex_mask *cfg); void fdir_set_flex_payload(portid_t port_id,