Skip to content

Commit f2d6c74

Browse files
fg-cfhnashif
authored andcommitted
net: net_pkt: remove deprecated functions for v4.0
Removes deprecated functions net_pkt_txtime() and net_pkt_set_txtime(). See: #76943 Signed-off-by: Florian Grandel <[email protected]>
1 parent 6fe7f6c commit f2d6c74

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

include/zephyr/net/net_pkt.h

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,35 +1139,6 @@ static inline void net_pkt_set_create_time(struct net_pkt *pkt,
11391139
* CONFIG_TRACING_NET_CORE
11401140
*/
11411141

1142-
/**
1143-
* @deprecated Use @ref net_pkt_timestamp or @ref net_pkt_timestamp_ns instead.
1144-
*/
1145-
static inline uint64_t net_pkt_txtime(struct net_pkt *pkt)
1146-
{
1147-
#if defined(CONFIG_NET_PKT_TXTIME)
1148-
return pkt->timestamp.second * NSEC_PER_SEC + pkt->timestamp.nanosecond;
1149-
#else
1150-
ARG_UNUSED(pkt);
1151-
1152-
return 0;
1153-
#endif /* CONFIG_NET_PKT_TXTIME */
1154-
}
1155-
1156-
/**
1157-
* @deprecated Use @ref net_pkt_set_timestamp or @ref net_pkt_set_timestamp_ns
1158-
* instead.
1159-
*/
1160-
static inline void net_pkt_set_txtime(struct net_pkt *pkt, uint64_t txtime)
1161-
{
1162-
#if defined(CONFIG_NET_PKT_TXTIME)
1163-
pkt->timestamp.second = txtime / NSEC_PER_SEC;
1164-
pkt->timestamp.nanosecond = txtime % NSEC_PER_SEC;
1165-
#else
1166-
ARG_UNUSED(pkt);
1167-
ARG_UNUSED(txtime);
1168-
#endif /* CONFIG_NET_PKT_TXTIME */
1169-
}
1170-
11711142
#if defined(CONFIG_NET_PKT_TXTIME_STATS_DETAIL) || \
11721143
defined(CONFIG_NET_PKT_RXTIME_STATS_DETAIL)
11731144
static inline uint32_t *net_pkt_stats_tick(struct net_pkt *pkt)

0 commit comments

Comments
 (0)