Fix the build error due to improper handling of unions
on SUSE11 (gcc 4.5.1).
drivers/net/softnic/rte_eth_softnic_tm.c:588:3
error: unknown field 'nonleaf' specified in initializer
Fixes:
299a89de916a ("net/softnic: add TM capabilities ops")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
},
[TM_NODE_LEVEL_SUBPORT] = {
},
[TM_NODE_LEVEL_SUBPORT] = {
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.sched_wfq_weight_max = 1,
#endif
.stats_mask = STATS_MASK_DEFAULT,
.sched_wfq_weight_max = 1,
#endif
.stats_mask = STATS_MASK_DEFAULT,
},
[TM_NODE_LEVEL_PIPE] = {
},
[TM_NODE_LEVEL_PIPE] = {
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
},
[TM_NODE_LEVEL_TC] = {
},
[TM_NODE_LEVEL_TC] = {
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.non_leaf_nodes_identical = 1,
.leaf_nodes_identical = 0,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.shaper_private_supported = 1,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 1,
.sched_wfq_weight_max = UINT32_MAX,
.stats_mask = STATS_MASK_DEFAULT,
.sched_wfq_weight_max = UINT32_MAX,
.stats_mask = STATS_MASK_DEFAULT,
},
[TM_NODE_LEVEL_QUEUE] = {
},
[TM_NODE_LEVEL_QUEUE] = {
.non_leaf_nodes_identical = 0,
.leaf_nodes_identical = 1,
.non_leaf_nodes_identical = 0,
.leaf_nodes_identical = 1,
.shaper_private_supported = 0,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 0,
.shaper_private_supported = 0,
.shaper_private_dual_rate_supported = 0,
.shaper_private_rate_min = 0,
.cman_wred_context_shared_n_max = 0,
.stats_mask = STATS_MASK_QUEUE,
.cman_wred_context_shared_n_max = 0,
.stats_mask = STATS_MASK_QUEUE,
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.sched_n_children_max = UINT32_MAX,
.sched_sp_n_priorities_max = 1,
.sched_wfq_n_children_per_group_max = UINT32_MAX,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = 1,
.sched_n_children_max = UINT32_MAX,
.sched_sp_n_priorities_max = 1,
.sched_wfq_n_children_per_group_max = UINT32_MAX,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
},
.stats_mask = STATS_MASK_DEFAULT,
},
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.sched_n_children_max = UINT32_MAX,
.sched_sp_n_priorities_max = 1,
.sched_wfq_n_children_per_group_max = UINT32_MAX,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = UINT32_MAX,
.sched_n_children_max = UINT32_MAX,
.sched_sp_n_priorities_max = 1,
.sched_wfq_n_children_per_group_max = UINT32_MAX,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = UINT32_MAX,
.stats_mask = STATS_MASK_DEFAULT,
},
.stats_mask = STATS_MASK_DEFAULT,
},
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 0,
.sched_n_children_max =
RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE,
.sched_sp_n_priorities_max =
.sched_n_children_max =
RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE,
.sched_sp_n_priorities_max =
.sched_wfq_n_children_per_group_max = 1,
.sched_wfq_n_groups_max = 0,
.sched_wfq_weight_max = 1,
.sched_wfq_n_children_per_group_max = 1,
.sched_wfq_n_groups_max = 0,
.sched_wfq_weight_max = 1,
.stats_mask = STATS_MASK_DEFAULT,
},
.stats_mask = STATS_MASK_DEFAULT,
},
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 1,
.shaper_private_rate_max = UINT32_MAX,
.shaper_shared_n_max = 1,
.sched_n_children_max =
RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS,
.sched_sp_n_priorities_max = 1,
.sched_n_children_max =
RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS,
.sched_sp_n_priorities_max = 1,
RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = UINT32_MAX,
RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS,
.sched_wfq_n_groups_max = 1,
.sched_wfq_weight_max = UINT32_MAX,
.stats_mask = STATS_MASK_DEFAULT,
},
.stats_mask = STATS_MASK_DEFAULT,
},
.shaper_shared_n_max = 0,
.shaper_shared_n_max = 0,
.cman_head_drop_supported = 0,
.cman_wred_context_private_supported = WRED_SUPPORTED,
.cman_wred_context_shared_n_max = 0,
.cman_head_drop_supported = 0,
.cman_wred_context_private_supported = WRED_SUPPORTED,
.cman_wred_context_shared_n_max = 0,
.stats_mask = STATS_MASK_QUEUE,
},
.stats_mask = STATS_MASK_QUEUE,
},