net: stats: RX time statistics were in wrong ifdef branch
Moving RX time statistics under proper ifdef settings. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
e366d7948a
commit
8beb587a49
1 changed files with 10 additions and 7 deletions
|
@ -322,9 +322,17 @@ struct net_stats {
|
|||
"Cannot define both CONFIG_NET_CONTEXT_TIMESTAMP and CONFIG_NET_PKT_TXTIME_STATS"
|
||||
#endif
|
||||
#if defined(CONFIG_NET_CONTEXT_TIMESTAMP) || \
|
||||
defined(CONFIG_NET_PKT_TXTIME_STATS)
|
||||
defined(CONFIG_NET_PKT_TXTIME_STATS) || \
|
||||
defined(CONFIG_NET_PKT_RXTIME_STATS)
|
||||
#if defined(CONFIG_NET_PKT_TXTIME_STATS)
|
||||
/** Network packet TX time statistics */
|
||||
struct net_stats_tx_time tx_time;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_RXTIME_STATS)
|
||||
/** Network packet RX time statistics */
|
||||
struct net_stats_rx_time rx_time;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL)
|
||||
/** Network packet TX time detail statistics */
|
||||
|
@ -332,15 +340,10 @@ struct net_stats {
|
|||
#endif
|
||||
#if defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
|
||||
/** Network packet RX time detail statistics */
|
||||
struct net_stats_tx_time rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
|
||||
struct net_stats_rx_time rx_time_detail[NET_PKT_DETAIL_STATS_COUNT];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_RXTIME_STATS)
|
||||
/** Network packet RX time statistics */
|
||||
struct net_stats_rx_time rx_time;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_STATISTICS_POWER_MANAGEMENT)
|
||||
struct net_stats_pm pm;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue