summaryrefslogtreecommitdiffstats
path: root/include/linux/genetlink.h
diff options
context:
space:
mode:
authorDaniel Borkmann2014-05-01 18:34:18 +0200
committerDavid S. Miller2014-05-05 01:46:31 +0200
commit5bcfedf06f7fdf9efcf65dc11198e9012f7530f4 (patch)
tree378e4f903661c6fec7c5ca864970df3e3458165a /include/linux/genetlink.h
parentnet: filter: doc: expand and improve BPF documentation (diff)
downloadkernel-qcow2-linux-5bcfedf06f7fdf9efcf65dc11198e9012f7530f4.tar.gz
kernel-qcow2-linux-5bcfedf06f7fdf9efcf65dc11198e9012f7530f4.tar.xz
kernel-qcow2-linux-5bcfedf06f7fdf9efcf65dc11198e9012f7530f4.zip
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>
Diffstat (limited to 'include/linux/genetlink.h')
0 files changed, 0 insertions, 0 deletions