zebra: format files to make polychaeta happy

Use clang-format to make code match what polychaeta wants for
formatting.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
Rafael Zalamena 2020-05-13 13:56:16 -03:00
parent 5f66e9a070
commit a2072e7100
4 changed files with 8 additions and 11 deletions

View File

@ -1956,8 +1956,7 @@ 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,
ssize_t netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
void *buf, size_t buflen)
{
struct {
@ -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);

View 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);

View 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;

View 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. */