summaryrefslogtreecommitdiff
path: root/proto_udp.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-09 12:09:23 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-09 13:56:10 +0200
commit48178cd649b48196e16e0481ca44dea206fe04d4 (patch)
tree314f976af644cffe639c8c8655dbe294cac7481b /proto_udp.c
parent7c14a23050eed1575a696dd77c4d5d845eab22c9 (diff)
trafgen: proto: Store registered protocols in an array
Protocols are registered early at startup and aren't changed at runtime. In order to speed up lookup while parsing, store the pointers to the protocol definitions (struct proto_hdr) in an array, indexed by protocol id rather than in a linked list. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_udp.c')
0 files changed, 0 insertions, 0 deletions
n clarity - Get rid of the ktime union. The union has become useless as we use the scalar nanoseconds storage unconditionally now. The 32bit timespec alike storage got removed due to the Y2038 limitations some time ago. That leaves the odd union access around for no reason. Clean it up. Both changes have been done with coccinelle and a small amount of manual mopping up" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: ktime: Get rid of ktime_equal() ktime: Cleanup ktime_set() usage ktime: Get rid of the union clocksource: Use a plain u64 instead of cycle_t
Diffstat (limited to 'sound')