diff mbox series

[iproute2-next,03/12] ip: nexthop: add resilient group structure

Message ID 20210930113844.1829373-4-razor@blackwall.org (mailing list archive)
State Accepted
Commit cfb0a8729ea4059bb1ff2b52842ceb3f55edf2dd
Delegated to: David Ahern
Headers show
Series ip: nexthop: cache nexthops and print routes' nh info | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Nikolay Aleksandrov Sept. 30, 2021, 11:38 a.m. UTC
From: Nikolay Aleksandrov <nikolay@nvidia.com>

Add a structure which describes a resilient nexthop group. It will be
later used for parsing.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
---
 ip/nh_common.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 ip/nh_common.h
diff mbox series

Patch

diff --git a/ip/nh_common.h b/ip/nh_common.h
new file mode 100644
index 000000000000..f747244cbcd0
--- /dev/null
+++ b/ip/nh_common.h
@@ -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__ */