mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
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:
parent
5f66e9a070
commit
a2072e7100
@ -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.
|
* \returns -1 on failure or the number of bytes written to buf.
|
||||||
*/
|
*/
|
||||||
ssize_t
|
ssize_t netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
|
||||||
netlink_nexthop_encode(uint16_t cmd, const struct zebra_dplane_ctx *ctx,
|
void *buf, size_t buflen)
|
||||||
void *buf, size_t buflen)
|
|
||||||
{
|
{
|
||||||
struct {
|
struct {
|
||||||
struct nlmsghdr n;
|
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))) {
|
if (!RSYSTEM_ROUTE(dplane_ctx_get_type(ctx))) {
|
||||||
netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt),
|
netlink_route_multipath(cmd, ctx, nl_pkt, sizeof(nl_pkt), false,
|
||||||
false, false);
|
false);
|
||||||
ret = netlink_talk_info(netlink_talk_filter,
|
ret = netlink_talk_info(netlink_talk_filter,
|
||||||
(struct nlmsghdr *)nl_pkt,
|
(struct nlmsghdr *)nl_pkt,
|
||||||
dplane_ctx_get_ns(ctx), 0);
|
dplane_ctx_get_ns(ctx), 0);
|
||||||
|
@ -67,8 +67,8 @@ void rt_netlink_init(void);
|
|||||||
extern int netlink_mpls_multipath(int cmd, struct zebra_dplane_ctx *ctx);
|
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,
|
extern ssize_t netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx,
|
||||||
uint8_t *data, size_t datalen,
|
uint8_t *data, size_t datalen, bool fpm,
|
||||||
bool fpm, bool force_nhg);
|
bool force_nhg);
|
||||||
extern ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx,
|
extern ssize_t netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx,
|
||||||
uint8_t *data, size_t datalen);
|
uint8_t *data, size_t datalen);
|
||||||
|
|
||||||
|
@ -1658,8 +1658,7 @@ done:
|
|||||||
*
|
*
|
||||||
* Return: Result status
|
* Return: Result status
|
||||||
*/
|
*/
|
||||||
int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
|
int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
|
||||||
enum dplane_op_e op,
|
|
||||||
struct nhg_hash_entry *nhe)
|
struct nhg_hash_entry *nhe)
|
||||||
{
|
{
|
||||||
struct zebra_vrf *zvrf = NULL;
|
struct zebra_vrf *zvrf = NULL;
|
||||||
|
@ -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);
|
struct route_node *rn, struct route_entry *re);
|
||||||
|
|
||||||
/* Encode next hop information into data plane context. */
|
/* Encode next hop information into data plane context. */
|
||||||
int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
|
int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
|
||||||
enum dplane_op_e op,
|
|
||||||
struct nhg_hash_entry *nhe);
|
struct nhg_hash_entry *nhe);
|
||||||
|
|
||||||
/* Retrieve the limit on the number of pending, unprocessed updates. */
|
/* Retrieve the limit on the number of pending, unprocessed updates. */
|
||||||
|
Loading…
Reference in New Issue
Block a user