2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/net/ipv6/netfilter
Eric Dumazet b7aa0bf70c [NET]: convert network timestamps to ktime_t
We currently use a special structure (struct skb_timeval) and plain
'struct timeval' to store packet timestamps in sk_buffs and struct
sock.

This has some drawbacks :
- Fixed resolution of micro second.
- Waste of space on 64bit platforms where sizeof(struct timeval)=16

I suggest using ktime_t that is a nice abstraction of high resolution
time services, currently capable of nanosecond resolution.

As sizeof(ktime_t) is 8 bytes, using ktime_t in 'struct sock' permits
a 8 byte shrink of this structure on 64bit architectures. Some other
structures also benefit from this size reduction (struct ipq in
ipv4/ip_fragment.c, struct frag_queue in ipv6/reassembly.c, ...)

Once this ktime infrastructure adopted, we can more easily provide
nanosecond resolution on top of it. (ioctl SIOCGSTAMPNS and/or
SO_TIMESTAMPNS/SCM_TIMESTAMPNS)

Note : this patch includes a bug correction in
compat_sock_get_timestamp() where a "err = 0;" was missing (so this
syscall returned -ENOENT instead of 0)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
CC: Stephen Hemminger <shemminger@linux-foundation.org>
CC: John find <linux.kernel@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:23:34 -07:00
..
ip6_queue.c [NET]: convert network timestamps to ktime_t 2007-04-25 22:23:34 -07:00
ip6_tables.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_ah.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_eui64.c [NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions 2007-02-08 12:39:19 -08:00
ip6t_frag.c [NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions 2007-02-08 12:39:19 -08:00
ip6t_hbh.c [NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions 2007-02-08 12:39:19 -08:00
ip6t_hl.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_HL.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_ipv6header.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_LOG.c [NETFILTER]: nf_log: minor cleanups 2007-02-12 11:11:55 -08:00
ip6t_mh.c [NETFILTER]: ip6t_mh: drop piggyback payload packet on MH packets 2007-02-12 11:16:17 -08:00
ip6t_owner.c [NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions 2007-02-08 12:39:19 -08:00
ip6t_REJECT.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6t_rt.c [NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions 2007-02-08 12:39:19 -08:00
ip6table_filter.c [NETFILTER]: ip6_tables: remove redundant structure definitions 2007-02-08 12:39:23 -08:00
ip6table_mangle.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
ip6table_raw.c [NET] IPV6: Fix whitespace errors. 2007-02-10 23:19:42 -08:00
Kconfig [NETFILTER]: Kconfig: improve dependency handling 2007-02-12 11:15:02 -08:00
Makefile [NETFILTER]: ip6_tables: support MH match 2007-02-08 12:39:21 -08:00
nf_conntrack_l3proto_ipv6.c [NETFILTER]: nf_conntrack_ipv6: fix incorrect classification of IPv6 fragments as ESTABLISHED 2007-03-07 16:08:01 -08:00
nf_conntrack_proto_icmpv6.c [NETFILTER]: nf_conntrack/nf_nat: fix incorrect config ifdefs 2007-03-05 13:25:19 -08:00
nf_conntrack_reasm.c [NET]: convert network timestamps to ktime_t 2007-04-25 22:23:34 -07:00