* [PATCH] samples/bpf: set resource limit to infinity.
@ 2016-06-24 22:55 William Tu
2016-06-25 10:14 ` Alexei Starovoitov
0 siblings, 1 reply; 3+ messages in thread
From: William Tu @ 2016-06-24 22:55 UTC (permalink / raw)
To: netdev
Signed-off-by: William Tu <u9012063@gmail.com>
---
samples/bpf/test_maps.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/samples/bpf/test_maps.c b/samples/bpf/test_maps.c
index 47bf085..d2bc96e 100644
--- a/samples/bpf/test_maps.c
+++ b/samples/bpf/test_maps.c
@@ -16,6 +16,7 @@
#include <assert.h>
#include <sys/wait.h>
#include <stdlib.h>
+#include <sys/resource.h>
#include "libbpf.h"
static int map_flags;
@@ -483,6 +484,9 @@ static void run_all_tests(void)
int main(void)
{
+ struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
+
+ setrlimit(RLIMIT_MEMLOCK, &r);
map_flags = 0;
run_all_tests();
map_flags = BPF_F_NO_PREALLOC;
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] samples/bpf: set resource limit to infinity.
2016-06-24 22:55 [PATCH] samples/bpf: set resource limit to infinity William Tu
@ 2016-06-25 10:14 ` Alexei Starovoitov
2016-06-25 14:10 ` William Tu
0 siblings, 1 reply; 3+ messages in thread
From: Alexei Starovoitov @ 2016-06-25 10:14 UTC (permalink / raw)
To: William Tu; +Cc: netdev
On Fri, Jun 24, 2016 at 03:55:24PM -0700, William Tu wrote:
> Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
please provide a proper patch description next time.
subj line alone is not enough.
Not only explain 'what' the patch does, but 'why' as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] samples/bpf: set resource limit to infinity.
2016-06-25 10:14 ` Alexei Starovoitov
@ 2016-06-25 14:10 ` William Tu
0 siblings, 0 replies; 3+ messages in thread
From: William Tu @ 2016-06-25 14:10 UTC (permalink / raw)
To: Alexei Starovoitov; +Cc: Linux Kernel Network Developers
Hi Alexei,
Thanks. I will do it next time.
William
On Sat, Jun 25, 2016 at 3:14 AM, Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
> On Fri, Jun 24, 2016 at 03:55:24PM -0700, William Tu wrote:
>> Signed-off-by: William Tu <u9012063@gmail.com>
>
> Acked-by: Alexei Starovoitov <ast@kernel.org>
>
> please provide a proper patch description next time.
> subj line alone is not enough.
> Not only explain 'what' the patch does, but 'why' as well.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-25 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 22:55 [PATCH] samples/bpf: set resource limit to infinity William Tu
2016-06-25 10:14 ` Alexei Starovoitov
2016-06-25 14:10 ` William Tu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.