diff options
| author | 2015-03-15 21:57:30 -0400 | |
|---|---|---|
| committer | 2015-03-15 21:57:30 -0400 | |
| commit | a498cfe990f569dd3766bfc9bfd2a5ee04468cd2 (patch) | |
| tree | ef0c4dc4642696d84bd56c4f409dd32507981bb0 /net | |
| parent | Merge branch 'gianfar-next' (diff) | |
| parent | ebpf: add helper for obtaining current processor id (diff) | |
Merge branch 'ebpf_helpers'
Daniel Borkmann says:
====================
eBPF updates
Two small eBPF helper additions to better match up with ancillary
classic BPF functionality.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
| -rw-r--r-- | net/core/filter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 7a4eb7030dba..33310eee6134 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -1139,6 +1139,10 @@ sk_filter_func_proto(enum bpf_func_id func_id) return &bpf_map_update_elem_proto; case BPF_FUNC_map_delete_elem: return &bpf_map_delete_elem_proto; + case BPF_FUNC_get_prandom_u32: + return &bpf_get_prandom_u32_proto; + case BPF_FUNC_get_smp_processor_id: + return &bpf_get_smp_processor_id_proto; default: return NULL; } |
