]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: nexthop: add resilient group structure
authorNikolay Aleksandrov <nikolay@nvidia.com>
Thu, 30 Sep 2021 11:38:35 +0000 (14:38 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 4 Oct 2021 00:24:11 +0000 (18:24 -0600)
Add a structure which describes a resilient nexthop group. It will be
later used for parsing.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/nh_common.h [new file with mode: 0644]

diff --git a/ip/nh_common.h b/ip/nh_common.h
new file mode 100644 (file)
index 0000000..f747244
--- /dev/null
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __NH_COMMON_H__
+#define __NH_COMMON_H__ 1
+
+struct nha_res_grp {
+       __u16                   buckets;
+       __u32                   idle_timer;
+       __u32                   unbalanced_timer;
+       __u64                   unbalanced_time;
+};
+
+#endif /* __NH_COMMON_H__ */