diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-19 14:03:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-19 14:03:06 -0400 |
commit | 2e2d6f0342be7f73a34526077fa96f42f0e8c661 (patch) | |
tree | 29f3740825a70aa606e03cf3a048d9a3a751529c /tools | |
parent | 9333f207920336575cba4ed60603c1cdb79ace4f (diff) | |
parent | 48995423143a097527802e28d7add20e5a27677a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
net/sched/cls_api.c has overlapping changes to a call to
nlmsg_parse(), one (from 'net') added rtm_tca_policy instead of NULL
to the 5th argument, and another (from 'net-next') added cb->extack
instead of NULL to the 6th argument.
net/ipv4/ipmr_base.c is a case of a bug fix in 'net' being done to
code which moved (to mr_table_dump)) in 'net-next'. Thanks to David
Ahern for the heads up.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/net/reuseport_bpf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/testing/selftests/net/reuseport_bpf.c b/tools/testing/selftests/net/reuseport_bpf.c index cad14cd0ea92..b5277106df1f 100644 --- a/tools/testing/selftests/net/reuseport_bpf.c +++ b/tools/testing/selftests/net/reuseport_bpf.c | |||
@@ -437,14 +437,19 @@ void enable_fastopen(void) | |||
437 | } | 437 | } |
438 | } | 438 | } |
439 | 439 | ||
440 | static struct rlimit rlim_old, rlim_new; | 440 | static struct rlimit rlim_old; |
441 | 441 | ||
442 | static __attribute__((constructor)) void main_ctor(void) | 442 | static __attribute__((constructor)) void main_ctor(void) |
443 | { | 443 | { |
444 | getrlimit(RLIMIT_MEMLOCK, &rlim_old); | 444 | getrlimit(RLIMIT_MEMLOCK, &rlim_old); |
445 | rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); | 445 | |
446 | rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); | 446 | if (rlim_old.rlim_cur != RLIM_INFINITY) { |
447 | setrlimit(RLIMIT_MEMLOCK, &rlim_new); | 447 | struct rlimit rlim_new; |
448 | |||
449 | rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); | ||
450 | rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); | ||
451 | setrlimit(RLIMIT_MEMLOCK, &rlim_new); | ||
452 | } | ||
448 | } | 453 | } |
449 | 454 | ||
450 | static __attribute__((destructor)) void main_dtor(void) | 455 | static __attribute__((destructor)) void main_dtor(void) |