]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - rdma/rdma.h
rdma: Move resource PD logic to separate file
[mirror_iproute2.git] / rdma / rdma.h
index fcaf9e69e07c22453a2e9ba390828a7750427600..547bb5749a39f68e7237f976ee57518f3e7aa21d 100644 (file)
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <errno.h>
 #include <getopt.h>
+#include <netinet/in.h>
 #include <libmnl/libmnl.h>
 #include <rdma/rdma_netlink.h>
 #include <rdma/rdma_user_cm.h>
@@ -33,7 +34,7 @@
 
 #define MAX_NUMBER_OF_FILTERS 64
 struct filters {
-       char name[32];
+       const char *name;
        bool is_number;
 };
 
@@ -89,6 +90,7 @@ int cmd_link(struct rd *rd);
 int cmd_res(struct rd *rd);
 int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str);
 int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd));
+int rd_exec_require_dev(struct rd *rd, int (*cb)(struct rd *rd));
 int rd_exec_link(struct rd *rd, int (*cb)(struct rd *rd), bool strict_port);
 void rd_free(struct rd *rd);
 int rd_set_arg_to_devname(struct rd *rd);