af_xdp: workaround kernel race between poll() and sendmsg()
[vpp.git] / src / plugins / af_xdp / unformat.c
index b229246..bb4c304 100644 (file)
@@ -50,6 +50,8 @@ unformat_af_xdp_create_if_args (unformat_input_t * input, va_list * vargs)
        args->mode = AF_XDP_MODE_COPY;
       else if (unformat (line_input, "zero-copy"))
        args->mode = AF_XDP_MODE_ZERO_COPY;
+      else if (unformat (line_input, "no-syscall-lock"))
+       args->flags |= AF_XDP_CREATE_FLAGS_NO_SYSCALL_LOCK;
       else
        {
          /* return failure on unknown input */