K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-11-23T14:00:26.970328Z K 7 svn:log V 681 Collect IP statistics in per-cpu 64-bit counters. This way we shoot two hares with one shot: - Parallel threads no longer invalidate the cache lines where old struct ipstat resided. - Parallel non-atomic writes no longer lose statistics. Old 'struct ipstat' left only as interface to userland, however all fields converted to uint64_t. Yes, this break ABI on 32-bit arches, but now statistics will not overflow. Old 'struct ipstat' was imported as SYSCTL_STRUCT(... CTLFLAG_RW ...), thus could not be only zeroed, but filled in with fake values. This is no longer possible - any attempt to write to statictics zeroes them, without accepting userland supplied info. END