]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/softnic/rte_eth_softnic_internals.h
net/bnxt: consolidate template table processing
[dpdk.git] / drivers / net / softnic / rte_eth_softnic_internals.h
index 6eec43b22b130c74c865d23d57dbf11d5f44787e..77e0139a6527839e65c25216cc4c45484845c8a7 100644 (file)
@@ -164,11 +164,18 @@ TAILQ_HEAD(softnic_link_list, softnic_link);
 #ifndef TM_MAX_PIPE_PROFILE
 #define TM_MAX_PIPE_PROFILE                            256
 #endif
 #ifndef TM_MAX_PIPE_PROFILE
 #define TM_MAX_PIPE_PROFILE                            256
 #endif
+
+#ifndef TM_MAX_SUBPORT_PROFILE
+#define TM_MAX_SUBPORT_PROFILE                         256
+#endif
+
 struct tm_params {
        struct rte_sched_port_params port_params;
 struct tm_params {
        struct rte_sched_port_params port_params;
-
        struct rte_sched_subport_params subport_params[TM_MAX_SUBPORTS];
        struct rte_sched_subport_params subport_params[TM_MAX_SUBPORTS];
-
+       struct rte_sched_subport_profile_params
+               subport_profile[TM_MAX_SUBPORT_PROFILE];
+       uint32_t n_subport_profiles;
+       uint32_t subport_to_profile[TM_MAX_SUBPORT_PROFILE];
        struct rte_sched_pipe_params pipe_profiles[TM_MAX_PIPE_PROFILE];
        uint32_t n_pipe_profiles;
        uint32_t pipe_to_profile[TM_MAX_SUBPORTS * TM_MAX_PIPES_PER_SUBPORT];
        struct rte_sched_pipe_params pipe_profiles[TM_MAX_PIPE_PROFILE];
        uint32_t n_pipe_profiles;
        uint32_t pipe_to_profile[TM_MAX_SUBPORTS * TM_MAX_PIPES_PER_SUBPORT];