diff options
author | Yutaro Hayakawa <yutaro.hayakawa@isovalent.com> | 2022-12-25 06:52:57 +0100 |
---|---|---|
committer | Yutaro Hayakawa <yutaro.hayakawa@isovalent.com> | 2022-12-25 06:52:57 +0100 |
commit | 45c129948cc3820a49cade81aba1c433507d47df (patch) | |
tree | 0e7f44a0f8d0d8fcd58e750b8647e90da3c4c6c7 /zebra/rt_netlink.h | |
parent | Merge pull request #12536 from donaldsharp/peer_print_null (diff) | |
download | frr-45c129948cc3820a49cade81aba1c433507d47df.tar.xz frr-45c129948cc3820a49cade81aba1c433507d47df.zip |
fpm: Send NH message to FPM even if the local kernel doesn't support it
netlink_route_multipath_msg_encode checks whether the local kernel
supports NextHop Netlink message and doesn't send the message if the
local kernel doesn't have support. This is also applied to the FPM since
kernel dataplane and FPM shares the same code. However, for the FPM,
it's not necessary to have this limit.
This commit adds extra check if netlink_route_multipath_msg_encode is
called from the FPM and bypass kernel support check if it is from the
FPM.
Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/rt_netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h index fd2b79a2b..b67169d6f 100644 --- a/zebra/rt_netlink.h +++ b/zebra/rt_netlink.h @@ -84,7 +84,7 @@ extern int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, extern int netlink_nexthop_read(struct zebra_ns *zns); extern ssize_t netlink_nexthop_msg_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx, - void *buf, size_t buflen); + void *buf, size_t buflen, bool fpm); extern ssize_t netlink_lsp_msg_encoder(struct zebra_dplane_ctx *ctx, void *buf, size_t buflen); |