commit | cde66c2d88da1d73d755109c80ce4c34b917596b | [log] [tgz] |
---|---|---|
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | Wed Jul 29 21:15:17 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 29 14:59:58 2015 -0700 |
tree | 888437f97f8dd86ce7dc02a2a607c97e46b4fdbc | |
parent | ce2b6ad9c1856fac5d5e8d3351b3dd5392e09b7a [diff] |
s390/bpf: Only clear A and X for converted BPF programs Only classic BPF programs that have been converted to eBPF need to clear the A and X registers. We can check for converted programs with: bpf_prog->type == BPF_PROG_TYPE_UNSPEC So add the check and skip initialization for real eBPF programs. Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>