diff options
author | Martin KaFai Lau <[email protected]> | 2017-06-08 22:30:16 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-06-09 15:15:10 -0400 |
commit | fad07430bc03415a468d4ab28621ca71ae86c583 (patch) | |
tree | 42b5a6c0cdabbb8959d3bdfec466122bb360edcf /lib/mpi/mpi-internal.h | |
parent | 97a7a37a7b7bf3dd16f6fa13cfd7ffacd01a352f (diff) |
bpf: Fix test_bpf_obj_id() when the bpf_jit_enable sysctl is diabled
test_bpf_obj_id() should not expect a non zero jited_prog_len
to be returned by bpf_obj_get_info_by_fd() when
net.core.bpf_jit_enable is 0.
The patch checks for net.core.bpf_jit_enable and
has different expectation on jited_prog_len.
This patch also removes the pwd.h header which I forgot
to remove after making changes.
Fixes: 95b9afd3987f ("bpf: Test for bpf ID")
Reported-by: Yonghong Song <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions