]> git.baikalelectronics.ru Git - kernel.git/commit
tools, bpf_asm: simplify parser rule for BPF extensions
authorRay Bellis <ray@isc.org>
Mon, 22 Feb 2016 10:02:40 +0000 (11:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Feb 2016 18:29:42 +0000 (13:29 -0500)
commit09019c34bc05743d44a3f1ea25199b25ec6120e3
tree720f4a334f3bab64b586866165b158903c8efb7f
parent183fee26a51dd01e0b97db57c8dcfd4482d78b10
tools, bpf_asm: simplify parser rule for BPF extensions

We can already use yylval in the lexer for encoding the BPF extension
number, so that the parser rules can be further reduced to a single one
for each B/H/W case.

Signed-off-by: Ray Bellis <ray@isc.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/bpf_exp.l
tools/net/bpf_exp.y