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)
commitb1d95ae5c5bd3deba84d00c4f83d7d0836b5936f
tree720f4a334f3bab64b586866165b158903c8efb7f
parent0c71de6634c5c1b6c9dcb80049680ad334205c23
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