Run clang-format on all files.
This commit is contained in:
102
lcpng_if_node.c
102
lcpng_if_node.c
@ -181,7 +181,7 @@ format_lcp_punt_l3_trace (u8 *s, va_list *args)
|
||||
CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
|
||||
lcp_punt_l3_trace_t *t = va_arg (*args, lcp_punt_l3_trace_t *);
|
||||
|
||||
s = format(s, "linux-cp-punt-l3: %u", t->phy_sw_if_index);
|
||||
s = format (s, "linux-cp-punt-l3: %u", t->phy_sw_if_index);
|
||||
|
||||
return s;
|
||||
}
|
||||
@ -261,16 +261,16 @@ VLIB_REGISTER_NODE(lcp_punt_l3_node) = {
|
||||
},
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_punt_l3_ip4, static) = {
|
||||
.arc_name = "ip4-punt",
|
||||
.node_name = "linux-cp-punt-l3",
|
||||
.runs_before = VNET_FEATURES("ip4-punt-redirect"),
|
||||
VNET_FEATURE_INIT (lcp_punt_l3_ip4, static) = {
|
||||
.arc_name = "ip4-punt",
|
||||
.node_name = "linux-cp-punt-l3",
|
||||
.runs_before = VNET_FEATURES ("ip4-punt-redirect"),
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lip_punt_l3_ip6, static) = {
|
||||
.arc_name = "ip6-punt",
|
||||
.node_name = "linux-cp-punt-l3",
|
||||
.runs_before = VNET_FEATURES("ip6-punt-redirect"),
|
||||
VNET_FEATURE_INIT (lip_punt_l3_ip6, static) = {
|
||||
.arc_name = "ip6-punt",
|
||||
.node_name = "linux-cp-punt-l3",
|
||||
.runs_before = VNET_FEATURES ("ip6-punt-redirect"),
|
||||
};
|
||||
|
||||
#define foreach_lcp_xc \
|
||||
@ -408,34 +408,34 @@ VLIB_NODE_FN (lcp_xc_ip6)
|
||||
return (lcp_xc_inline (vm, node, frame, AF_IP6));
|
||||
}
|
||||
|
||||
VLIB_REGISTER_NODE(lcp_xc_ip4) = {.name = "linux-cp-xc-ip4",
|
||||
.vector_size = sizeof(u32),
|
||||
.format_trace = format_lcp_xc_trace,
|
||||
.type = VLIB_NODE_TYPE_INTERNAL,
|
||||
.sibling_of = "ip4-rewrite"};
|
||||
VLIB_REGISTER_NODE (lcp_xc_ip4) = { .name = "linux-cp-xc-ip4",
|
||||
.vector_size = sizeof (u32),
|
||||
.format_trace = format_lcp_xc_trace,
|
||||
.type = VLIB_NODE_TYPE_INTERNAL,
|
||||
.sibling_of = "ip4-rewrite" };
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_ip4_ucast_node, static) = {
|
||||
.arc_name = "ip4-unicast",
|
||||
.node_name = "linux-cp-xc-ip4",
|
||||
VNET_FEATURE_INIT (lcp_xc_ip4_ucast_node, static) = {
|
||||
.arc_name = "ip4-unicast",
|
||||
.node_name = "linux-cp-xc-ip4",
|
||||
};
|
||||
VNET_FEATURE_INIT(lcp_xc_ip4_mcast_node, static) = {
|
||||
.arc_name = "ip4-multicast",
|
||||
.node_name = "linux-cp-xc-ip4",
|
||||
VNET_FEATURE_INIT (lcp_xc_ip4_mcast_node, static) = {
|
||||
.arc_name = "ip4-multicast",
|
||||
.node_name = "linux-cp-xc-ip4",
|
||||
};
|
||||
|
||||
VLIB_REGISTER_NODE(lcp_xc_ip6) = {.name = "linux-cp-xc-ip6",
|
||||
.vector_size = sizeof(u32),
|
||||
.format_trace = format_lcp_xc_trace,
|
||||
.type = VLIB_NODE_TYPE_INTERNAL,
|
||||
.sibling_of = "ip6-rewrite"};
|
||||
VLIB_REGISTER_NODE (lcp_xc_ip6) = { .name = "linux-cp-xc-ip6",
|
||||
.vector_size = sizeof (u32),
|
||||
.format_trace = format_lcp_xc_trace,
|
||||
.type = VLIB_NODE_TYPE_INTERNAL,
|
||||
.sibling_of = "ip6-rewrite" };
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_ip6_ucast_node, static) = {
|
||||
.arc_name = "ip6-unicast",
|
||||
.node_name = "linux-cp-xc-ip6",
|
||||
VNET_FEATURE_INIT (lcp_xc_ip6_ucast_node, static) = {
|
||||
.arc_name = "ip6-unicast",
|
||||
.node_name = "linux-cp-xc-ip6",
|
||||
};
|
||||
VNET_FEATURE_INIT(lcp_xc_ip6_mcast_node, static) = {
|
||||
.arc_name = "ip6-multicast",
|
||||
.node_name = "linux-cp-xc-ip6",
|
||||
VNET_FEATURE_INIT (lcp_xc_ip6_mcast_node, static) = {
|
||||
.arc_name = "ip6-multicast",
|
||||
.node_name = "linux-cp-xc-ip6",
|
||||
};
|
||||
|
||||
typedef enum
|
||||
@ -557,14 +557,14 @@ VLIB_REGISTER_NODE(lcp_xc_l3_ip4_node) = {
|
||||
},
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_node_l3_ip4_unicast, static) = {
|
||||
.arc_name = "ip4-unicast",
|
||||
.node_name = "linux-cp-xc-l3-ip4",
|
||||
VNET_FEATURE_INIT (lcp_xc_node_l3_ip4_unicast, static) = {
|
||||
.arc_name = "ip4-unicast",
|
||||
.node_name = "linux-cp-xc-l3-ip4",
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_node_l3_ip4_multicaast, static) = {
|
||||
.arc_name = "ip4-multicast",
|
||||
.node_name = "linux-cp-xc-l3-ip4",
|
||||
VNET_FEATURE_INIT (lcp_xc_node_l3_ip4_multicaast, static) = {
|
||||
.arc_name = "ip4-multicast",
|
||||
.node_name = "linux-cp-xc-l3-ip4",
|
||||
};
|
||||
|
||||
VLIB_REGISTER_NODE(lcp_xc_l3_ip6_node) = {
|
||||
@ -581,14 +581,14 @@ VLIB_REGISTER_NODE(lcp_xc_l3_ip6_node) = {
|
||||
},
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_node_l3_ip6_unicast, static) = {
|
||||
.arc_name = "ip6-unicast",
|
||||
.node_name = "linux-cp-xc-l3-ip6",
|
||||
VNET_FEATURE_INIT (lcp_xc_node_l3_ip6_unicast, static) = {
|
||||
.arc_name = "ip6-unicast",
|
||||
.node_name = "linux-cp-xc-l3-ip6",
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_xc_node_l3_ip6_multicast, static) = {
|
||||
.arc_name = "ip6-multicast",
|
||||
.node_name = "linux-cp-xc-l3-ip6",
|
||||
VNET_FEATURE_INIT (lcp_xc_node_l3_ip6_multicast, static) = {
|
||||
.arc_name = "ip6-multicast",
|
||||
.node_name = "linux-cp-xc-l3-ip6",
|
||||
};
|
||||
|
||||
#define foreach_lcp_arp \
|
||||
@ -850,10 +850,10 @@ VLIB_REGISTER_NODE(lcp_arp_phy_node) = {
|
||||
},
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_arp_phy_arp_feat, static) = {
|
||||
.arc_name = "arp",
|
||||
.node_name = "linux-cp-arp-phy",
|
||||
.runs_before = VNET_FEATURES("arp-reply"),
|
||||
VNET_FEATURE_INIT (lcp_arp_phy_arp_feat, static) = {
|
||||
.arc_name = "arp",
|
||||
.node_name = "linux-cp-arp-phy",
|
||||
.runs_before = VNET_FEATURES ("arp-reply"),
|
||||
};
|
||||
|
||||
/**
|
||||
@ -935,10 +935,10 @@ VLIB_REGISTER_NODE(lcp_arp_host_node) = {
|
||||
},
|
||||
};
|
||||
|
||||
VNET_FEATURE_INIT(lcp_arp_host_arp_feat, static) = {
|
||||
.arc_name = "arp",
|
||||
.node_name = "linux-cp-arp-host",
|
||||
.runs_before = VNET_FEATURES("arp-reply"),
|
||||
VNET_FEATURE_INIT (lcp_arp_host_arp_feat, static) = {
|
||||
.arc_name = "arp",
|
||||
.node_name = "linux-cp-arp-host",
|
||||
.runs_before = VNET_FEATURES ("arp-reply"),
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user