]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: format files to make polychaeta happy
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 13 May 2020 16:56:16 +0000 (13:56 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 13 May 2020 16:56:16 +0000 (13:56 -0300)
Use clang-format to make code match what polychaeta wants for
formatting.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
zebra/rt_netlink.c
zebra/rt_netlink.h
zebra/zebra_dplane.c
zebra/zebra_dplane.h

index ecd9947a58aa3d65b2aabf1d7adfcba2cd6367cc..30220217375f9b0c7443a8d35565542a73ef8c4f 100644 (file)
@@ -1956,9 +1956,8 @@ static void _netlink_nexthop_build_group(struct nlmsghdr *n, size_t req_size,
  *
  * \returns -1 on failure or the number of bytes written to buf.
  */
-ssize_t
-netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
-                      void *buf, size_t buflen)
+ssize_t netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
+                              void *buf, size_t buflen)
 {
        struct {
                struct nlmsghdr n;
@@ -2224,8 +2223,8 @@ enum zebra_dplane_result kernel_route_update(struct zebra_dplane_ctx *ctx)
        }
 
        if (!RSYSTEM_ROUTE(dplane_ctx_get_type(ctx))) {
-               netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt),
-                                       false, false);
+               netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt), false,
+                                       false);
                ret = netlink_talk_info(netlink_talk_filter,
                                        (struct nlmsghdr *)nl_pkt,
                                        dplane_ctx_get_ns(ctx), 0);
index 3048eea75dc845e3cbf2430bbc3fef2cfbe4ee7d..c09609f47cfc1215f10d116953d971045f6f69ee 100644 (file)
@@ -67,8 +67,8 @@ void rt_netlink_init(void);
 extern int netlink_mpls_multipath(int cmd, struct zebra_dplane_ctx *ctx);
 
 extern ssize_t netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx,
-                                      uint8_t *data, size_t datalen,
-                                      bool fpm, bool force_nhg);
+                                      uint8_t *data, size_t datalen, bool fpm,
+                                      bool force_nhg);
 extern ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx,
                                         uint8_t *data, size_t datalen);
 
index 4441b0971d72e25e8b403e53fb83c9ce6cfaccd4..6afd4e62145d7ed521343c2a0e5bbdf5a98060c1 100644 (file)
@@ -1658,8 +1658,7 @@ done:
  *
  * Return:     Result status
  */
-int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
-                           enum dplane_op_e op,
+int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
                            struct nhg_hash_entry *nhe)
 {
        struct zebra_vrf *zvrf = NULL;
index 5812954373adb8c70ad563fd770d497cba60f7e3..9ce542944d5c49f7a4965f092eef8301b48996f4 100644 (file)
@@ -500,8 +500,7 @@ int dplane_ctx_route_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
                          struct route_node *rn, struct route_entry *re);
 
 /* Encode next hop information into data plane context. */
-int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
-                           enum dplane_op_e op,
+int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
                            struct nhg_hash_entry *nhe);
 
 /* Retrieve the limit on the number of pending, unprocessed updates. */