]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: simplify label names from jump-table
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 1 May 2014 16:34:18 +0000 (18:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 May 2014 23:46:31 +0000 (19:46 -0400)
commited66e7cbab654dce833e851577df4f96158516f2
tree378e4f903661c6fec7c5ca864970df3e3458165a
parent9348d57a7c460959652813226903aabab368364b
net: filter: simplify label names from jump-table

This patch simplifies label naming for the BPF jump-table.
When we define labels via DL(), we just concatenate/textify
the combination of instruction opcode which consists of the
class, subclass, word size, target register and so on. Each
time we leave BPF_ prefix intact, so that e.g. the preprocessor
generates a label BPF_ALU_BPF_ADD_BPF_X for DL(BPF_ALU, BPF_ADD,
BPF_X) whereas a label name of ALU_ADD_X is much more easy
to grasp. Pure cleanup only.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c