do not reverse bridge member devices order
authorFelix Fietkau <nbd@openwrt.org>
Sun, 4 Sep 2011 12:02:34 +0000 (14:02 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 4 Sep 2011 12:02:34 +0000 (14:02 +0200)
bridge.c

index 886fb420c9f55eec8417da9c0033b02a74695e1f..3f8739cb5bd5bfc6aecc62e4e963edf099dbde04 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -208,7 +208,7 @@ bridge_create_member(struct bridge_state *bst, struct device *dev)
        bm->dev.cb = bridge_member_cb;
        device_add_user(&bm->dev, dev);
 
-       list_add(&bm->list, &bst->members);
+       list_add_tail(&bm->list, &bst->members);
 
        if (bst->dev.active)
                bridge_enable_member(bm);