Whamcloud - gitweb
LU-9680 net: Netlink improvements
[fs/lustre-release.git] / lnet / include / lnet / lib-types.h
index 9150b74..f4a64af 100644 (file)
@@ -190,7 +190,7 @@ struct lnet_libhandle {
 struct lnet_me {
        struct list_head        me_list;
        int                     me_cpt;
-       struct lnet_process_id  me_match_id;
+       struct lnet_processid   me_match_id;
        unsigned int            me_portal;
        unsigned int            me_pos;         /* hash offset in mt_hash */
        __u64                   me_match_bits;
@@ -959,7 +959,7 @@ enum lnet_match_flags {
 /* parameter for matching operations (GET, PUT) */
 struct lnet_match_info {
        __u64                   mi_mbits;
-       struct lnet_process_id  mi_id;
+       struct lnet_processid   mi_id;
        unsigned int            mi_cpt;
        unsigned int            mi_opc;
        unsigned int            mi_portal;
@@ -1273,7 +1273,13 @@ struct lnet {
        struct list_head                ln_udsp_list;
 };
 
-static const struct nla_policy scalar_attr_policy[LN_SCALAR_CNT + 1] = {
+struct genl_filter_list {
+       struct list_head         lp_list;
+       void                    *lp_cursor;
+       bool                     lp_first;
+};
+
+static const struct nla_policy scalar_attr_policy[LN_SCALAR_MAX + 1] = {
        [LN_SCALAR_ATTR_LIST]           = { .type = NLA_NESTED },
        [LN_SCALAR_ATTR_LIST_SIZE]      = { .type = NLA_U16 },
        [LN_SCALAR_ATTR_INDEX]          = { .type = NLA_U16 },