mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 14:58:47 +00:00
net: move rx timestamp from d_rxtime to iob_s.io_time
Move RX timestamp storage from net_driver_s.d_rxtime into iob_s.io_time so each IOB carries its own timestamp through the stack. Remove old iob_trycopyin/iob_copyout timestamp packing in CAN/PKT/UDP paths. Fix iob_clone_partial to copy io_time before source pointer advances to NULL. Signed-off-by: OceanfromXiaomi <zhaohaiyang1@xiaomi.com> Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
This commit is contained in:
parent
f492f136c2
commit
9a65ffc51d
16 changed files with 58 additions and 115 deletions
|
|
@ -80,6 +80,10 @@ int netdev_input(FAR struct net_driver_s *dev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_NET_TIMESTAMP) && defined(CONFIG_ARCH_HAVE_NETDEV_TIMESTAMP)
|
||||
dev->d_iob->io_time = dev->d_rxtime;
|
||||
#endif
|
||||
|
||||
/* Copy data to iob entry */
|
||||
|
||||
ret = iob_trycopyin(dev->d_iob, buf, dev->d_len, -llhdrlen, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue