]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - rdma/utils.c
rdma: Fix statistics bind/unbing argument handling
[mirror_iproute2.git] / rdma / utils.c
index 2a201aa4aeb7fa86f78c368ab6ecc0e9a2f2be65..f84b102d2a5c5b9da2931cf6b24fb907c61ee0a4 100644 (file)
@@ -47,6 +47,13 @@ bool rd_no_arg(struct rd *rd)
        return rd_argc(rd) == 0;
 }
 
+bool rd_is_multiarg(struct rd *rd)
+{
+       if (!rd_argc(rd))
+               return false;
+       return strpbrk(rd_argv(rd), ",-") != NULL;
+}
+
 /*
  * Possible input:output
  * dev/port    | first port | is_dump_all