summaryrefslogtreecommitdiff
path: root/proto_ipv6_hop_by_hop.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-05 15:04:38 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-05 15:09:01 +0200
commita0e2b28801d2ddb5ccf80a7c5d0b9ac9b75f736d (patch)
tree3b8f27a81ebec2d53e561fab9961024fc0217088 /proto_ipv6_hop_by_hop.c
parentb073c8e5fd7f8c723680b659bd81afd231ef32f5 (diff)
trafgen: proto: Use field id as array index
Usually proto fields array are sorted in the same order as the respective enum. Thus, the id can be used used as an array index for faster lookup. Add an explanatory comment and enforce the correspondence of id and index using bug_on(). This will make csum field calculation a little faster at runtime. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_ipv6_hop_by_hop.c')
0 files changed, 0 insertions, 0 deletions
rocfs updates - MAINTAINERS - /lib updates - checkpatch updates * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (123 commits) init: reduce rootwait polling interval time to 5ms binfmt_elf: use vmalloc() for allocation of vma_filesz checkpatch: don't emit unified-diff error for rename-only patches checkpatch: don't check c99 types like uint8_t under tools checkpatch: avoid multiple line dereferences checkpatch: don't check .pl files, improve absolute path commit log test scripts/checkpatch.pl: fix spelling checkpatch: don't try to get maintained status when --no-tree is given lib/ida: document locking requirements a bit better lib/rbtree.c: fix typo in comment of ____rb_erase_color lib/Kconfig.debug: make CONFIG_STRICT_DEVMEM depend on CONFIG_DEVMEM MAINTAINERS: add drm and drm/i915 irc channels MAINTAINERS: add "C:" for URI for chat where developers hang out MAINTAINERS: add drm and drm/i915 bug filing info MAINTAINERS: add "B:" for URI where to file bugs get_maintainer: look for arbitrary letter prefixes in sections printk: add Kconfig option to set default console loglevel printk/sound: handle more message headers printk/btrfs: handle more message headers printk/kdb: handle more message headers ...
Diffstat (limited to 'tools/arch/sh/include/uapi/asm')