From a8c505ffbe4b0820787119a0d7e9d539e8d6e393 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 29 Apr 2003 10:58:15 -0700 Subject: [BRIDGE}: Change bridge forwarding table to use hlist. --- include/linux/list.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') diff --git a/include/linux/list.h b/include/linux/list.h index a724f9bcbe4d..11b8674c14ff 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -437,6 +437,10 @@ static __inline__ void hlist_add_before(struct hlist_node *n, struct hlist_node for (pos = (head)->first; pos; \ pos = pos->next) +#define hlist_for_each_safe(pos, n, head) \ + for (pos = (head)->first; n = pos ? pos->next : 0, pos; \ + pos = n) + #else #warning "don't include kernel headers in userspace" #endif /* __KERNEL__ */ -- cgit v1.2.3