summaryrefslogtreecommitdiff
path: root/zebra/rule_netlink.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-06 08:59:27 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-04-20 09:43:47 -0400
commit1239b60c06306deb14ab2e18b3d57a67c3327acf (patch)
tree71dc69e46646343dddb27a96f18c23d9066a81bb /zebra/rule_netlink.c
parent3cee213500c22c67803578c6c738a2177146f4ee (diff)
zebra: Add tracepoint for netlink_rule_change
Add a tracepoint for the netlink_rule_change function. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rule_netlink.c')
-rw-r--r--zebra/rule_netlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rule_netlink.c b/zebra/rule_netlink.c
index fbf2620375..135f065428 100644
--- a/zebra/rule_netlink.c
+++ b/zebra/rule_netlink.c
@@ -42,6 +42,7 @@
#include "zebra/zebra_pbr.h"
#include "zebra/zebra_errors.h"
#include "zebra/zebra_dplane.h"
+#include "zebra/zebra_trace.h"
/* definitions */
@@ -243,6 +244,8 @@ int netlink_rule_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
uint8_t proto = 0;
uint8_t ip_proto = 0;
+ frrtrace(3, frr_zebra, netlink_rule_change, h, ns_id, startup);
+
/* Basic validation followed by extracting attributes. */
if (h->nlmsg_type != RTM_NEWRULE && h->nlmsg_type != RTM_DELRULE)
return 0;