2 * Copyright (c) 2010 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
10 #define LOOP_COUNTER_H 1
15 /* We limit the number of times that we pass into dp_process_received_packet()
16 * to avoid blowing out the stack in the event that we have a loop. */
20 u8 count; /* Count. */
21 bool looping; /* Loop detected? */
24 struct loop_counter *loop_get_counter(void);
25 void loop_put_counter(void);
26 void loop_suppress(struct datapath *, struct sw_flow_actions *);
28 #endif /* loop_counter.h */