net: filter: move load_pointer() into filter.h
authorZi Shen Lim <zlim.lnx@gmail.com>
Thu, 3 Jul 2014 14:56:54 +0000 (07:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 21:20:00 +0000 (14:20 -0700)
commit9f12fbe603f7ae346b2b46008e325f0c9a68e55d
tree440fb57e08880b9a7fe5f9180dd7da9dae50a19c
parent3d5baba0ecfdd5de35bb7ce41ef9218f2b17b006
net: filter: move load_pointer() into filter.h

load_pointer() is already a static inline function.
Let's move it into filter.h so BPF JIT implementations can reuse this
function.

Since we're exporting this function, let's also rename it to
bpf_load_pointer() for clarity.

Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Reviewed-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c