Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[linux-2.6-microblaze.git] / samples / bpf / xdp_tx_iptunnel_user.c
index a419bee..1d4f305 100644 (file)
@@ -155,7 +155,6 @@ int main(int argc, char **argv)
        struct bpf_prog_load_attr prog_load_attr = {
                .prog_type      = BPF_PROG_TYPE_XDP,
        };
-       struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
        int min_port = 0, max_port = 0, vip2tnl_map_fd;
        const char *optstr = "i:a:p:s:d:m:T:P:FSNh";
        unsigned char opt_flags[256] = {};
@@ -254,11 +253,6 @@ int main(int argc, char **argv)
                }
        }
 
-       if (setrlimit(RLIMIT_MEMLOCK, &r)) {
-               perror("setrlimit(RLIMIT_MEMLOCK, RLIM_INFINITY)");
-               return 1;
-       }
-
        if (!ifindex) {
                fprintf(stderr, "Invalid ifname\n");
                return 1;