netdev
[Top] [All Lists]

[PATCH 2.6.5] bridge - replace CLEAR_BITMAP with memset

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH 2.6.5] bridge - replace CLEAR_BITMAP with memset
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Wed, 14 Apr 2004 12:04:34 -0700
Cc: bridge@xxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20040413151630.710042e3@dell_ss3.pdx.osdl.net>
Organization: Open Source Development Lab
References: <20040413151630.710042e3@dell_ss3.pdx.osdl.net>
Sender: netdev-bounce@xxxxxxxxxxx
It looks like a recent patch to 2.6.5 got rid of CLEAR_BITMAP.

diff -Nru a/net/bridge/br_if.c b/net/bridge/br_if.c
--- a/net/bridge/br_if.c        Wed Apr 14 12:01:21 2004
+++ b/net/bridge/br_if.c        Wed Apr 14 12:01:21 2004
@@ -175,7 +175,7 @@
        if (!inuse)
                return -ENOMEM;
 
-       CLEAR_BITMAP(inuse, BR_MAX_PORTS);
+       memset(inuse, 0, BITS_TO_LONGS(BR_MAX_PORTS)*sizeof(unsigned long));
        set_bit(0, inuse);      /* zero is reserved */
        list_for_each_entry(p, &br->port_list, list) {
                set_bit(p->port_no, inuse);

<Prev in Thread] Current Thread [Next in Thread>