net: pkt: Separate the timestamp and TX/RX stats configs
The timestamp is no longer depending on TX/RX time config options so move it to separate settings. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
91ff30513f
commit
698d12f4d2
1 changed files with 7 additions and 8 deletions
|
@ -97,17 +97,16 @@ struct net_pkt {
|
|||
struct net_if *orig_iface; /* Original network interface */
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_TIMESTAMP) || \
|
||||
defined(CONFIG_NET_PKT_RXTIME_STATS) || \
|
||||
defined(CONFIG_NET_PKT_TXTIME_STATS)
|
||||
struct {
|
||||
/** Timestamp if available. */
|
||||
struct net_ptp_time timestamp;
|
||||
#if defined(CONFIG_NET_PKT_TIMESTAMP)
|
||||
/** Timestamp if available. */
|
||||
struct net_ptp_time timestamp;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_RXTIME_STATS) || defined(CONFIG_NET_PKT_TXTIME_STATS)
|
||||
struct {
|
||||
/** Create time in cycles */
|
||||
uint32_t create_time;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL) || \
|
||||
defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
|
||||
/** Collect extra statistics for net_pkt processing
|
||||
|
@ -122,7 +121,7 @@ struct net_pkt {
|
|||
#endif /* CONFIG_NET_PKT_TXTIME_STATS_DETAIL ||
|
||||
CONFIG_NET_PKT_RXTIME_STATS_DETAIL */
|
||||
};
|
||||
#endif /* CONFIG_NET_PKT_TIMESTAMP */
|
||||
#endif /* CONFIG_NET_PKT_RXTIME_STATS || CONFIG_NET_PKT_TXTIME_STATS */
|
||||
|
||||
#if defined(CONFIG_NET_PKT_TXTIME)
|
||||
/** Network packet TX time in the future (in nanoseconds) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue