[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1376986060.5740.7.camel@ubuntu-vm-makita>
Date: Tue, 20 Aug 2013 17:07:40 +0900
From: Toshiaki Makita <makita.toshiaki@....ntt.co.jp>
To: "David S. Miller" <davem@...emloft.net>,
Vlad Yasevich <vyasevic@...hat.com>, netdev@...r.kernel.org
Cc: Toshiaki Makita <makita.toshiaki@....ntt.co.jp>
Subject: Bridge vlan malfunctions for vid greater than 63
Hello.
Bridge vlan behaves unexpectedly for certain vids.
These are examples on Fedora 19 x86_64:
- "bridge vlan show" command cannot retrieve vids greater than 63,
even if patch 3e805ad (using ifinfomsg instead of rtgenmsg) is
applied.
- When we delete a vid, if no configured vid less than 64 remains,
vlan_info will be freed prematurely, which could delete other
configured vids.
- Parmanent fdb entries could not be deleted even if corresponding vid
is deleted.
I'm afraid that some bitmap functions are given the number of elements
in a bitmap array (BR_VLAN_BITMAP_LEN), which is less than the bit
length.
Example:
static int br_fill_ifinfo(struct sk_buff *skb,
...
if (!pv || bitmap_empty(pv->vlan_bitmap, BR_VLAN_BITMAP_LEN))
As BR_VLAN_BITMAP_LEN is "BITS_TO_LONGS(VLAN_N_VID)", I tested after
changing BR_VLAN_BITMAP_LEN to VLAN_N_VID, and confirmed that this
resolves that malfunctions.
The following mail contains the patch described above.
Please comment if I misunderstood something.
Thanks,
Toshiaki Makita
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists