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:
Jukka Rissanen 2021-04-22 10:39:34 +03:00 committed by Jukka Rissanen
commit 8beb587a49

View file

@ -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