forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/net/tipc/name_table.h
....@@ -58,6 +58,7 @@
5858 * @node: network address of publishing socket's node
5959 * @port: publishing port
6060 * @key: publication key, unique across the cluster
61
+ * @id: publication id
6162 * @binding_node: all publications from the same node which bound this one
6263 * - Remote publications: in node->publ_list
6364 * Used by node/name distr to withdraw publications when node is lost
....@@ -69,6 +70,7 @@
6970 * Used by closest_first and multicast receive lookup algorithms
7071 * @all_publ: all publications identical to this one, whatever node and scope
7172 * Used by round-robin lookup algorithm
73
+ * @list: to form a list of publications in temporal order
7274 * @rcu: RCU callback head used for deferred freeing
7375 */
7476 struct publication {
....@@ -79,10 +81,12 @@
7981 u32 node;
8082 u32 port;
8183 u32 key;
84
+ u32 id;
8285 struct list_head binding_node;
8386 struct list_head binding_sock;
8487 struct list_head local_publ;
8588 struct list_head all_publ;
89
+ struct list_head list;
8690 struct rcu_head rcu;
8791 };
8892
....@@ -102,6 +106,8 @@
102106 struct list_head cluster_scope;
103107 rwlock_t cluster_scope_lock;
104108 u32 local_publ_count;
109
+ u32 rc_dests;
110
+ u32 snd_nxt;
105111 };
106112
107113 int tipc_nl_name_table_dump(struct sk_buff *skb, struct netlink_callback *cb);