diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-08-09 12:09:23 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-09 13:56:10 +0200 |
commit | 48178cd649b48196e16e0481ca44dea206fe04d4 (patch) | |
tree | 314f976af644cffe639c8c8655dbe294cac7481b /proto_vlan_q_in_q.c | |
parent | 7c14a23050eed1575a696dd77c4d5d845eab22c9 (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_vlan_q_in_q.c')
0 files changed, 0 insertions, 0 deletions