blob: 8a635cec2085b5ce95c2b4c443d0253ec7bfaf0f [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
Dave Barach97d8dc22016-08-15 15:31:15 -04002 * l2_flood.c : layer 2 flooding
Ed Warnickecb9cada2015-12-08 15:45:58 -07003 *
4 * Copyright (c) 2013 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#include <vlib/vlib.h>
19#include <vnet/vnet.h>
20#include <vnet/pg/pg.h>
21#include <vnet/ethernet/ethernet.h>
22#include <vlib/cli.h>
23#include <vnet/l2/l2_input.h>
24#include <vnet/l2/feat_bitmap.h>
25#include <vnet/l2/l2_bvi.h>
26#include <vnet/replication.h>
27#include <vnet/l2/l2_fib.h>
28
29#include <vppinfra/error.h>
30#include <vppinfra/hash.h>
31
32
Billy McFall22aa3e92016-09-09 08:46:40 -040033/**
34 * @file
35 * @brief Ethernet Flooding.
36 *
Ed Warnickecb9cada2015-12-08 15:45:58 -070037 * Flooding uses the packet replication infrastructure to send a copy of the
38 * packet to each member interface. Logically the replication infrastructure
39 * expects two graph nodes: a prep node that initiates replication and sends the
40 * packet to the first destination, and a recycle node that is passed the packet
41 * after it has been transmitted.
42 *
43 * To decrease the amount of code, l2 flooding implements both functions in
44 * the same graph node. This node can tell if is it being called as the "prep"
45 * or "recycle" using replication_is_recycled().
46 */
47
48
Dave Barach97d8dc22016-08-15 15:31:15 -040049typedef struct
50{
Ed Warnickecb9cada2015-12-08 15:45:58 -070051
Dave Barach97d8dc22016-08-15 15:31:15 -040052 /* Next nodes for each feature */
Ed Warnickecb9cada2015-12-08 15:45:58 -070053 u32 feat_next_node_index[32];
Dave Barach97d8dc22016-08-15 15:31:15 -040054
55 /* next node index for the L3 input node of each ethertype */
Ed Warnickecb9cada2015-12-08 15:45:58 -070056 next_by_ethertype_t l3_next;
57
58 /* convenience variables */
Dave Barach97d8dc22016-08-15 15:31:15 -040059 vlib_main_t *vlib_main;
60 vnet_main_t *vnet_main;
Neale Ranns055b2312018-07-20 01:16:04 -070061
62 /* per-cpu vector of cloned packets */
63 u32 **clones;
64 l2_flood_member_t ***members;
Ed Warnickecb9cada2015-12-08 15:45:58 -070065} l2flood_main_t;
66
Dave Barach97d8dc22016-08-15 15:31:15 -040067typedef struct
68{
Ed Warnickecb9cada2015-12-08 15:45:58 -070069 u8 src[6];
70 u8 dst[6];
71 u32 sw_if_index;
72 u16 bd_index;
73} l2flood_trace_t;
74
75
76/* packet trace format function */
Dave Barach97d8dc22016-08-15 15:31:15 -040077static u8 *
78format_l2flood_trace (u8 * s, va_list * args)
Ed Warnickecb9cada2015-12-08 15:45:58 -070079{
80 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
81 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
Dave Barach97d8dc22016-08-15 15:31:15 -040082 l2flood_trace_t *t = va_arg (*args, l2flood_trace_t *);
83
Ed Warnickecb9cada2015-12-08 15:45:58 -070084 s = format (s, "l2-flood: sw_if_index %d dst %U src %U bd_index %d",
Dave Barach97d8dc22016-08-15 15:31:15 -040085 t->sw_if_index,
86 format_ethernet_address, t->dst,
87 format_ethernet_address, t->src, t->bd_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -070088 return s;
89}
90
91l2flood_main_t l2flood_main;
92
93static vlib_node_registration_t l2flood_node;
94
95#define foreach_l2flood_error \
96_(L2FLOOD, "L2 flood packets") \
97_(REPL_FAIL, "L2 replication failures") \
98_(NO_MEMBERS, "L2 replication complete") \
John Lo7185c3b2016-06-04 00:02:37 -040099_(BVI_BAD_MAC, "BVI L3 mac mismatch") \
Ed Warnickecb9cada2015-12-08 15:45:58 -0700100_(BVI_ETHERTYPE, "BVI packet with unhandled ethertype")
101
Dave Barach97d8dc22016-08-15 15:31:15 -0400102typedef enum
103{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700104#define _(sym,str) L2FLOOD_ERROR_##sym,
105 foreach_l2flood_error
106#undef _
Dave Barach97d8dc22016-08-15 15:31:15 -0400107 L2FLOOD_N_ERROR,
Ed Warnickecb9cada2015-12-08 15:45:58 -0700108} l2flood_error_t;
109
Dave Barach97d8dc22016-08-15 15:31:15 -0400110static char *l2flood_error_strings[] = {
Ed Warnickecb9cada2015-12-08 15:45:58 -0700111#define _(sym,string) string,
112 foreach_l2flood_error
113#undef _
114};
115
Dave Barach97d8dc22016-08-15 15:31:15 -0400116typedef enum
117{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700118 L2FLOOD_NEXT_L2_OUTPUT,
119 L2FLOOD_NEXT_DROP,
120 L2FLOOD_N_NEXT,
121} l2flood_next_t;
122
123/*
124 * Perform flooding on one packet
125 *
126 * Due to the way BVI processing can modify the packet, the BVI interface
127 * (if present) must be processed last in the replication. The member vector
Dave Barach97d8dc22016-08-15 15:31:15 -0400128 * is arranged so that the BVI interface is always the first element.
Ed Warnickecb9cada2015-12-08 15:45:58 -0700129 * Flooding walks the vector in reverse.
130 *
131 * BVI processing causes the packet to go to L3 processing. This strips the
132 * L2 header, which is fine because the replication infrastructure restores
133 * it. However L3 processing can trigger larger changes to the packet. For
134 * example, an ARP request could be turned into an ARP reply, an ICMP request
Dave Barach97d8dc22016-08-15 15:31:15 -0400135 * could be turned into an ICMP reply. If BVI processing is not performed
136 * last, the modified packet would be replicated to the remaining members.
Ed Warnickecb9cada2015-12-08 15:45:58 -0700137 */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700138static uword
139l2flood_node_fn (vlib_main_t * vm,
Dave Barach97d8dc22016-08-15 15:31:15 -0400140 vlib_node_runtime_t * node, vlib_frame_t * frame)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700141{
Dave Barach97d8dc22016-08-15 15:31:15 -0400142 u32 n_left_from, *from, *to_next;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700143 l2flood_next_t next_index;
Dave Barach97d8dc22016-08-15 15:31:15 -0400144 l2flood_main_t *msm = &l2flood_main;
Neale Ranns055b2312018-07-20 01:16:04 -0700145 u32 thread_index = vm->thread_index;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700146
147 from = vlib_frame_vector_args (frame);
Neale Ranns055b2312018-07-20 01:16:04 -0700148 n_left_from = frame->n_vectors;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700149 next_index = node->cached_next_index;
Dave Barach97d8dc22016-08-15 15:31:15 -0400150
Ed Warnickecb9cada2015-12-08 15:45:58 -0700151 while (n_left_from > 0)
152 {
153 u32 n_left_to_next;
154
Dave Barach97d8dc22016-08-15 15:31:15 -0400155 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700156
Ed Warnickecb9cada2015-12-08 15:45:58 -0700157 while (n_left_from > 0 && n_left_to_next > 0)
158 {
Neale Ranns055b2312018-07-20 01:16:04 -0700159 u32 next0, sw_if_index0, bi0, ci0;
160 u16 n_clones, n_cloned, clone0;
161 l2_bridge_domain_t *bd_config;
162 l2_flood_member_t *member;
163 vlib_buffer_t *b0, *c0;
164 u8 in_shg;
165 i32 mi;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700166
Dave Barach97d8dc22016-08-15 15:31:15 -0400167 /* speculatively enqueue b0 to the current next frame */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700168 bi0 = from[0];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700169 from += 1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700170 n_left_from -= 1;
John Lofe80c492018-08-09 11:03:21 -0400171 next0 = L2FLOOD_NEXT_L2_OUTPUT;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700172
173 b0 = vlib_get_buffer (vm, bi0);
174
Neale Ranns055b2312018-07-20 01:16:04 -0700175 /* Get config for the bridge domain interface */
176 bd_config = vec_elt_at_index (l2input_main.bd_configs,
177 vnet_buffer (b0)->l2.bd_index);
178 in_shg = vnet_buffer (b0)->l2.shg;
Dave Barach97d8dc22016-08-15 15:31:15 -0400179 sw_if_index0 = vnet_buffer (b0)->sw_if_index[VLIB_RX];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700180
Neale Ranns055b2312018-07-20 01:16:04 -0700181 vec_validate (msm->members[thread_index],
182 vec_len (bd_config->members));
Ed Warnickecb9cada2015-12-08 15:45:58 -0700183
Neale Ranns055b2312018-07-20 01:16:04 -0700184 vec_reset_length (msm->members[thread_index]);
185
186 /* Find first members that passes the reflection and SHG checks */
187 for (mi = bd_config->flood_count - 1; mi >= 0; mi--)
188 {
189 member = &bd_config->members[mi];
190 if ((member->sw_if_index != sw_if_index0) &&
191 (!in_shg || (member->shg != in_shg)))
192 {
193 vec_add1 (msm->members[thread_index], member);
194 }
195 }
196
197 n_clones = vec_len (msm->members[thread_index]);
198
199 if (0 == n_clones)
200 {
201 /* No members to flood to */
202 to_next[0] = bi0;
203 to_next += 1;
204 n_left_to_next -= 1;
205
206 b0->error = node->errors[L2FLOOD_ERROR_NO_MEMBERS];
207 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
208 to_next, n_left_to_next,
209 bi0, L2FLOOD_NEXT_DROP);
210 continue;
211 }
212
213 vec_validate (msm->clones[thread_index], n_clones);
214 vec_reset_length (msm->clones[thread_index]);
215
216 /*
217 * the header offset needs to be large enoguh to incorporate
218 * all the L3 headers that could be touched when doing BVI
219 * processing. So take the current l2 length plus 2 * IPv6
220 * headers (for tunnel encap)
221 */
222 n_cloned = vlib_buffer_clone (vm, bi0,
223 msm->clones[thread_index],
224 n_clones,
225 (vnet_buffer (b0)->l2.l2_len +
226 sizeof (udp_header_t) +
227 2 * sizeof (ip6_header_t)));
228
229 if (PREDICT_FALSE (n_cloned != n_clones))
230 {
231 b0->error = node->errors[L2FLOOD_ERROR_REPL_FAIL];
232 }
233
234 /*
235 * for all but the last clone, these are not BVI bound
236 */
237 for (clone0 = 0; clone0 < n_cloned - 1; clone0++)
238 {
239 member = msm->members[thread_index][clone0];
240 ci0 = msm->clones[thread_index][clone0];
241 c0 = vlib_get_buffer (vm, ci0);
242
243 to_next[0] = ci0;
244 to_next += 1;
245 n_left_to_next -= 1;
246
247 if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE) &&
248 (b0->flags & VLIB_BUFFER_IS_TRACED)))
249 {
250 ethernet_header_t *h0;
251 l2flood_trace_t *t;
252
253 if (c0 != b0)
254 vlib_buffer_copy_trace_flag (vm, b0, ci0);
255
256 t = vlib_add_trace (vm, node, c0, sizeof (*t));
257 h0 = vlib_buffer_get_current (c0);
258 t->sw_if_index = sw_if_index0;
259 t->bd_index = vnet_buffer (c0)->l2.bd_index;
260 clib_memcpy (t->src, h0->src_address, 6);
261 clib_memcpy (t->dst, h0->dst_address, 6);
262 }
263
264 /* Do normal L2 forwarding */
265 vnet_buffer (c0)->sw_if_index[VLIB_TX] = member->sw_if_index;
Neale Ranns055b2312018-07-20 01:16:04 -0700266
267 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
268 to_next, n_left_to_next,
269 ci0, next0);
270 if (PREDICT_FALSE (0 == n_left_to_next))
271 {
272 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
273 vlib_get_next_frame (vm, node, next_index,
274 to_next, n_left_to_next);
275 }
276 }
277
278 /*
279 * the last clone that might go to a BVI
280 */
281 member = msm->members[thread_index][clone0];
282 ci0 = msm->clones[thread_index][clone0];
283 c0 = vlib_get_buffer (vm, ci0);
284
285 to_next[0] = ci0;
286 to_next += 1;
287 n_left_to_next -= 1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700288
Dave Barach97d8dc22016-08-15 15:31:15 -0400289 if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE) &&
290 (b0->flags & VLIB_BUFFER_IS_TRACED)))
291 {
Neale Ranns055b2312018-07-20 01:16:04 -0700292 ethernet_header_t *h0;
293 l2flood_trace_t *t;
294
295 if (c0 != b0)
296 vlib_buffer_copy_trace_flag (vm, b0, ci0);
297
298 t = vlib_add_trace (vm, node, c0, sizeof (*t));
299 h0 = vlib_buffer_get_current (c0);
Dave Barach97d8dc22016-08-15 15:31:15 -0400300 t->sw_if_index = sw_if_index0;
Neale Ranns055b2312018-07-20 01:16:04 -0700301 t->bd_index = vnet_buffer (c0)->l2.bd_index;
Dave Barach97d8dc22016-08-15 15:31:15 -0400302 clib_memcpy (t->src, h0->src_address, 6);
303 clib_memcpy (t->dst, h0->dst_address, 6);
304 }
305
Neale Ranns055b2312018-07-20 01:16:04 -0700306
307 /* Forward packet to the current member */
308 if (PREDICT_FALSE (member->flags & L2_FLOOD_MEMBER_BVI))
309 {
310 /* Do BVI processing */
311 u32 rc;
312 rc = l2_to_bvi (vm,
313 msm->vnet_main,
314 c0, member->sw_if_index, &msm->l3_next, &next0);
315
John Lofe80c492018-08-09 11:03:21 -0400316 if (PREDICT_FALSE (rc != TO_BVI_ERR_OK))
Neale Ranns055b2312018-07-20 01:16:04 -0700317 {
318 if (rc == TO_BVI_ERR_BAD_MAC)
319 {
320 c0->error = node->errors[L2FLOOD_ERROR_BVI_BAD_MAC];
321 }
322 else if (rc == TO_BVI_ERR_ETHERTYPE)
323 {
324 c0->error = node->errors[L2FLOOD_ERROR_BVI_ETHERTYPE];
325 }
John Lofe80c492018-08-09 11:03:21 -0400326 next0 = L2FLOOD_NEXT_DROP;
Neale Ranns055b2312018-07-20 01:16:04 -0700327 }
328 }
329 else
330 {
331 /* Do normal L2 forwarding */
332 vnet_buffer (c0)->sw_if_index[VLIB_TX] = member->sw_if_index;
Neale Ranns055b2312018-07-20 01:16:04 -0700333 }
334
Ed Warnickecb9cada2015-12-08 15:45:58 -0700335 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
336 to_next, n_left_to_next,
Neale Ranns055b2312018-07-20 01:16:04 -0700337 ci0, next0);
338 if (PREDICT_FALSE (0 == n_left_to_next))
339 {
340 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
341 vlib_get_next_frame (vm, node, next_index,
342 to_next, n_left_to_next);
343 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700344 }
345
346 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
347 }
348
Neale Ranns055b2312018-07-20 01:16:04 -0700349 vlib_node_increment_counter (vm, node->node_index,
350 L2FLOOD_ERROR_L2FLOOD, frame->n_vectors);
351
Ed Warnickecb9cada2015-12-08 15:45:58 -0700352 return frame->n_vectors;
353}
354
355
Dave Barach97d8dc22016-08-15 15:31:15 -0400356/* *INDENT-OFF* */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700357VLIB_REGISTER_NODE (l2flood_node,static) = {
358 .function = l2flood_node_fn,
359 .name = "l2-flood",
360 .vector_size = sizeof (u32),
361 .format_trace = format_l2flood_trace,
362 .type = VLIB_NODE_TYPE_INTERNAL,
Dave Barach97d8dc22016-08-15 15:31:15 -0400363
Ed Warnickecb9cada2015-12-08 15:45:58 -0700364 .n_errors = ARRAY_LEN(l2flood_error_strings),
365 .error_strings = l2flood_error_strings,
366
367 .n_next_nodes = L2FLOOD_N_NEXT,
368
369 /* edit / add dispositions here */
370 .next_nodes = {
371 [L2FLOOD_NEXT_L2_OUTPUT] = "l2-output",
372 [L2FLOOD_NEXT_DROP] = "error-drop",
373 },
374};
Dave Barach97d8dc22016-08-15 15:31:15 -0400375/* *INDENT-ON* */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700376
Damjan Marion1c80e832016-05-11 23:07:18 +0200377VLIB_NODE_FUNCTION_MULTIARCH (l2flood_node, l2flood_node_fn)
Dave Barach97d8dc22016-08-15 15:31:15 -0400378 clib_error_t *l2flood_init (vlib_main_t * vm)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700379{
Dave Barach97d8dc22016-08-15 15:31:15 -0400380 l2flood_main_t *mp = &l2flood_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700381
Dave Barach97d8dc22016-08-15 15:31:15 -0400382 mp->vlib_main = vm;
383 mp->vnet_main = vnet_get_main ();
384
Neale Ranns055b2312018-07-20 01:16:04 -0700385 vec_validate (mp->clones, vlib_num_workers ());
386 vec_validate (mp->members, vlib_num_workers ());
387
Dave Barach97d8dc22016-08-15 15:31:15 -0400388 /* Initialize the feature next-node indexes */
389 feat_bitmap_init_next_nodes (vm,
390 l2flood_node.index,
391 L2INPUT_N_FEAT,
392 l2input_get_feat_names (),
393 mp->feat_next_node_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700394
Neale Ranns055b2312018-07-20 01:16:04 -0700395 return NULL;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700396}
397
398VLIB_INIT_FUNCTION (l2flood_init);
399
400
401
Chris Luke16bcf7d2016-09-01 14:31:46 -0400402/** Add the L3 input node for this ethertype to the next nodes structure. */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700403void
404l2flood_register_input_type (vlib_main_t * vm,
Dave Barach97d8dc22016-08-15 15:31:15 -0400405 ethernet_type_t type, u32 node_index)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700406{
Dave Barach97d8dc22016-08-15 15:31:15 -0400407 l2flood_main_t *mp = &l2flood_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700408 u32 next_index;
409
Dave Barach97d8dc22016-08-15 15:31:15 -0400410 next_index = vlib_node_add_next (vm, l2flood_node.index, node_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700411
412 next_by_ethertype_register (&mp->l3_next, type, next_index);
413}
414
415
Dave Barach97d8dc22016-08-15 15:31:15 -0400416/**
Chris Luke16bcf7d2016-09-01 14:31:46 -0400417 * Set subinterface flood enable/disable.
Dave Barach97d8dc22016-08-15 15:31:15 -0400418 * The CLI format is:
419 * set interface l2 flood <interface> [disable]
420 */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700421static clib_error_t *
422int_flood (vlib_main_t * vm,
Dave Barach97d8dc22016-08-15 15:31:15 -0400423 unformat_input_t * input, vlib_cli_command_t * cmd)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700424{
Dave Barach97d8dc22016-08-15 15:31:15 -0400425 vnet_main_t *vnm = vnet_get_main ();
426 clib_error_t *error = 0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700427 u32 sw_if_index;
428 u32 enable;
429
Dave Barach97d8dc22016-08-15 15:31:15 -0400430 if (!unformat_user (input, unformat_vnet_sw_interface, vnm, &sw_if_index))
Ed Warnickecb9cada2015-12-08 15:45:58 -0700431 {
432 error = clib_error_return (0, "unknown interface `%U'",
Dave Barach97d8dc22016-08-15 15:31:15 -0400433 format_unformat_error, input);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700434 goto done;
435 }
436
437 enable = 1;
Dave Barach97d8dc22016-08-15 15:31:15 -0400438 if (unformat (input, "disable"))
439 {
440 enable = 0;
441 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700442
Dave Barach97d8dc22016-08-15 15:31:15 -0400443 /* set the interface flag */
444 l2input_intf_bitmap_enable (sw_if_index, L2INPUT_FEAT_FLOOD, enable);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700445
Dave Barach97d8dc22016-08-15 15:31:15 -0400446done:
Ed Warnickecb9cada2015-12-08 15:45:58 -0700447 return error;
448}
449
Billy McFall22aa3e92016-09-09 08:46:40 -0400450/*?
451 * Layer 2 flooding can be enabled and disabled on each
452 * interface and on each bridge-domain. Use this command to
453 * manage interfaces. It is enabled by default.
454 *
455 * @cliexpar
456 * Example of how to enable flooding:
457 * @cliexcmd{set interface l2 flood GigabitEthernet0/8/0}
458 * Example of how to disable flooding:
459 * @cliexcmd{set interface l2 flood GigabitEthernet0/8/0 disable}
460?*/
Dave Barach97d8dc22016-08-15 15:31:15 -0400461/* *INDENT-OFF* */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700462VLIB_CLI_COMMAND (int_flood_cli, static) = {
463 .path = "set interface l2 flood",
464 .short_help = "set interface l2 flood <interface> [disable]",
465 .function = int_flood,
466};
Dave Barach97d8dc22016-08-15 15:31:15 -0400467/* *INDENT-ON* */
468
469/*
470 * fd.io coding-style-patch-verification: ON
471 *
472 * Local Variables:
473 * eval: (c-set-style "gnu")
474 * End:
475 */