summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_dplane.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-08 15:47:24 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-02-08 23:28:19 +0100
commit3670f5047cb00865c15b2f3ebdfcfe634443db61 (patch)
tree3c4030766ff9381f96fdfc859674a9060929402e /zebra/zebra_dplane.h
parentMerge pull request #8458 from opensourcerouting/xref-5424 (diff)
downloadfrr-3670f5047cb00865c15b2f3ebdfcfe634443db61.tar.xz
frr-3670f5047cb00865c15b2f3ebdfcfe634443db61.zip
zebra: Store the sequence number to use as part of the dp_info
Store and use the sequence number instead of using what is in the `struct nlsock`. Future commits are going away from storing the `struct nlsock` and the copy of the nlsock was guaranteeing unique sequence numbers per message. So let's store the sequence number to use instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r--zebra/zebra_dplane.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h
index 1d5518138..69ea9c7fd 100644
--- a/zebra/zebra_dplane.h
+++ b/zebra/zebra_dplane.h
@@ -42,6 +42,7 @@ struct zebra_dplane_info {
#if defined(HAVE_NETLINK)
struct nlsock nls;
+ int seq;
bool is_cmd;
#endif
};
@@ -57,8 +58,10 @@ zebra_dplane_info_from_zns(struct zebra_dplane_info *zns_info,
zns_info->is_cmd = is_cmd;
if (is_cmd) {
zns_info->nls = zns->netlink_cmd;
+ zns_info->seq = zns->netlink_cmd.seq;
} else {
zns_info->nls = zns->netlink;
+ zns_info->seq = zns->netlink.seq;
}
#endif /* NETLINK */
}